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

From: Naresh Kamboju
Date: Thu May 19 2022 - 00:02:59 EST


Hi Rolf Eike Beer,

On Wed, 18 May 2022 at 19:19, Naresh Kamboju <naresh.kamboju@xxxxxxxxxx> 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 <lkft@xxxxxxxxxx>

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