Skip to contentSkip to conversation

hwrng: via-rng: Mark device ID table as __maybe_unused

PATCH In review Ben Hutchings 2 participants 2 messages Sep 4, 2013 – Sep 13, 2013 Hardware random number generator core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwrng: via-rng: Mark device ID table as __maybe_unused

It is only used in modular builds.

---
 drivers/char/hw_random/via-rng.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/hw_random/via-rng.c +1 -1
index e737772..de5a6dc 100644
@@ -221,7 +221,7 @@ static void __exit mod_exit(void)
 module_init(mod_init);
 module_exit(mod_exit);
 
-static struct x86_cpu_id via_rng_cpu_id[] = {
+static struct x86_cpu_id __maybe_unused via_rng_cpu_id[] = {
 	X86_FEATURE_MATCH(X86_FEATURE_XSTORE),
 	{}
 };