Skip to content

Commit ddb705d

Browse files
krzkgeertu
authored andcommitted
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 <krzysztof.kozlowski@linaro.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20230312132650.352796-1-krzysztof.kozlowski@linaro.org Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent b39d242 commit ddb705d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/soc/renesas/renesas-soc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ static const struct renesas_soc soc_shmobile_ag5 __initconst __maybe_unused = {
269269
};
270270

271271

272-
static const struct of_device_id renesas_socs[] __initconst = {
272+
static const struct of_device_id renesas_socs[] __initconst __maybe_unused = {
273273
#ifdef CONFIG_ARCH_R7S72100
274274
{ .compatible = "renesas,r7s72100", .data = &soc_rz_a1h },
275275
#endif

0 commit comments

Comments
 (0)