Skip to content

Commit 40784d7

Browse files
arndbherbertx
authored andcommitted
crypto: axis - hide an unused variable
Without CONFIG_DEBUG_FS, we get a harmless warning: drivers/crypto/axis/artpec6_crypto.c:352:23: error: 'dbgfs_root' defined but not used [-Werror=unused-variable] This moves it into the #ifdef that hides the only user. Fixes: a21eb94 ("crypto: axis - add ARTPEC-6/7 crypto accelerator driver") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Lars Persson <larper@axis.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent e117765 commit 40784d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/crypto/axis/artpec6_crypto.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,6 @@ struct artpec6_crypto_aead_req_ctx {
349349
/* The crypto framework makes it hard to avoid this global. */
350350
static struct device *artpec6_crypto_dev;
351351

352-
static struct dentry *dbgfs_root;
353-
354352
#ifdef CONFIG_FAULT_INJECTION
355353
static DECLARE_FAULT_ATTR(artpec6_crypto_fail_status_read);
356354
static DECLARE_FAULT_ATTR(artpec6_crypto_fail_dma_array_full);
@@ -2984,6 +2982,8 @@ struct dbgfs_u32 {
29842982
char *desc;
29852983
};
29862984

2985+
static struct dentry *dbgfs_root;
2986+
29872987
static void artpec6_crypto_init_debugfs(void)
29882988
{
29892989
dbgfs_root = debugfs_create_dir("artpec6_crypto", NULL);

0 commit comments

Comments
 (0)