Following build failures noticed on parisc on Linux next-20231219 tag.
parisc: build: * gcc-11-defconfig - Failed * gcc-11-allnoconfig - Failed * gcc-11-tinyconfig - Failed
Build error: arch/parisc/mm/init.c: In function 'mem_init': arch/parisc/mm/init.c:534:29: error: invalid application of 'sizeof' to incomplete type 'struct shmid64_ds' 534 | BUILD_BUG_ON(sizeof(struct shmid64_ds) != 104); | ^~~~~~
Reported-by: Linux Kernel Functional Testing lkft@linaro.org
Steps to reproduce:
tuxmake --runtime podman --target-arch parisc --toolchain gcc-11 --kconfig defconfig
Links: - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20231219/tes... - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20231219/tes...
-- Linaro LKFT https://lkft.linaro.org
On Tue, 19 Dec 2023 at 16:02, Naresh Kamboju naresh.kamboju@linaro.org wrote:
Following build failures noticed on parisc on Linux next-20231219 tag.
parisc: build: * gcc-11-defconfig - Failed * gcc-11-allnoconfig - Failed * gcc-11-tinyconfig - Failed
Build error: arch/parisc/mm/init.c: In function 'mem_init': arch/parisc/mm/init.c:534:29: error: invalid application of 'sizeof' to incomplete type 'struct shmid64_ds' 534 | BUILD_BUG_ON(sizeof(struct shmid64_ds) != 104); | ^~~~~~
Reported-by: Linux Kernel Functional Testing lkft@linaro.org
Steps to reproduce:
tuxmake --runtime podman --target-arch parisc --toolchain gcc-11 --kconfig defconfig
A bisection showed this patch as the faulty 1e462c05f65b ("shm: Slim down dependencies") Revering this patch made it build.
$ git bisect start next-20231219 next/stable && git bisect run tuxmake --runtime podman --target-arch parisc --toolchain gcc-11 --kconfig tinyconfig
Biseclog: # bad: [aa4db8324c4d0e67aa4670356df4e9fae14b4d37] Add linux-next specific files for 20231219 # good: [2cf4f94d8e8646803f8fb0facf134b0cd7fb691a] Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi git bisect start 'next-20231219' 'next/stable' # good: [0762a5de2bd30a12821e519cbe722df9914da98a] Merge branch 'main' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git git bisect good 0762a5de2bd30a12821e519cbe722df9914da98a # good: [19ac9eb1d925e26d8828f8ab1525696bad1b54c3] Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git git bisect good 19ac9eb1d925e26d8828f8ab1525696bad1b54c3 # good: [bf9602022c6726f0f8f888ba244d408661be5337] Merge branch 'char-misc-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git git bisect good bf9602022c6726f0f8f888ba244d408661be5337 # good: [9c6484cc7a133a7c54b8a1e195ec9083489e485b] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux.git git bisect good 9c6484cc7a133a7c54b8a1e195ec9083489e485b # good: [b3f7f46b85e7c1339cf2e55f1061a666147ccfe6] Merge branch 'rtc-next' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git git bisect good b3f7f46b85e7c1339cf2e55f1061a666147ccfe6 # good: [db2aea8e313f69f90beadbba97f400fe255168d4] Merge branch 'bitmap-for-next' of https://github.com/norov/linux.git git bisect good db2aea8e313f69f90beadbba97f400fe255168d4 # good: [14a3e64715ea0a5853dd6a6876737c845f8aafb0] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git git bisect good 14a3e64715ea0a5853dd6a6876737c845f8aafb0 # good: [b5759b6b16cb2b34e909d74f7b7f0b9e9a7590a9] rslib: kill bogus dependency on list.h git bisect good b5759b6b16cb2b34e909d74f7b7f0b9e9a7590a9 # bad: [f0a0cf5525892479795a5d1e1b81115a12915dee] seccomp: Split out seccomp_types.h git bisect bad f0a0cf5525892479795a5d1e1b81115a12915dee # bad: [ea42bc1b4b8f04b8467e38f3e44e71cce372f1ab] ipc: Kill bogus dependency on spinlock.h git bisect bad ea42bc1b4b8f04b8467e38f3e44e71cce372f1ab # good: [cd862cb689a09e55debd107df26744027a5fff8b] timers: Split out timer_types.h git bisect good cd862cb689a09e55debd107df26744027a5fff8b # bad: [1e462c05f65b452f0e2e996ec97484dba9e95358] shm: Slim down dependencies git bisect bad 1e462c05f65b452f0e2e996ec97484dba9e95358 # good: [840b9d9bfcfdc5ca12ce1af35a3ea10f05fda799] workqueue: Split out workqueue_types.h git bisect good 840b9d9bfcfdc5ca12ce1af35a3ea10f05fda799 # first bad commit: [1e462c05f65b452f0e2e996ec97484dba9e95358] shm: Slim down dependencies
Cheers, Anders
Links:
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20231219/tes...
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20231219/tes...
-- Linaro LKFT https://lkft.linaro.org
On Tue, Dec 19, 2023 at 08:19:43PM +0100, Anders Roxell wrote:
On Tue, 19 Dec 2023 at 16:02, Naresh Kamboju naresh.kamboju@linaro.org wrote:
Following build failures noticed on parisc on Linux next-20231219 tag.
parisc: build: * gcc-11-defconfig - Failed * gcc-11-allnoconfig - Failed * gcc-11-tinyconfig - Failed
Build error: arch/parisc/mm/init.c: In function 'mem_init': arch/parisc/mm/init.c:534:29: error: invalid application of 'sizeof' to incomplete type 'struct shmid64_ds' 534 | BUILD_BUG_ON(sizeof(struct shmid64_ds) != 104); | ^~~~~~
Reported-by: Linux Kernel Functional Testing lkft@linaro.org
Steps to reproduce:
tuxmake --runtime podman --target-arch parisc --toolchain gcc-11 --kconfig defconfig
A bisection showed this patch as the faulty 1e462c05f65b ("shm: Slim down dependencies") Revering this patch made it build.
Thanks, I've applied the following fixup: commit ab6400d24d17e5248cbb0db37a56745554e6b6a5 Author: Kent Overstreet kent.overstreet@linux.dev Date: Tue Dec 19 15:47:45 2023 -0500
fixup! shm: Slim down dependencies
diff --git a/arch/parisc/mm/init.c b/arch/parisc/mm/init.c index a2a3e89f2d9a..f876af56e13f 100644 --- a/arch/parisc/mm/init.c +++ b/arch/parisc/mm/init.c @@ -33,6 +33,7 @@ #include <asm/msgbuf.h> #include <asm/sparsemem.h> #include <asm/asm-offsets.h> +#include <asm/shmbuf.h>
extern int data_start; extern void parisc_kernel_start(void); /* Kernel entry point in head.S */
On Tue, 19 Dec 2023 at 21:48, Kent Overstreet kent.overstreet@linux.dev wrote:
[...]
Revering this patch made it build.
Thanks, I've applied the following fixup:
That fixed it.
commit ab6400d24d17e5248cbb0db37a56745554e6b6a5 Author: Kent Overstreet kent.overstreet@linux.dev Date: Tue Dec 19 15:47:45 2023 -0500
fixup! shm: Slim down dependencies
Tested-by: Anders Roxell anders.roxell@linaro.org
diff --git a/arch/parisc/mm/init.c b/arch/parisc/mm/init.c index a2a3e89f2d9a..f876af56e13f 100644 --- a/arch/parisc/mm/init.c +++ b/arch/parisc/mm/init.c @@ -33,6 +33,7 @@ #include <asm/msgbuf.h> #include <asm/sparsemem.h> #include <asm/asm-offsets.h> +#include <asm/shmbuf.h>
extern int data_start; extern void parisc_kernel_start(void); /* Kernel entry point in head.S */