2021-11-21 15:02:47

by Toralf Förster

[permalink] [raw]
Subject: compile error for 5.15.4

Hi,

got this at a hardened stable Gentoo Server:

# uname -a
Linux mr-fox 5.14.17 #1 SMP Thu Nov 18 14:02:58 CET 2021 x86_64 AMD
Ryzen 9 5950X 16-Core Processor AuthenticAMD GNU/Linux


CC net/ipv4/tcp_timer.o
CC lib/raid6/sse1.o
drivers/dma/ptdma/ptdma-debugfs.c: In function ‘ptdma_debugfs_setup’:
drivers/dma/ptdma/ptdma-debugfs.c:93:54: error: ‘struct dma_device’ has
no member named ‘dbg_dev_root’
93 | debugfs_create_file("info", 0400,
pt->dma_dev.dbg_dev_root, pt,
| ^
drivers/dma/ptdma/ptdma-debugfs.c:96:55: error: ‘struct dma_device’ has
no member named ‘dbg_dev_root’
96 | debugfs_create_file("stats", 0400,
pt->dma_dev.dbg_dev_root, pt,
| ^
drivers/dma/ptdma/ptdma-debugfs.c:102:52: error: ‘struct dma_device’ has
no member named ‘dbg_dev_root’
102 | debugfs_create_dir("q", pt->dma_dev.dbg_dev_root);
| ^
make[3]: *** [scripts/Makefile.build:277:
drivers/dma/ptdma/ptdma-debugfs.o] Error 1
make[2]: *** [scripts/Makefile.build:540: drivers/dma/ptdma] Error 2
make[1]: *** [scripts/Makefile.build:540: drivers/dma] Error 2
make[1]: *** Waiting for unfinished jobs....
CC mm/usercopy.o
CC lib/argv_split.o

--
Toralf


2021-11-21 16:58:56

by Vinod Koul

[permalink] [raw]
Subject: Re: compile error for 5.15.4

Hello,


On 21-11-21, 16:02, Toralf Förster wrote:
> Hi,
>
> got this at a hardened stable Gentoo Server:
>
> # uname -a
> Linux mr-fox 5.14.17 #1 SMP Thu Nov 18 14:02:58 CET 2021 x86_64 AMD
> Ryzen 9 5950X 16-Core Processor AuthenticAMD GNU/Linux
>
>
> CC net/ipv4/tcp_timer.o
> CC lib/raid6/sse1.o
> drivers/dma/ptdma/ptdma-debugfs.c: In function ‘ptdma_debugfs_setup’:
> drivers/dma/ptdma/ptdma-debugfs.c:93:54: error: ‘struct dma_device’ has
> no member named ‘dbg_dev_root’
> 93 | debugfs_create_file("info", 0400,
> pt->dma_dev.dbg_dev_root, pt,

Can you please send your config file when you saw this, which toolchain
was used to compile...

Thanks

> | ^
> drivers/dma/ptdma/ptdma-debugfs.c:96:55: error: ‘struct dma_device’ has
> no member named ‘dbg_dev_root’
> 96 | debugfs_create_file("stats", 0400,
> pt->dma_dev.dbg_dev_root, pt,
> | ^
> drivers/dma/ptdma/ptdma-debugfs.c:102:52: error: ‘struct dma_device’ has
> no member named ‘dbg_dev_root’
> 102 | debugfs_create_dir("q", pt->dma_dev.dbg_dev_root);
> | ^
> make[3]: *** [scripts/Makefile.build:277:
> drivers/dma/ptdma/ptdma-debugfs.o] Error 1
> make[2]: *** [scripts/Makefile.build:540: drivers/dma/ptdma] Error 2
> make[1]: *** [scripts/Makefile.build:540: drivers/dma] Error 2
> make[1]: *** Waiting for unfinished jobs....
> CC mm/usercopy.o
> CC lib/argv_split.o
>
> --
> Toralf

--
~Vinod

2021-11-21 17:18:39

by Toralf Förster

[permalink] [raw]
Subject: Re: compile error for 5.15.4

On 11/21/21 17:58, Vinod Koul wrote:
> Can you please send your config file when you saw this, which toolchain
> was used to compile...
>
> Thanks
sure,

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/11.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-11.2.0/work/gcc-11.2.0/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/11.2.0
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/11.2.0
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/11.2.0/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/11.2.0/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/11.2.0/python
--enable-languages=c,c++ --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls
--without-included-gettext --disable-libunwind-exceptions
--enable-checking=release --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo Hardened 11.2.0 p1' --enable-esp
--enable-libstdcxx-time --disable-libstdcxx-pch --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--disable-multilib --with-multilib-list=m64 --disable-fixed-point
--enable-targets=all --enable-libgomp --disable-libssp --disable-libada
--disable-systemtap --disable-valgrind-annotations
--disable-vtable-verify --disable-libvtv --with-zstd --enable-lto
--without-isl --enable-default-pie --enable-default-ssp
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.0 (Gentoo Hardened 11.2.0 p1)


.config is attached

--
Toralf


Attachments:
.config (81.89 kB)

2021-11-22 04:14:52

by Vinod Koul

[permalink] [raw]
Subject: Re: compile error for 5.15.4

On 21-11-21, 18:18, Toralf F?rster wrote:
> On 11/21/21 17:58, Vinod Koul wrote:
> > Can you please send your config file when you saw this, which toolchain
> > was used to compile...
> >
> > Thanks
> sure,

This is fixed by:
b3b180e73540 ("dmaengine: remove debugfs #ifdef")

Pls confirm by cherry-picking. I will send this fix to stable.

--
~Vinod

2021-11-22 15:44:47

by Toralf Förster

[permalink] [raw]
Subject: Re: compile error for 5.15.4

On 11/22/21 05:14, Vinod Koul wrote:
> On 21-11-21, 18:18, Toralf Förster wrote:
>> On 11/21/21 17:58, Vinod Koul wrote:
>>> Can you please send your config file when you saw this, which toolchain
>>> was used to compile...
>>>
>>> Thanks
>> sure,
>
> This is fixed by:
> b3b180e73540 ("dmaengine: remove debugfs #ifdef")
>
> Pls confirm by cherry-picking. I will send this fix to stable.
>
confirmed - solved it.
If you want you can add a Tested-by: to the commit.

--
Toralf