2022-05-18 13:50:18

by Naresh Kamboju

[permalink] [raw]
Subject: net/ethernet/dec/tulip/eeprom.c:120:40: error: 'struct pci_dev' has no member named 'pdev'; did you mean 'dev'?

The Linux next-20220517 and next-20220518 arch parisc builds failed.

Regressions found on parisc:
- gcc-8-defconfig
- gcc-9-defconfig
- gcc-11-defconfig
- gcc-10-defconfig

make --silent --keep-going --jobs=8
O=/home/tuxbuild/.cache/tuxmake/builds/1/build ARCH=parisc
CROSS_COMPILE=hppa-linux-gnu- 'CC=sccache hppa-linux-gnu-gcc'
'HOSTCC=sccache gcc'
arch/parisc/kernel/vdso32/Makefile:30: FORCE prerequisite is missing
drivers/net/ethernet/dec/tulip/eeprom.c: In function
'tulip_build_fake_mediatable':
drivers/net/ethernet/dec/tulip/eeprom.c:120:40: error: 'struct
pci_dev' has no member named 'pdev'; did you mean 'dev'?
120 | tp->mtable = devm_kmalloc(&tp->pdev->pdev, sizeof(struct mediatable) +
| ^~~~
| dev
make[6]: *** [scripts/Makefile.build:295:
drivers/net/ethernet/dec/tulip/eeprom.o] Error 1

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

Build log link,
https://builds.tuxbuild.com/29HszOsHU1On0kNlZbdJBfNWstp/

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


2022-05-19 07:57:51

by Naresh Kamboju

[permalink] [raw]
Subject: Re: net/ethernet/dec/tulip/eeprom.c:120:40: error: 'struct pci_dev' has no member named 'pdev'; did you mean 'dev'?

Hi Rolf Eike Beer,

On Wed, 18 May 2022 at 19:19, Naresh Kamboju <[email protected]> wrote:
>
> The Linux next-20220517 and next-20220518 arch parisc builds failed.
>
> Regressions found on parisc:
> - gcc-8-defconfig
> - gcc-9-defconfig
> - gcc-11-defconfig
> - gcc-10-defconfig
>
> make --silent --keep-going --jobs=8
> O=/home/tuxbuild/.cache/tuxmake/builds/1/build ARCH=parisc
> CROSS_COMPILE=hppa-linux-gnu- 'CC=sccache hppa-linux-gnu-gcc'
> 'HOSTCC=sccache gcc'
> arch/parisc/kernel/vdso32/Makefile:30: FORCE prerequisite is missing
> drivers/net/ethernet/dec/tulip/eeprom.c: In function
> 'tulip_build_fake_mediatable':
> drivers/net/ethernet/dec/tulip/eeprom.c:120:40: error: 'struct
> pci_dev' has no member named 'pdev'; did you mean 'dev'?
> 120 | tp->mtable = devm_kmalloc(&tp->pdev->pdev, sizeof(struct mediatable) +
> | ^~~~
> | dev
> make[6]: *** [scripts/Makefile.build:295:
> drivers/net/ethernet/dec/tulip/eeprom.o] Error 1

The bisection pointed to

first bad commit: [3daebfbeb4555cb0c113aeb88aa469192ee41d89]
net: tulip: convert to devres

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

steps to reproduce:

# To install tuxmake on your system globally:
# sudo pip3 install -U tuxmake

tuxmake --runtime podman --target-arch parisc --toolchain gcc-10
--kconfig defconfig

> Build log link,
> https://builds.tuxbuild.com/29HszOsHU1On0kNlZbdJBfNWstp/
>
> --
> Linaro LKFT
> https://lkft.linaro.org