summaryrefslogtreecommitdiff
path: root/drivers/crypto/bcm/util.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2021-01-14 09:39:58 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2021-01-22 06:58:01 +0300
commit5a17eae414ab81b268052768bf0fb35b4f4edbec (patch)
treea7c9c4319beea7de460435bfa38338e47bed1d25 /drivers/crypto/bcm/util.c
parent660d2062190db131d2feaf19914e90f868fe285c (diff)
downloadlinux-5a17eae414ab81b268052768bf0fb35b4f4edbec.tar.xz
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.c2
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)