On Tue, Mar 7, 2023, at 18:10, Naresh Kamboju wrote: > Following build regression found while building mips ar7_defconfig > on Linux next-20230307 tag. > > Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx> > > Please find the build log and details below. > > build log: > -------- > arch/mips/ar7/gpio.c:19:33: error: field 'chip' has incomplete type > 19 | struct gpio_chip chip; It sounds like a result of 21d9526d13b5 ("gpiolib: Make the legacy <linux/gpio.h> consumer-only"). I haven't tried it, but I think this should fix it, unless there is another bug: --- a/arch/mips/ar7/gpio.c +++ b/arch/mips/ar7/gpio.c @@ -7,7 +7,7 @@ #include <linux/init.h> #include <linux/export.h> -#include <linux/gpio.h> +#include <linux/gpio/driver.h> #include <asm/mach-ar7/ar7.h> Arnd