hwrng: via-rng: Mark device ID table as __maybe_unused
PATCH 1/1 hwrng: via-rng: Mark device ID table as __maybe_unused
It is only used in modular builds.
Reported-by kbuild test robot <[email protected]>
Signed-off-by Ben Hutchings <[email protected]>
--- drivers/char/hw_random/via-rng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/hw_random/via-rng.c +1 -1
@@ -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 ), {} };
Quoted 4 lines · Ben Hutchings
It is only used in modular builds.
Reported-by kbuild test robot <[email protected]>Signed-off-by Ben Hutchings <[email protected]>
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt