mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RESEND PATCH] irqchip: meson-gpio: mark OF related data as maybe unused
@ 2023-05-12 16:45 Krzysztof Kozlowski
  2023-05-16 10:22 ` [irqchip: irq/irqchip-fixes] irqchip/meson-gpio: Mark " irqchip-bot for Krzysztof Kozlowski
  0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Kozlowski @ 2023-05-12 16:45 UTC (permalink / raw)
  To: Thomas Gleixner, Marc Zyngier, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, linux-kernel,
	linux-arm-kernel, linux-amlogic
  Cc: Krzysztof Kozlowski

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 <martin.blumenstingl@googlemail.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/irqchip/irq-meson-gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c
index 2aaa9aad3e87..7da18ef95211 100644
--- a/drivers/irqchip/irq-meson-gpio.c
+++ b/drivers/irqchip/irq-meson-gpio.c
@@ -150,7 +150,7 @@ static const struct meson_gpio_irq_params s4_params = {
 	INIT_MESON_S4_COMMON_DATA(82)
 };
 
-static const struct of_device_id meson_irq_gpio_matches[] = {
+static const struct of_device_id meson_irq_gpio_matches[] __maybe_unused = {
 	{ .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params },
 	{ .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params },
 	{ .compatible = "amlogic,meson-gxbb-gpio-intc", .data = &gxbb_params },
-- 
2.34.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [irqchip: irq/irqchip-fixes] irqchip/meson-gpio: Mark OF related data as maybe unused
  2023-05-12 16:45 [RESEND PATCH] irqchip: meson-gpio: mark OF related data as maybe unused Krzysztof Kozlowski
@ 2023-05-16 10:22 ` irqchip-bot for Krzysztof Kozlowski
  0 siblings, 0 replies; 2+ messages in thread
From: irqchip-bot for Krzysztof Kozlowski @ 2023-05-16 10:22 UTC (permalink / raw)
  To: linux-kernel; +Cc: Martin Blumenstingl, Krzysztof Kozlowski, Marc Zyngier, tglx

The following commit has been merged into the irq/irqchip-fixes branch of irqchip:

Commit-ID:     14130211be5366a91ec07c3284c183b75d8fba17
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/14130211be5366a91ec07c3284c183b75d8fba17
Author:        Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
AuthorDate:    Fri, 12 May 2023 18:45:06 +02:00
Committer:     Marc Zyngier <maz@kernel.org>
CommitterDate: Tue, 16 May 2023 11:01:18 +01:00

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 <martin.blumenstingl@googlemail.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230512164506.212267-1-krzysztof.kozlowski@linaro.org
---
 drivers/irqchip/irq-meson-gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c
index 2aaa9aa..7da18ef 100644
--- a/drivers/irqchip/irq-meson-gpio.c
+++ b/drivers/irqchip/irq-meson-gpio.c
@@ -150,7 +150,7 @@ static const struct meson_gpio_irq_params s4_params = {
 	INIT_MESON_S4_COMMON_DATA(82)
 };
 
-static const struct of_device_id meson_irq_gpio_matches[] = {
+static const struct of_device_id meson_irq_gpio_matches[] __maybe_unused = {
 	{ .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params },
 	{ .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params },
 	{ .compatible = "amlogic,meson-gxbb-gpio-intc", .data = &gxbb_params },

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-05-16 10:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-12 16:45 [RESEND PATCH] irqchip: meson-gpio: mark OF related data as maybe unused Krzysztof Kozlowski
2023-05-16 10:22 ` [irqchip: irq/irqchip-fixes] irqchip/meson-gpio: Mark " irqchip-bot for Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®