[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210527062809.GA1251@raspberrypi>
Date: Thu, 27 May 2021 07:28:09 +0100
From: Austin Kim <austindh.kim@...il.com>
To: herbert@...dor.apana.org.au, davem@...emloft.net,
catalin.marinas@....com, will@...nel.org,
john.johansen@...onical.com, jmorris@...ei.org, serge@...lyn.com
Cc: linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-security-module@...r.kernel.org,
linux-crypto@...r.kernel.org, austindh.kim@...il.com,
austin.kim@....com
Subject: [PATCH] crypto: arm64/gcm - remove Wunused-const-variable
ghash_cpu_feature
GCC compiler complains with below messages.
warning: ‘ghash_cpu_feature’ defined but not used [-Wunused-const-variable=]
static const struct cpu_feature ghash_cpu_feature[] = {
^~~~~~~~~~~~~~~~~
The variable with MODULE_DEVICE_TABLE() is registered as platform_driver.
But ghash_cpu_feature is not used, so remove ghash_cpu_feature.
Signed-off-by: Austin Kim <austindh.kim@...il.com>
---
arch/arm64/crypto/ghash-ce-glue.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/arch/arm64/crypto/ghash-ce-glue.c b/arch/arm64/crypto/ghash-ce-glue.c
index 720cd3a58da3..c3f27d0d5329 100644
--- a/arch/arm64/crypto/ghash-ce-glue.c
+++ b/arch/arm64/crypto/ghash-ce-glue.c
@@ -615,10 +615,5 @@ static void __exit ghash_ce_mod_exit(void)
crypto_unregister_shash(&ghash_alg);
}
-static const struct cpu_feature ghash_cpu_feature[] = {
- { cpu_feature(PMULL) }, { }
-};
-MODULE_DEVICE_TABLE(cpu, ghash_cpu_feature);
-
module_init(ghash_ce_mod_init);
module_exit(ghash_ce_mod_exit);
--
2.20.1
Powered by blists - more mailing lists