From: Krzysztof Kozlowski Date: Sun, 12 Mar 2023 13:26:49 +0000 (+0100) Subject: soc: renesas: mark OF related data as maybe unused X-Git-Tag: v6.6.7~3037^2~9^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ddb705deeefc9807a5db9ef8da47a020371bfb9c;p=platform%2Fkernel%2Flinux-starfive.git soc: renesas: mark OF related data as maybe unused The driver can be compile tested with !CONFIG_OF making certain data unused. With W=1: drivers/soc/renesas/renesas-soc.c:272:34: error: ‘renesas_socs’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Geert Uytterhoeven Link: https://lore.kernel.org/r/20230312132650.352796-1-krzysztof.kozlowski@linaro.org Signed-off-by: Geert Uytterhoeven --- diff --git a/drivers/soc/renesas/renesas-soc.c b/drivers/soc/renesas/renesas-soc.c index a22e659..ae07269 100644 --- a/drivers/soc/renesas/renesas-soc.c +++ b/drivers/soc/renesas/renesas-soc.c @@ -269,7 +269,7 @@ static const struct renesas_soc soc_shmobile_ag5 __initconst __maybe_unused = { }; -static const struct of_device_id renesas_socs[] __initconst = { +static const struct of_device_id renesas_socs[] __initconst __maybe_unused = { #ifdef CONFIG_ARCH_R7S72100 { .compatible = "renesas,r7s72100", .data = &soc_rz_a1h }, #endif