Re: arch/parisc/mm/init.c:534:29: error: invalid application of 'sizeof' to incomplete type 'struct shmid64_ds'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx> 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@xxxxxxxxxx>
> >
> > 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@xxxxxxxxx>
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 */




[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux