[LTP] [PATCH 2/5] include: Add declaration of struct ipc64_perm
Viresh Kumar
viresh.kumar@linaro.org
Fri May 22 09:10:24 CEST 2020
On 21-05-20, 15:11, Arnd Bergmann wrote:
> On Thu, May 21, 2020 at 12:47 PM Viresh Kumar <viresh.kumar@linaro.org> wrote:
> >
> > This adds declaration of struct ipc64_perm, which will be used by
> > following patches.
> >
> > Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
>
> Like the other structures, there are multiple definitions in the kernel:
>
> $ git grep ^struct.ipc64_perm
I searched with a { at the end :)
> arch/parisc/include/uapi/asm/ipcbuf.h:struct ipc64_perm
> arch/powerpc/include/uapi/asm/ipcbuf.h:struct ipc64_perm
> arch/s390/include/uapi/asm/ipcbuf.h:struct ipc64_perm
> arch/sparc/include/uapi/asm/ipcbuf.h:struct ipc64_perm
> arch/xtensa/include/uapi/asm/ipcbuf.h:struct ipc64_perm
> include/uapi/asm-generic/ipcbuf.h:struct ipc64_perm
>
> Any reason you can't just #include <asm/ipcbuf.h> to get the
> kernel's definition for the correct architecture?
Because the libc header may not have the definitions, and so we need
to define our own.
--
viresh
More information about the ltp
mailing list