delay: Replace kernel.h with the necessary inclusions
Subsystems (4)
PATCH 1/1 delay: Replace kernel.h with the necessary inclusions
When kernel.h is used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved.
Replace kernel.h inclusion with the list of what is really being used.
--- include/linux/delay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/delay.h +1 -1
@@ -19,7 +19,7 @@* https://lists.openwall.net/linux-kernel/2011/01/09/56 */ -#include <linux/kernel.h> +#include <linux/math.h> extern unsigned long loops_per_jiffy;
Signature · 1 line
2.33.0
kernel test robot
build botI love your patch! Yet something to improve:
Hi Andy,
I love your patch! Yet something to improve:
[auto build test ERROR on linux/master]
[also build test ERROR on hnaz-mm/master linus/master v5.15-rc7 next-20211027] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Andy-Shevchenko/delay-Replace-kernel-h-with-the-necessary-inclusions/20211027-230458 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2f111a6fd5b5297b4e92f53798ca086f7c7d33a4 config: m68k-allmodconfig (attached as .config) compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/fd321f3d5b18ccab48b82ee4099ae79961067fdc
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andy-Shevchenko/delay-Replace-kernel-h-with-the-necessary-inclusions/20211027-230458 git checkout fd321f3d5b18ccab48b82ee4099ae79961067fdc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
All errors (new ones prefixed by >>):
drivers/media/dvb-frontends/cxd2880/cxd2880_common.c: In function 'cxd2880_convert2s_complement':
>> drivers/media/dvb-frontends/cxd2880/cxd2880_common.c:18:30: error: implicit declaration of function 'GENMASK' [-Werror=implicit-function-declaration]
18 | return (int)(GENMASK(31, bitlen) | value);
| ^~~~~~~cc1: all warnings being treated as errors
vim +/GENMASK +18 drivers/media/dvb-frontends/cxd2880/cxd2880_common.c
1a3ef038d09e66 Yasunari Takiguchi 2018-01-18 11
1a3ef038d09e66 Yasunari Takiguchi 2018-01-18 12 int cxd2880_convert2s_complement(u32 value, u32 bitlen)
1a3ef038d09e66 Yasunari Takiguchi 2018-01-18 13 {
1a3ef038d09e66 Yasunari Takiguchi 2018-01-18 14 if (!bitlen || bitlen >= 32)
1a3ef038d09e66 Yasunari Takiguchi 2018-01-18 15 return (int)value;
1a3ef038d09e66 Yasunari Takiguchi 2018-01-18 16
1a3ef038d09e66 Yasunari Takiguchi 2018-01-18 17 if (value & (u32)(1 << (bitlen - 1)))1a3ef038d09e66 Yasunari Takiguchi 2018-01-18 @18 return (int)(GENMASK(31, bitlen) | value);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
Andrew Morton
maintainerQuoted 3 lines · On Thu, 28 Oct 2021 07:15:13 +0800 kernel test robot <[email protected]> wrote:
Hi Andy,
I love your patch! Yet something to improve:
Thanks.
Quoted 21 lines
[auto build test ERROR on linux/master]
[also build test ERROR on hnaz-mm/master linus/master v5.15-rc7 next-20211027] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]url: https://github.com/0day-ci/linux/commits/Andy-Shevchenko/delay-Replace-kernel-h-with-the-necessary-inclusions/20211027-230458 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2f111a6fd5b5297b4e92f53798ca086f7c7d33a4 config: m68k-allmodconfig (attached as .config) compiler: m68k-linux-gcc (GCC) 11.2.0reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/fd321f3d5b18ccab48b82ee4099ae79961067fdc
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andy-Shevchenko/delay-Replace-kernel-h-with-the-necessary-inclusions/20211027-230458 git checkoutfd321f3d5b18ccab48b82ee4099ae79961067fdc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68kIf you fix the issue, kindly add following tag as appropriate
Quoted 8 lines
Reported-by kernel test robot <[email protected]>All errors (new ones prefixed by >>):
drivers/media/dvb-frontends/cxd2880/cxd2880_common.c: In function 'cxd2880_convert2s_complement':Quoted 1 line
Quoted 1 line
drivers/media/dvb-frontends/cxd2880/cxd2880_common.c:18:30: error: implicit declaration of function 'GENMASK' [-Werror=implicit-function-declaration]18 | return (int)(GENMASK(31, bitlen) | value); | ^~~~~~~
drivers/media/dvb-frontends/cxd2880/cxd2880_common.h renamed from drivers/media/dvb-frontends/cxd2880/cxd2880_common.h~delay-replace-kernelh-with-the-necessary-inclusions-fix +1 -0
@@ -12,6 +12,7 @@#include <linux/types.h> #include <linux/errno.h> #include <linux/delay.h> +#include <linux/bits.h> #include <linux/string.h> int cxd2880_convert2s_complement (u32 value,u32 bitlen);
_
kernel test robot
build botI love your patch! Yet something to improve:
Hi Andy,
I love your patch! Yet something to improve:
[auto build test ERROR on linux/master]
[also build test ERROR on linus/master v5.15-rc7 next-20211027] [cannot apply to hnaz-mm/master]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Andy-Shevchenko/delay-Replace-kernel-h-with-the-necessary-inclusions/20211027-230458 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2f111a6fd5b5297b4e92f53798ca086f7c7d33a4 config: x86_64-randconfig-a004-20211027 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/fd321f3d5b18ccab48b82ee4099ae79961067fdc
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andy-Shevchenko/delay-Replace-kernel-h-with-the-necessary-inclusions/20211027-230458 git checkout fd321f3d5b18ccab48b82ee4099ae79961067fdc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
All errors (new ones prefixed by >>):
>> drivers/media/dvb-frontends/cxd2880/cxd2880_common.c:18:16: error: implicit declaration of function 'GENMASK' [-Werror,-Wimplicit-function-declaration]
return (int)(GENMASK(31, bitlen) | value);
^1 error generated.
vim +/GENMASK +18 drivers/media/dvb-frontends/cxd2880/cxd2880_common.c
1a3ef038d09e66 Yasunari Takiguchi 2018-01-18 11
1a3ef038d09e66 Yasunari Takiguchi 2018-01-18 12 int cxd2880_convert2s_complement(u32 value, u32 bitlen)
1a3ef038d09e66 Yasunari Takiguchi 2018-01-18 13 {
1a3ef038d09e66 Yasunari Takiguchi 2018-01-18 14 if (!bitlen || bitlen >= 32)
1a3ef038d09e66 Yasunari Takiguchi 2018-01-18 15 return (int)value;
1a3ef038d09e66 Yasunari Takiguchi 2018-01-18 16
1a3ef038d09e66 Yasunari Takiguchi 2018-01-18 17 if (value & (u32)(1 << (bitlen - 1)))1a3ef038d09e66 Yasunari Takiguchi 2018-01-18 @18 return (int)(GENMASK(31, bitlen) | value);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
Quoted 6 lines · Andy Shevchenko
When
kernel.his used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved.Replace
kernel.hinclusion with the list of what is really being used.Signed-off-by Andy Shevchenko <[email protected]>
In next-20211028:
Building riscv32:defconfig ... failed
--------------
Error log:arch/riscv/lib/delay.c: In function '__delay':arch/riscv/lib/delay.c:77:17: error: implicit declaration of function 'cpu_relax'
Building riscv:defconfig ... failed
--------------
Error log:arch/riscv/lib/delay.c: In function '__delay':arch/riscv/lib/delay.c:77:17: error: implicit declaration of function 'cpu_relax'
Building s390:defconfig ... failed
--------------
Error log:
<stdin>:1559:2: warning: #warning syscall futex_waitv not implemented [-Wcpp] In file included from arch/s390/pci/pci_insn.c:12:arch/s390/include/asm/facility.h: In function '__stfle':arch/s390/include/asm/facility.h:98:22: error: implicit declaration of function 'min_t'
bisect to this patch. Probably more, but it is difficult to find out since -next is too badly broken and has build failures all over the place.
Guenter
Quoted 20 lines
--- include/linux/delay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/delay.h +1
-1@@ -19,7 +19,7 @@* https://lists.openwall.net/linux-kernel/2011/01/09/56 */ -#include <linux/kernel.h> +#include <linux/math.h> extern unsigned long loops_per_jiffy;Signature · 1 line
2.33.0
Quoted 30 lines · Guenter Roeck
Quoted 6 lines · Andy Shevchenko
When
kernel.his used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved.Replace
kernel.hinclusion with the list of what is really being used.Signed-off-by Andy Shevchenko <[email protected]>In next-20211028:
Building riscv32:defconfig ... failed
--------------
Error log:arch/riscv/lib/delay.c: In function '__delay':arch/riscv/lib/delay.c:77:17: error: implicit declaration of function 'cpu_relax'Building riscv:defconfig ... failed
--------------
Error log:arch/riscv/lib/delay.c: In function '__delay':arch/riscv/lib/delay.c:77:17: error: implicit declaration of function 'cpu_relax'Building s390:defconfig ... failed
--------------
Error log:
<stdin>:1559:2: warning: #warning syscallfutex_waitvnot implemented [-Wcpp] In file included fromarch/s390/pci/pci_insn.c:12:arch/s390/include/asm/facility.h: In function '__stfle':arch/s390/include/asm/facility.h:98:22: error: implicit declaration of function 'min_t'
Quoted 2 lines
bisect to this patch. Probably more, but it is difficult to find out since -next is too badly broken and has build failures all over the place.
Thanks for the report!
I have run it on x86_64 with kcbench -m ... and no failures.
Can you share all build errors you found so far? I believe none of them related to x86* code.
Above just revealed the problematic places in the first place. Why the programmers rely on delay.h to include full bloated header pile?! (Yeah, this is rhetorical, so please share the errors, I'll try to address them)
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 36 lines · Andy Shevchenko
Quoted 30 lines · Guenter Roeck
Quoted 6 lines · Andy Shevchenko
When
kernel.his used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved.Replace
kernel.hinclusion with the list of what is really being used.Signed-off-by Andy Shevchenko <[email protected]>In next-20211028:
Building riscv32:defconfig ... failed
--------------
Error log:arch/riscv/lib/delay.c: In function '__delay':arch/riscv/lib/delay.c:77:17: error: implicit declaration of function 'cpu_relax'Building riscv:defconfig ... failed
--------------
Error log:arch/riscv/lib/delay.c: In function '__delay':arch/riscv/lib/delay.c:77:17: error: implicit declaration of function 'cpu_relax'Building s390:defconfig ... failed
--------------
Error log:
<stdin>:1559:2: warning: #warning syscallfutex_waitvnot implemented [-Wcpp] In file included fromarch/s390/pci/pci_insn.c:12:arch/s390/include/asm/facility.h: In function '__stfle':arch/s390/include/asm/facility.h:98:22: error: implicit declaration of function 'min_t'Quoted 2 lines
bisect to this patch. Probably more, but it is difficult to find out since -next is too badly broken and has build failures all over the place.
Thanks for the report!
Quoted 9 lines
I have run it on
x86_64withkcbench -m ...and no failures.Can you share all build errors you found so far? I believe none of them related to x86* code.
Above just revealed the problematic places in the first place. Why the programmers rely on
delay.hto include full bloated header pile?! (Yeah, this is rhetorical, so please share the errors, I'll try to address them)
The ones listed above are the ones I was able to identify. As I said, there are so many compile and runtime failures in linux-next that it is difficult to track down individual failures. Just to give you an idea (this is for next-20211028):
Build results:
total: 153 pass: 115 fail: 38 Failed builds: alpha:allmodconfig arm:allmodconfig arm:omap2plus_defconfig arm:davinci_all_defconfig arm64:defconfig arm64:allmodconfig csky:allmodconfig h8300:allnoconfig h8300:tinyconfig h8300:edosk2674_defconfig h8300:h8300h-sim_defconfig h8300:h8s-sim_defconfig m68k:allmodconfig mips:defconfig mips:allmodconfig mips:allnoconfig mips:tinyconfig mips:bcm47xx_defconfig mips:bcm63xx_defconfig mips:ath79_defconfig mips:ar7_defconfig mips:e55_defconfig mips:cavium_octeon_defconfig mips:malta_defconfig mips:rt305x_defconfig nds32:allmodconfig parisc:allmodconfig parisc:generic-32bit_defconfig parisc64:generic-64bit_defconfig powerpc:allmodconfig riscv32:defconfig riscv32:allmodconfig riscv:defconfig riscv:allmodconfig s390:defconfig s390:allmodconfig sparc64:allmodconfig xtensa:allmodconfig Qemu test results: total: 480 pass: 315 fail: 165
Failed tests:
<too many to list them all>
Build and boot logs are as always at https://kerneltests.org/builders
in the 'next' column in case you want to do some digging yourself.
Guenter
Quoted 2 lines · Andy Shevchenko
Quoted 1 line · Guenter Roeck
On Thu, Oct 28, 2021 at 06:58:13PM +0300, Andy Shevchenko wrote:
...
Quoted 5 lines
Quoted 5 lines
Build results:
total: 153 pass: 115 fail: 38Qemu test results:
total: 480 pass: 315 fail: 165
FWIW, most of them on the first glance due to something like below
<stdin>:1517:2: warning: #warning syscall clone3 not implemented [-Wcpp] samples/fanotify/fs-monitor.c:7:10: fatal error: errno.h: No such file or directory 7 | #include <errno.h>
| ^~~~~~~~~
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 12 lines · Andy Shevchenko
Quoted 2 lines · Andy Shevchenko
Quoted 1 line · Guenter Roeck
On Thu, Oct 28, 2021 at 06:58:13PM +0300, Andy Shevchenko wrote:
...
Quoted 5 lines
Quoted 5 lines
Build results:
total: 153 pass: 115 fail: 38Qemu test results:
total: 480 pass: 315 fail: 165
Quoted 6 lines
FWIW, most of them on the first glance due to something like below
<stdin>:1517:2: warning: #warning syscall clone3 not implemented [-Wcpp]
samples/fanotify/fs-monitor.c:7:10: fatal error:errno.h: No such file or directory 7 | #include <errno.h>
| ^~~~~~~~~
I have briefly looked at the logs (stdio) and potentially my patch might brake h8300 and parisc, the rest as pointed above (have no idea if my patch anyhow may be involved to that).
Hence, will sent only fix for what you bisected.
Thanks!
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 49 lines · Andy Shevchenko
Quoted 32 lines · Guenter Roeck
Quoted 31 lines · Andy Shevchenko
Quoted 30 lines · Guenter Roeck
Quoted 6 lines · Andy Shevchenko
When
kernel.his used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved.Replace
kernel.hinclusion with the list of what is really being used.Signed-off-by Andy Shevchenko <[email protected]>In next-20211028:
Building riscv32:defconfig ... failed
--------------
Error log:arch/riscv/lib/delay.c: In function '__delay':arch/riscv/lib/delay.c:77:17: error: implicit declaration of function 'cpu_relax'Building riscv:defconfig ... failed
--------------
Error log:arch/riscv/lib/delay.c: In function '__delay':arch/riscv/lib/delay.c:77:17: error: implicit declaration of function 'cpu_relax'Building s390:defconfig ... failed
--------------
Error log:
<stdin>:1559:2: warning: #warning syscallfutex_waitvnot implemented [-Wcpp] In file included fromarch/s390/pci/pci_insn.c:12:arch/s390/include/asm/facility.h: In function '__stfle':arch/s390/include/asm/facility.h:98:22: error: implicit declaration of function 'min_t'Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
bisect to this patch. Probably more, but it is difficult to find out since -next is too badly broken and has build failures all over the place.
Thanks for the report!
I'll send the fix for above soon. Hope it will reduce amount of failures.
Quoted 9 lines
Quoted 8 lines
I have run it on
x86_64withkcbench -m ...and no failures.Can you share all build errors you found so far? I believe none of them related to x86* code.
Above just revealed the problematic places in the first place. Why the programmers rely on
delay.hto include full bloated header pile?! (Yeah, this is rhetorical, so please share the errors, I'll try to address them)
Quoted 8 lines
Quoted 3 lines
The ones listed above are the ones I was able to identify. As I said, there are so many compile and runtime failures in linux-next that it is difficult to track down individual failures.
Yeah, for example, I looked into this: https://kerneltests.org/builders/next-mips-next/builds/698/steps/buildcommand/logs/stdio
I can't see how my patch is related to this...
The missing errno.h in that log is due to missing dependencies in the fanotify patch - it causes build failures whenever a toolchain without C library support is used to build the kernel. I already reported this.
The unused variable error bisects to 'irq: mips: simplify do_domain_IRQ()'. I'll send a report as response to that patch in a minute.
It all adds up ... there seem to be a lot of last minute changes in -next.
Guenter
Quoted 52 lines
Quoted 51 lines
Just to give you an idea (this is for
next-20211028):Build results:
total: 153 pass: 115 fail: 38 Failed builds: alpha:allmodconfig arm:allmodconfig arm:omap2plus_defconfig arm:davinci_all_defconfig arm64:defconfig arm64:allmodconfig csky:allmodconfig h8300:allnoconfig h8300:tinyconfig h8300:edosk2674_defconfig h8300:h8300h-sim_defconfig h8300:h8s-sim_defconfig m68k:allmodconfig mips:defconfig mips:allmodconfig mips:allnoconfig mips:tinyconfig mips:bcm47xx_defconfig mips:bcm63xx_defconfig mips:ath79_defconfig mips:ar7_defconfig mips:e55_defconfig mips:cavium_octeon_defconfig mips:malta_defconfig mips:rt305x_defconfig nds32:allmodconfig parisc:allmodconfig parisc:generic-32bit_defconfig parisc64:generic-64bit_defconfig powerpc:allmodconfig riscv32:defconfig riscv32:allmodconfig riscv:defconfig riscv:allmodconfig s390:defconfig s390:allmodconfig sparc64:allmodconfig xtensa:allmodconfig Qemu test results: total: 480 pass: 315 fail: 165Failed tests:
<too many to list them all>Build and boot logs are as always at https://kerneltests.org/builders
in the 'next' column in case you want to do some digging yourself.
Quoted 15 lines · Andy Shevchenko
Quoted 14 lines · Andy Shevchenko
Quoted 2 lines · Andy Shevchenko
Quoted 1 line · Guenter Roeck
On Thu, Oct 28, 2021 at 06:58:13PM +0300, Andy Shevchenko wrote:
...
Quoted 5 lines
Quoted 5 lines
Build results:
total: 153 pass: 115 fail: 38Qemu test results:
total: 480 pass: 315 fail: 165FWIW, most of them on the first glance due to something like below
Quoted 9 lines
Quoted 4 lines
<stdin>:1517:2: warning: #warning syscall clone3 not implemented [-Wcpp]
samples/fanotify/fs-monitor.c:7:10: fatal error:errno.h: No such file or directory 7 | #include <errno.h>
| ^~~~~~~~~I have briefly looked at the logs (stdio) and potentially my patch might brake h8300 and parisc, the rest as pointed above (have no idea if my patch anyhow may be involved to that).
I am currently running a bisect on the parisc failure. You are right, h8300 looks suspicious as well. I'll bisect that as well after the parisc bisect is complete. I'll let you know once I have results.
Guenter
Quoted 20 lines · Andy Shevchenko
Quoted 12 lines · Andy Shevchenko
Quoted 2 lines · Andy Shevchenko
Quoted 1 line · Guenter Roeck
On Thu, Oct 28, 2021 at 06:58:13PM +0300, Andy Shevchenko wrote:
...
Quoted 5 lines
Quoted 5 lines
Build results:
total: 153 pass: 115 fail: 38Qemu test results:
total: 480 pass: 315 fail: 165Quoted 6 lines
FWIW, most of them on the first glance due to something like below
<stdin>:1517:2: warning: #warning syscall clone3 not implemented [-Wcpp]
samples/fanotify/fs-monitor.c:7:10: fatal error:errno.h: No such file or directory 7 | #include <errno.h>
| ^~~~~~~~~
Quoted 6 lines
I have briefly looked at the logs (stdio) and potentially my patch might brake h8300 and parisc, the rest as pointed above (have no idea if my patch anyhow may be involved to that).
Hence, will sent only fix for what you bisected.
The h8300 failure bisects to "irqchip: Provide stronger type checking for IRQCHIP_MATCH/IRQCHIP_DECLARE". I'll report that as reponse to that patch.
The parisc build failure bisects to "Merge branch 'for-next/kspp' ofgit://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git"
which of course is always a bad sign. I may not be able to track that down until it shows up in mainline.
Guenter
Quoted 32 lines · Guenter Roeck
Quoted 31 lines · Andy Shevchenko
Quoted 30 lines · Guenter Roeck
Quoted 6 lines · Andy Shevchenko
When
kernel.his used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved.Replace
kernel.hinclusion with the list of what is really being used.Signed-off-by Andy Shevchenko <[email protected]>In next-20211028:
Building riscv32:defconfig ... failed
--------------
Error log:arch/riscv/lib/delay.c: In function '__delay':arch/riscv/lib/delay.c:77:17: error: implicit declaration of function 'cpu_relax'Building riscv:defconfig ... failed
--------------
Error log:arch/riscv/lib/delay.c: In function '__delay':arch/riscv/lib/delay.c:77:17: error: implicit declaration of function 'cpu_relax'Building s390:defconfig ... failed
--------------
Error log:
<stdin>:1559:2: warning: #warning syscallfutex_waitvnot implemented [-Wcpp] In file included fromarch/s390/pci/pci_insn.c:12:arch/s390/include/asm/facility.h: In function '__stfle':arch/s390/include/asm/facility.h:98:22: error: implicit declaration of function 'min_t'
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
bisect to this patch. Probably more, but it is difficult to find out since -next is too badly broken and has build failures all over the place.
Thanks for the report!
I'll send the fix for above soon. Hope it will reduce amount of failures.
Quoted 5 lines
Quoted 5 lines
I have run it on
x86_64withkcbench -m ...and no failures.Can you share all build errors you found so far? I believe none of them related to x86* code.
Quoted 7 lines
Quoted 3 lines
Above just revealed the problematic places in the first place. Why the programmers rely on
delay.hto include full bloated header pile?! (Yeah, this is rhetorical, so please share the errors, I'll try to address them)The ones listed above are the ones I was able to identify. As I said, there are so many compile and runtime failures in linux-next that it is difficult to track down individual failures.
Yeah, for example, I looked into this: https://kerneltests.org/builders/next-mips-next/builds/698/steps/buildcommand/logs/stdio
I can't see how my patch is related to this...
Quoted 51 lines
Just to give you an idea (this is for
next-20211028):Build results:
total: 153 pass: 115 fail: 38 Failed builds: alpha:allmodconfig arm:allmodconfig arm:omap2plus_defconfig arm:davinci_all_defconfig arm64:defconfig arm64:allmodconfig csky:allmodconfig h8300:allnoconfig h8300:tinyconfig h8300:edosk2674_defconfig h8300:h8300h-sim_defconfig h8300:h8s-sim_defconfig m68k:allmodconfig mips:defconfig mips:allmodconfig mips:allnoconfig mips:tinyconfig mips:bcm47xx_defconfig mips:bcm63xx_defconfig mips:ath79_defconfig mips:ar7_defconfig mips:e55_defconfig mips:cavium_octeon_defconfig mips:malta_defconfig mips:rt305x_defconfig nds32:allmodconfig parisc:allmodconfig parisc:generic-32bit_defconfig parisc64:generic-64bit_defconfig powerpc:allmodconfig riscv32:defconfig riscv32:allmodconfig riscv:defconfig riscv:allmodconfig s390:defconfig s390:allmodconfig sparc64:allmodconfig xtensa:allmodconfig Qemu test results: total: 480 pass: 315 fail: 165Failed tests:
<too many to list them all>Build and boot logs are as always at https://kerneltests.org/builders
in the 'next' column in case you want to do some digging yourself.
Signature · 2 lines
With Best Regards, Andy Shevchenko