Skip to content

Commit 1413021

Browse files
krzkMarc Zyngier
authored andcommitted
irqchip/meson-gpio: Mark OF related data as maybe unused
The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/irqchip/irq-meson-gpio.c:153:34: error: ‘meson_irq_gpio_matches’ defined but not used [-Werror=unused-const-variable=] Acked-by: Martin Blumenstingl <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 3d6a0e4 commit 1413021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/irqchip/irq-meson-gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ static const struct meson_gpio_irq_params s4_params = {
150150
INIT_MESON_S4_COMMON_DATA(82)
151151
};
152152

153-
static const struct of_device_id meson_irq_gpio_matches[] = {
153+
static const struct of_device_id meson_irq_gpio_matches[] __maybe_unused = {
154154
{ .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params },
155155
{ .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params },
156156
{ .compatible = "amlogic,meson-gxbb-gpio-intc", .data = &gxbb_params },

0 commit comments

Comments
 (0)