diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2021-01-14 17:39:58 +1100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-01-22 14:58:01 +1100 |
commit | 5a17eae414ab81b268052768bf0fb35b4f4edbec (patch) | |
tree | a7c9c4319beea7de460435bfa38338e47bed1d25 /drivers/crypto/bcm/util.c | |
parent | 660d2062190db131d2feaf19914e90f868fe285c (diff) |
crypto: bcm - Fix sparse warnings
This patch fixes a number of sparse warnings in the bcm driver.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/bcm/util.c')
-rw-r--r-- | drivers/crypto/bcm/util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/bcm/util.c b/drivers/crypto/bcm/util.c index 77aeedb84055..c4669a96eaec 100644 --- a/drivers/crypto/bcm/util.c +++ b/drivers/crypto/bcm/util.c @@ -268,6 +268,7 @@ do_shash_err: return rc; } +#ifdef DEBUG /* Dump len bytes of a scatterlist starting at skip bytes into the sg */ void __dump_sg(struct scatterlist *sg, unsigned int skip, unsigned int len) { @@ -289,6 +290,7 @@ void __dump_sg(struct scatterlist *sg, unsigned int skip, unsigned int len) if (debug_logging_sleep) msleep(debug_logging_sleep); } +#endif /* Returns the name for a given cipher alg/mode */ char *spu_alg_name(enum spu_cipher_alg alg, enum spu_cipher_mode mode) |