Following build errors noticed while building Linux next 20211001
with gcc-11 for powerpc architecture.
kernel/sched/debug.c: In function 'print_cfs_group_stats':
kernel/sched/debug.c:460:41: warning: unused variable 'stats'
[-Wunused-variable]
460 | struct sched_statistics *stats =
__schedstats_from_se(se);
| ^~~~~
In file included from include/linux/blkdev.h:6,
from include/linux/blk-mq.h:5,
from drivers/block/swim3.c:24:
drivers/block/swim3.c: In function 'swim3_attach':
drivers/block/swim3.c:1200:38: error: 'FLOPPY_MAJOR' undeclared (first
use in this function)
1200 | rc = register_blkdev(FLOPPY_MAJOR, "fd");
| ^~~~~~~~~~~~
include/linux/genhd.h:276:27: note: in definition of macro 'register_blkdev'
276 | __register_blkdev(major, name, NULL)
| ^~~~~
drivers/block/swim3.c:1200:38: note: each undeclared identifier is
reported only once for each function it appears in
1200 | rc = register_blkdev(FLOPPY_MAJOR, "fd");
| ^~~~~~~~~~~~
include/linux/genhd.h:276:27: note: in definition of macro 'register_blkdev'
276 | __register_blkdev(major, name, NULL)
| ^~~~~
make[3]: *** [scripts/Makefile.build:288: drivers/block/swim3.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [scripts/Makefile.build:571: drivers/block] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:2034: drivers] Error 2
Build config:
https://builds.tuxbuild.com/1ytcB62L9I617oV0cveJtUhcpUu/config
Reported-by: Linux Kernel Functional Testing <lkft(a)linaro.org>
meta data:
-----------
git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
git_sha: a25006a77348ba06c7bc96520d331cd9dd370715
git_short_log: a25006a77348 (\"Add linux-next specific files for 20211001\")
kconfig: ppc6xx_defconfig
kernel_version: 5.15.0-rc3
target_arch: powerpc
toolchain: gcc-11
steps to reproduce:
https://builds.tuxbuild.com/1ytcB62L9I617oV0cveJtUhcpUu/tuxmake_reproducer.…
--
Linaro LKFT
https://lkft.linaro.org
Following build errors noticed while building Linux next 20211001
with gcc-11 for parisc architecture.
arch/parisc/kernel/stacktrace.c: In function 'dump_trace':
arch/parisc/kernel/stacktrace.c:20:13: error: 'regs' undeclared (first
use in this function)
20 | if (regs)
| ^~~~
arch/parisc/kernel/stacktrace.c:20:13: note: each undeclared
identifier is reported only once for each function it appears in
arch/parisc/kernel/stacktrace.c:21:22: error: implicit declaration of
function 'fn' [-Werror=implicit-function-declaration]
21 | if (!fn(cookie, regs->iaoq[0]))
| ^~
arch/parisc/kernel/stacktrace.c:21:25: error: 'cookie' undeclared
(first use in this function)
21 | if (!fn(cookie, regs->iaoq[0]))
| ^~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:288:
arch/parisc/kernel/stacktrace.o] Error 1
Build config:
https://builds.tuxbuild.com/1ytbtyEg5SDSQgS2Oj9RsCM4ZmS/config
Reported-by: Linux Kernel Functional Testing <lkft(a)linaro.org>
meta data:
-----------
git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
git_sha: a25006a77348ba06c7bc96520d331cd9dd370715
git_short_log: a25006a77348 (\"Add linux-next specific files for 20211001\")
kconfig: defconfig
kernel_version: 5.15.0-rc3
target_arch: parisc
toolchain: gcc-11
steps to reproduce:
https://builds.tuxbuild.com/1ytbtyEg5SDSQgS2Oj9RsCM4ZmS/tuxmake_reproducer.…
--
Linaro LKFT
https://lkft.linaro.org
Hi Herbert,
I do see the reported problem while building modules.
you may use the steps to reproduce.
On Fri, 1 Oct 2021 at 11:58, Herbert Xu <herbert(a)gondor.apana.org.au> wrote:
>
> On Tue, Sep 28, 2021 at 11:32:09AM -0700, Nathan Chancellor wrote:
> >
> > This patch as commit 3cefb01905df ("crypto: api - Fix built-in testing
> > dependency failures") in -next (along with the follow up fix) causes the
> > following depmod error:
> >
> > $ make -skj"$(nproc)" ARCH=powerpc CROSS_COMPILE=powerpc-linux- INSTALL_MOD_PATH=rootfs ppc44x_defconfig all modules_install
> > depmod: ERROR: Cycle detected: crypto -> crypto_algapi -> crypto
> > depmod: ERROR: Found 2 modules in dependency cycles!
> > make: *** [Makefile:1946: modules_install] Error 1
> >
> > Initially reported on our CI:
> >
> > https://github.com/ClangBuiltLinux/continuous-integration2/runs/3732847295?…
>
> That's weird, I can't reproduce this. Where can I find your Kconfig
> file? Alternatively, can you identify exactly what is in algapi that
> is being depended on by crypto?
>
> The crypto module should be at the very base and there should be no
> depenedencies from it on algapi. The algapi module is meant to be
> on top of crypto obviously.
#!/bin/sh
# TuxMake is a command line tool and Python library that provides
# portable and repeatable Linux kernel builds across a variety of
# architectures, toolchains, kernel configurations, and make targets.
#
# TuxMake supports the concept of runtimes.
# See https://docs.tuxmake.org/runtimes/, for that to work it requires
# that you install podman or docker on your system.
#
# To install tuxmake on your system globally:
# sudo pip3 install -U tuxmake
#
# See https://docs.tuxmake.org/ for complete documentation.
tuxmake --runtime podman --target-arch mips --toolchain gcc-10
--kconfig rt305x_defconfig
# to reproduce this build locally: tuxmake --target-arch=mips
--kconfig=rt305x_defconfig --toolchain=gcc-10 --wrapper=sccache
--environment=KBUILD_BUILD_TIMESTAMP=@1633074287
--environment=KBUILD_BUILD_USER=tuxmake
--environment=KBUILD_BUILD_HOST=tuxmake
--environment=SCCACHE_BUCKET=sccache.tuxbuild.com --runtime=podman
--image=855116176053.dkr.ecr.us-east-1.amazonaws.com/tuxmake/mips_gcc-10
config default kernel xipkernel modules dtbs dtbs-legacy debugkernel
headers
make --silent --keep-going --jobs=8
O=/home/tuxbuild/.cache/tuxmake/builds/current ARCH=mips
CROSS_COMPILE=mips-linux-gnu- 'CC=sccache mips-linux-gnu-gcc'
'HOSTCC=sccache gcc' rt305x_defconfig
make --silent --keep-going --jobs=8
O=/home/tuxbuild/.cache/tuxmake/builds/current ARCH=mips
CROSS_COMPILE=mips-linux-gnu- 'CC=sccache mips-linux-gnu-gcc'
'HOSTCC=sccache gcc'
make --silent --keep-going --jobs=8
O=/home/tuxbuild/.cache/tuxmake/builds/current ARCH=mips
CROSS_COMPILE=mips-linux-gnu- 'CC=sccache mips-linux-gnu-gcc'
'HOSTCC=sccache gcc' uImage.gz
make --silent --keep-going --jobs=8
O=/home/tuxbuild/.cache/tuxmake/builds/current ARCH=mips
CROSS_COMPILE=mips-linux-gnu- 'CC=sccache mips-linux-gnu-gcc'
'HOSTCC=sccache gcc' modules_install INSTALL_MOD_STRIP=1
INSTALL_MOD_PATH=/home/tuxbuild/.cache/tuxmake/builds/current/modinstall
depmod: ERROR: Cycle detected: crypto -> crypto_algapi -> crypto
depmod: ERROR: Found 2 modules in dependency cycles!
make[1]: *** [/builds/linux/Makefile:1961: modules_install] Error 1
make: *** [Makefile:226: __sub-make] Error 2
make: Target 'modules_install' not remade because of errors.
--
Linaro LKFT
https://lkft.linaro.org