From: Krzysztof Kozlowski Date: Fri, 10 Mar 2023 22:29:56 +0000 (+0100) Subject: serial: sh-sci: mark OF related data as maybe unused X-Git-Tag: v6.6.17~5003^2~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88dcd07d27d1873810cd8423238f3ce4e9bd0bfc;p=platform%2Fkernel%2Flinux-rpi.git serial: sh-sci: mark OF related data as maybe unused The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/tty/serial/sh-sci.c:3144:34: error: ‘of_sci_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20230310222957.315848-1-krzysztof.kozlowski@linaro.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index a3e12e9..af4a7a8 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -3141,7 +3141,7 @@ static int sci_remove(struct platform_device *dev) #define SCI_OF_TYPE(data) ((unsigned long)(data) >> 16) #define SCI_OF_REGTYPE(data) ((unsigned long)(data) & 0xffff) -static const struct of_device_id of_sci_match[] = { +static const struct of_device_id of_sci_match[] __maybe_unused = { /* SoC-specific types */ { .compatible = "renesas,scif-r7s72100",