The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] sh: mach-x3proto: Add missing #include <linux/gpio/driver.h>
@ 2023-03-09 13:52 Geert Uytterhoeven
  2023-03-09 13:54 ` John Paul Adrian Glaubitz
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2023-03-09 13:52 UTC (permalink / raw)
  To: Linus Walleij, Andy Shevchenko
  Cc: Yoshinori Sato, Rich Felker, John Paul Adrian Glaubitz,
	linux-gpio, linux-sh, linux-kernel, Geert Uytterhoeven,
	Linux Kernel Functional Testing

shx3_defconfig:

    arch/sh/boards/mach-x3proto/setup.c: In function ‘x3proto_devices_setup’:
    arch/sh/boards/mach-x3proto/setup.c:246:62: error: invalid use of undefined type ‘struct gpio_chip’
      246 |                 baseboard_buttons[i].gpio = x3proto_gpio_chip.base + i;
	  |                                                              ^

Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Link: https://lore.kernel.org/r/CA+G9fYs7suzGsEDK40G0pzxXyR1o2V4Pn-oy1owTsTWRVEVHog@mail.gmail.com
Fixes: 21d9526d13b5467b ("gpiolib: Make the legacy <linux/gpio.h> consumer-only")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/sh/boards/mach-x3proto/setup.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/sh/boards/mach-x3proto/setup.c b/arch/sh/boards/mach-x3proto/setup.c
index 95b85f2e13dda75b..7f39fca95e57a109 100644
--- a/arch/sh/boards/mach-x3proto/setup.c
+++ b/arch/sh/boards/mach-x3proto/setup.c
@@ -17,6 +17,7 @@
 #include <linux/usb/r8a66597.h>
 #include <linux/usb/m66592.h>
 #include <linux/gpio.h>
+#include <linux/gpio/driver.h>
 #include <linux/gpio_keys.h>
 #include <mach/ilsel.h>
 #include <mach/hardware.h>
-- 
2.34.1


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

end of thread, other threads:[~2023-03-09 15:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-09 13:52 [PATCH] sh: mach-x3proto: Add missing #include <linux/gpio/driver.h> Geert Uytterhoeven
2023-03-09 13:54 ` John Paul Adrian Glaubitz
2023-03-09 13:56   ` Geert Uytterhoeven
2023-03-09 13:58     ` John Paul Adrian Glaubitz
2023-03-09 14:04 ` Andy Shevchenko
2023-03-09 14:35   ` Geert Uytterhoeven
2023-03-09 14:08 ` Linus Walleij
2023-03-09 14:36   ` Andy Shevchenko

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