From: Herbert Xu Date: Mon, 29 Jun 2020 08:04:02 +0000 (+1000) Subject: hwrng: st - Fix W=1 unused variable warning X-Git-Tag: v5.15~3097^2~111 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad23756271d5744a0a0ba556f8aaa70e358d5aa6;p=platform%2Fkernel%2Flinux-starfive.git hwrng: st - Fix W=1 unused variable warning This patch fixes an unused variable warning when this driver is built-in with CONFIG_OF=n. Signed-off-by: Herbert Xu --- diff --git a/drivers/char/hw_random/st-rng.c b/drivers/char/hw_random/st-rng.c index 783c24e..15ba1e6 100644 --- a/drivers/char/hw_random/st-rng.c +++ b/drivers/char/hw_random/st-rng.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -121,7 +122,7 @@ static int st_rng_remove(struct platform_device *pdev) return 0; } -static const struct of_device_id st_rng_match[] = { +static const struct of_device_id st_rng_match[] __maybe_unused = { { .compatible = "st,rng" }, {}, };