Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp476123ybx; Wed, 30 Oct 2019 18:35:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUGeQNarL+k/2KVLfbel6mhEr2LawgCDyPlOiIyI0wk7ZNmZLnd7DuTQCfmyTDzSetVW2B X-Received: by 2002:a17:906:6d87:: with SMTP id h7mr1337537ejt.4.1572485754566; Wed, 30 Oct 2019 18:35:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572485754; cv=none; d=google.com; s=arc-20160816; b=LaUj3KGyFWVl03Z01eb49KVigkMWIj5vYQg9PEZZifS1zgMpmoK/5+agJ6q7uYlQtp q6PoiThvisnNi2Sfo/uDoTwxZz/8FraLLk0uIUEbOasUslT/vApE6vLRMmiFoNIrjO1Q Xylh4WOtlV15mQrgNTvv5IVPiqIKzva7iML67kCeyYGi3fB7zXe74+LVjSAD1cmSYIcb ebT9l4J57Xx0kthvf73ev+RyQrDwtOpsnN8tAtU/J+fiy3ISRSgkWv+4JHiXEUWe30HP ts4GL//5eflyhdGabAryx9flest2sfgJR5AaLufT311rTmBIpmyZpqeJOipS6UnGOjr7 H6zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:dkim-filter; bh=bp/M0yoU6XWG5FGhAIb3TMzMqQxSrCJgCA1yn97kfsQ=; b=YYgPZXL/yzJ1YbFAZsP8eSHs4fTlWlj5HMdMDp3aN1F2nsbJCNdAFQPM/chphTO9eu PqsuqF5pE8AGUgnglL6+HkfgZWJSgURrTGp1ffa+Ns8efBluWwEN4JxDZMOUbsOFXjOY OACse/YiP5oBkEDKcz7gl6/a7V8YSO1uHnrfSIiLFqdduzbbI2tMlUCqXuvQdDY6hJy+ 6BO1LRqcUBgBTxMwGRZFSHcUv+guED7waYDPelY1icYlg0bg+1UDcrPVH6dLo1iSx1YJ +2gox0/PNOWVecWHgKTsG4eXNPB2dHTLnxR4SbTH/NLcBSh88HaOOnEG8PJq6dOj1H1F f7HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=bepu0HQt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c30si2822104ede.125.2019.10.30.18.35.30; Wed, 30 Oct 2019 18:35:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=bepu0HQt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726781AbfJaBeC (ORCPT + 99 others); Wed, 30 Oct 2019 21:34:02 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:22349 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbfJaBeB (ORCPT ); Wed, 30 Oct 2019 21:34:01 -0400 X-Greylist: delayed 68041 seconds by postgrey-1.27 at vger.kernel.org; Wed, 30 Oct 2019 21:33:59 EDT Received: from mail-ua1-f49.google.com (mail-ua1-f49.google.com [209.85.222.49]) (authenticated) by conssluserg-06.nifty.com with ESMTP id x9V1XblS010344; Thu, 31 Oct 2019 10:33:37 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com x9V1XblS010344 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1572485618; bh=bp/M0yoU6XWG5FGhAIb3TMzMqQxSrCJgCA1yn97kfsQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=bepu0HQtj2km9tsJjGfmcHRWgvBCy9PQixDLI2BqNjDpxR1mZXkyqL2hzJ+k+tDCK OgNeX5mD3j73WVVzLx33CKIPSSPcNvmqYoc5BnwPjqqn2Fb0wI7MxYeYoi6BdOcBKc hVqxXg3g8jPHBjwbaUiId4bJbTBUFIFQl8mvVKQiY2khMN4dhhi2D9wG196759fMoJ VKllNk/zKoN0r+hcC6mXXFB6v6gt8X3YByaYkb5a6vB8gfJUCIS7z/66QfvqTkUIE3 dePXmDHyI001G8xbn4j+CFAv3XZQ9m6TiqnWmaKeqBl74g60NsDAJNyDK3kFizXYLS iNVrUZ44E/TTg== X-Nifty-SrcIP: [209.85.222.49] Received: by mail-ua1-f49.google.com with SMTP id o3so1312267ual.12; Wed, 30 Oct 2019 18:33:37 -0700 (PDT) X-Gm-Message-State: APjAAAWVOpzo+cxHCxeS/Hz+4GztL/TICf7At2CdMFfmd3sV+ezuSv3I KR60v3lJ6LSADqAdR3ZIf1OkR619QXHMQISPvRU= X-Received: by 2002:ab0:710a:: with SMTP id x10mr1550343uan.25.1572485616550; Wed, 30 Oct 2019 18:33:36 -0700 (PDT) MIME-Version: 1.0 References: <20191030063855.9989-1-yamada.masahiro@socionext.com> In-Reply-To: <20191030063855.9989-1-yamada.masahiro@socionext.com> From: Masahiro Yamada Date: Thu, 31 Oct 2019 10:33:00 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/3] arch: ipcbuf.h: make uapi asm/ipcbuf.h self-contained To: Andrew Morton , linux-arch Cc: linux-s390 , Linux Kernel Mailing List , linux-mips@vger.kernel.org, X86 ML , Arnd Bergmann , sparclinux , linuxppc-dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, I think this patch has already been picked up to your tree, but I noticed a typo in the commit message just now. Please see below. On Wed, Oct 30, 2019 at 3:40 PM Masahiro Yamada wrote: > > The user-space cannot compile due to some missing type > definitions. For example, building it for x86 fails as follows: > > CC usr/include/asm/ipcbuf.h.s > In file included from ./usr/include/asm/ipcbuf.h:1:0, > from :32: > ./usr/include/asm-generic/ipcbuf.h:21:2: error: unknown type name =E2=80= =98__kernel_key_t=E2=80=99 > __kernel_key_t key; > ^~~~~~~~~~~~~~ > ./usr/include/asm-generic/ipcbuf.h:22:2: error: unknown type name =E2=80= =98__kernel_uid32_t=E2=80=99 > __kernel_uid32_t uid; > ^~~~~~~~~~~~~~~~ > ./usr/include/asm-generic/ipcbuf.h:23:2: error: unknown type name =E2=80= =98__kernel_gid32_t=E2=80=99 > __kernel_gid32_t gid; > ^~~~~~~~~~~~~~~~ > ./usr/include/asm-generic/ipcbuf.h:24:2: error: unknown type name =E2=80= =98__kernel_uid32_t=E2=80=99 > __kernel_uid32_t cuid; > ^~~~~~~~~~~~~~~~ > ./usr/include/asm-generic/ipcbuf.h:25:2: error: unknown type name =E2=80= =98__kernel_gid32_t=E2=80=99 > __kernel_gid32_t cgid; > ^~~~~~~~~~~~~~~~ > ./usr/include/asm-generic/ipcbuf.h:26:2: error: unknown type name =E2=80= =98__kernel_mode_t=E2=80=99 > __kernel_mode_t mode; > ^~~~~~~~~~~~~~~ > ./usr/include/asm-generic/ipcbuf.h:28:35: error: =E2=80=98__kernel_mode_t= =E2=80=99 undeclared here (not in a function) > unsigned char __pad1[4 - sizeof(__kernel_mode_t)]; > ^~~~~~~~~~~~~~~ > ./usr/include/asm-generic/ipcbuf.h:31:2: error: unknown type name =E2=80= =98__kernel_ulong_t=E2=80=99 > __kernel_ulong_t __unused1; > ^~~~~~~~~~~~~~~~ > ./usr/include/asm-generic/ipcbuf.h:32:2: error: unknown type name =E2=80= =98__kernel_ulong_t=E2=80=99 > __kernel_ulong_t __unused2; > ^~~~~~~~~~~~~~~~ > > It is just a matter of missing include directive. > > Include to make it self-contained, and add it to Include to make ... Could you please fix it up locally? Thank you. Masahiro Yamada > the compile-test coverage. > > Signed-off-by: Masahiro Yamada > --- > > arch/s390/include/uapi/asm/ipcbuf.h | 2 ++ > arch/sparc/include/uapi/asm/ipcbuf.h | 2 ++ > arch/xtensa/include/uapi/asm/ipcbuf.h | 2 ++ > include/uapi/asm-generic/ipcbuf.h | 2 ++ > usr/include/Makefile | 1 - > 5 files changed, 8 insertions(+), 1 deletion(-) > > diff --git a/arch/s390/include/uapi/asm/ipcbuf.h b/arch/s390/include/uapi= /asm/ipcbuf.h > index 5b1c4f47c656..1030cd186899 100644 > --- a/arch/s390/include/uapi/asm/ipcbuf.h > +++ b/arch/s390/include/uapi/asm/ipcbuf.h > @@ -2,6 +2,8 @@ > #ifndef __S390_IPCBUF_H__ > #define __S390_IPCBUF_H__ > > +#include > + > /* > * The user_ipc_perm structure for S/390 architecture. > * Note extra padding because this structure is passed back and forth > diff --git a/arch/sparc/include/uapi/asm/ipcbuf.h b/arch/sparc/include/ua= pi/asm/ipcbuf.h > index 9d0d125500e2..5b933a598a33 100644 > --- a/arch/sparc/include/uapi/asm/ipcbuf.h > +++ b/arch/sparc/include/uapi/asm/ipcbuf.h > @@ -2,6 +2,8 @@ > #ifndef __SPARC_IPCBUF_H > #define __SPARC_IPCBUF_H > > +#include > + > /* > * The ipc64_perm structure for sparc/sparc64 architecture. > * Note extra padding because this structure is passed back and forth > diff --git a/arch/xtensa/include/uapi/asm/ipcbuf.h b/arch/xtensa/include/= uapi/asm/ipcbuf.h > index a57afa0b606f..3bd0642f6660 100644 > --- a/arch/xtensa/include/uapi/asm/ipcbuf.h > +++ b/arch/xtensa/include/uapi/asm/ipcbuf.h > @@ -12,6 +12,8 @@ > #ifndef _XTENSA_IPCBUF_H > #define _XTENSA_IPCBUF_H > > +#include > + > /* > * Pad space is left for: > * - 32-bit mode_t and seq > diff --git a/include/uapi/asm-generic/ipcbuf.h b/include/uapi/asm-generic= /ipcbuf.h > index 7d80dbd336fb..41a01b494fc7 100644 > --- a/include/uapi/asm-generic/ipcbuf.h > +++ b/include/uapi/asm-generic/ipcbuf.h > @@ -2,6 +2,8 @@ > #ifndef __ASM_GENERIC_IPCBUF_H > #define __ASM_GENERIC_IPCBUF_H > > +#include > + > /* > * The generic ipc64_perm structure: > * Note extra padding because this structure is passed back and forth > diff --git a/usr/include/Makefile b/usr/include/Makefile > index 57b20f7b6729..70f8fe256aed 100644 > --- a/usr/include/Makefile > +++ b/usr/include/Makefile > @@ -16,7 +16,6 @@ override c_flags =3D $(UAPI_CFLAGS) -Wp,-MD,$(depfile) = -I$(objtree)/usr/include > # Please consider to fix the header first. > # > # Sorted alphabetically. > -header-test- +=3D asm/ipcbuf.h > header-test- +=3D asm/msgbuf.h > header-test- +=3D asm/sembuf.h > header-test- +=3D asm/shmbuf.h > -- > 2.17.1 > --=20 Best Regards Masahiro Yamada