From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Date: Fri, 22 May 2020 12:40:24 +0530 Subject: [LTP] [PATCH 2/5] include: Add declaration of struct ipc64_perm In-Reply-To: References: <5a10d33509ac73c26b233ab72c579f44386d0a55.1590057824.git.viresh.kumar@linaro.org> Message-ID: <20200522071024.vomeqkqawp5w5nao@vireshk-i7> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it On 21-05-20, 15:11, Arnd Bergmann wrote: > On Thu, May 21, 2020 at 12:47 PM Viresh Kumar wrote: > > > > This adds declaration of struct ipc64_perm, which will be used by > > following patches. > > > > Signed-off-by: Viresh Kumar > > 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 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