2023-03-09 11:41:15

by Naresh Kamboju

[permalink] [raw]
Subject: sh/boards/mach-x3proto/setup.c:246:62: error: invalid use of undefined type 'struct gpio_chip'

Following build error reported on sh shx3_defconfig on Linux next-20230309
and started from next-20230307.

Reported-by: Linux Kernel Functional Testing <[email protected]>

Build log:
--------
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;
| ^
make[3]: *** [scripts/Makefile.build:252:
arch/sh/boards/mach-x3proto/setup.o] Error 1
make[3]: Target 'arch/sh/boards/mach-x3proto/' not remade because of errors.
make[2]: *** [scripts/Makefile.build:494: arch/sh/boards/mach-x3proto] Error 2


build links,
---------
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230309/testrun/15403540/suite/build/test/gcc-11-shx3_defconfig/details/
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230309/testrun/15403540/suite/build/test/gcc-11-shx3_defconfig/history/


metadata:
----------
build_name: gcc-11-shx3_defconfig
config: https://storage.tuxsuite.com/public/linaro/lkft/builds/2Ml9hI6V0nIKrCQbtRVoxCOy7BY/config
download_url:
https://storage.tuxsuite.com/public/linaro/lkft/builds/2Ml9hI6V0nIKrCQbtRVoxCOy7BY/
git_describe: next-20230309
git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
git_sha: 2c6433e9294b6d0f4d8f08c3c70a3eac434d3ec8
git_short_log: 2c6433e9294b ("Add linux-next specific files for 20230309")


Steps to reproduce:
----------
# sudo pip3 install -U tuxmake
#
# See https://docs.tuxmake.org/ for complete documentation.
# Original tuxmake command with fragments listed below.
tuxmake --runtime podman --target-arch sh --toolchain gcc-11 --kconfig
shx3_defconfig

--
Linaro LKFT
https://lkft.linaro.org


2023-03-09 13:55:24

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: sh/boards/mach-x3proto/setup.c:246:62: error: invalid use of undefined type 'struct gpio_chip'

Hi Naresh,

On Thu, Mar 9, 2023 at 12:50 PM Naresh Kamboju
<[email protected]> wrote:
> Following build error reported on sh shx3_defconfig on Linux next-20230309
> and started from next-20230307.
>
> Reported-by: Linux Kernel Functional Testing <[email protected]>
>
> Build log:
> --------
> 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;
> | ^
> make[3]: *** [scripts/Makefile.build:252:
> arch/sh/boards/mach-x3proto/setup.o] Error 1
> make[3]: Target 'arch/sh/boards/mach-x3proto/' not remade because of errors.
> make[2]: *** [scripts/Makefile.build:494: arch/sh/boards/mach-x3proto] Error 2

Thanks, I've bisected, and sent a fix
https://lore.kernel.org/r/[email protected]

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds