[LTP] [PATCH 2/5] include: Add declaration of struct ipc64_perm

Arnd Bergmann arnd@arndb.de
Thu May 21 15:11:49 CEST 2020


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
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?

        Arnd


More information about the ltp mailing list