Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1696034imm; Wed, 6 Jun 2018 22:03:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJbmYQUlWaMuD5U4+R4hXJlJbnCWNXM8UXqrOWcpPu5WUStkTHgX8B20MNrFqQXW13LNH/Z X-Received: by 2002:a65:5ac9:: with SMTP id d9-v6mr349803pgt.238.1528347797910; Wed, 06 Jun 2018 22:03:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528347797; cv=none; d=google.com; s=arc-20160816; b=Rj+g8p8BhNh+1JxNd73cVuoy4KQ8ChP9LlfuAt29+KxihGIR0ntsvsmlpxKbZfH2Vy iF3B8bwS5hMAx2s5mJEEKE0mdAGD9Lc7mKt4yWtDEZa3B4wwLMf5MQ1+xhRIx7gFXyUZ FW2+7Ycw8bkclrNHOLxYq35AccjV20Hb7cR91J+wf+6hOTeTqzTo97HMaxCxvduURk8B 9EQVVDugnVwULf5py98fF30QcFxw5zF/JvDwpiwR5Es38uUEVYG+i1ZClvgapiatiurt wdoSF805uOPBGiu+onm9Jm+iALOn6e8ljIcAoVZwzzUZ+f2WHN7IOIdAevw9ksBuFeCQ iQtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=XjowZvNlgLl+tsKNRqO3H0iDaYXw6MysK16CKqa7hVo=; b=0hYTlF4wzM3esyrs8yJBvI9lstTJcJIRXjzhFPOAIHuAXtW6e2q1WrgNxbdGwkfirP M5DY7d/6dZy6CrTJUovwYxRWIZrcs60f4RQXSZxEB1VDxrH8VDi9olcfDnOZ8/hsKwK2 DM/dXdz6m+VOP6cBqUXvc13zRQvGCCy4+PoH/PqCQ+PqoX9Ny4ndEXOymoNjBBE/IX5T a6Nqm5igGkYR0yZXvHLym0fBb9Gwd5brM2MANndNRIZ7+xg/0D9er3A0kDQEvcxrJ6J6 5Cw19Z94OYVo3D1/kEQ97Bg/g0WInSgmrnrvAdf4ohXGa4ISObK9Mn1Ml4cyBOFxTWXh YDfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=D7XuQb43; 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 be5-v6si11019607plb.563.2018.06.06.22.03.03; Wed, 06 Jun 2018 22:03:17 -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=D7XuQb43; 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 S1751491AbeFGE7m (ORCPT + 99 others); Thu, 7 Jun 2018 00:59:42 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:62430 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750895AbeFGE7l (ORCPT ); Thu, 7 Jun 2018 00:59:41 -0400 Received: from mail-ua0-f176.google.com (mail-ua0-f176.google.com [209.85.217.176]) (authenticated) by conssluserg-03.nifty.com with ESMTP id w574xRrm007121; Thu, 7 Jun 2018 13:59:27 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com w574xRrm007121 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1528347568; bh=XjowZvNlgLl+tsKNRqO3H0iDaYXw6MysK16CKqa7hVo=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=D7XuQb43vAStVGX6pAtYU26czZNaOqfMZTWxWTptcyE2O8OZ5ixbjbmzpGtTX+BLh n3wTE/mNKKcDDWk2OVyO+iWKlBxIwOpIX1nAQFhOyh6qkXHoUNJ3BAdbJtFxLCnX7K 0QOITAIsHvpfvj763nHQuEAJw5oUgiH+kJuPdTElQnrSmbqr3HCYFdPVmKu6Ra/WOJ SRVJRRnD/S0pqikvpkGN91z+/0BlVf23sXI0fp7VI33k5dMcuYu/kLWIosDi+f6wRR Zlm1KP3jop6V3/46n+zVEUut4JxgTxCbHviJysGdz3QPRd24L1S+zzMkLmXbsuVwhj hntuuqlWNlQOA== X-Nifty-SrcIP: [209.85.217.176] Received: by mail-ua0-f176.google.com with SMTP id f30-v6so5611424uab.11; Wed, 06 Jun 2018 21:59:27 -0700 (PDT) X-Gm-Message-State: APt69E1nwtpQYGscYBmDFz5H1Gzhexp/WQzw/u7pwoI/gkGM7+oNF0Vx q6rjqrwW5AaOBnll37vjD7jXhISweLOz/V4pzLQ= X-Received: by 2002:ab0:7089:: with SMTP id m9-v6mr191327ual.141.1528347566359; Wed, 06 Jun 2018 21:59:26 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:20ab:0:0:0:0:0 with HTTP; Wed, 6 Jun 2018 21:58:45 -0700 (PDT) In-Reply-To: <20180606231602.231326-1-jchowdhary@google.com> References: <20180606231602.231326-1-jchowdhary@google.com> From: Masahiro Yamada Date: Thu, 7 Jun 2018 13:58:45 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] uapi: Make generic uapi headers compile standalone. To: Jayant Chowdhary Cc: Linux Kernel Mailing List , Andrew Morton , kernel-team@android.com, Linux Kbuild mailing list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi. 2018-06-07 8:16 GMT+09:00 Jayant Chowdhary : > In order for static analysis tools to analyze each of the uapi headers, > we need to enable them to compile stand-alone. Some uapi headers were > missing dependencies which would not make them compile stand-alone in > user-land. This patch adds those dependencies. > > Test: make defconfig; make -j64 > > Test: make ARCH=arm64 defconfig; > ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make -j64 all > > Test: ran header-abi-dumper[1] on all the affected headers with > appropriate include paths[2] for arm64. eg: for drm_fourcc.h, > > $HEADER_ABI_DUMPER -o drm_fourcc.h.sdump \ > include/uapi/drm/drm_fourcc.h -- -target aarch64-linux-android -std=gnu99 \ > -isystem $CLANG_INCLUDE_PATH \ > -I include/uapi/ -I arch/arm64/include/generated/uapi \ > -I arch/arm64/include/uapi -I private-compiler-headers > -I include/generated/uapi \ > -I include/uapi/../../arch/arm/include/uapi First of all, is this check sensible? scripts/headers_install.sh manipulates exported headers. So, shouldn't you do this check after "make headers_install"? You are adding around to various UAPI headers. Could you tell me why it was added? The tool rips off anyway when exporting UAPI headers: https://github.com/torvalds/linux/blob/v4.17/scripts/headers_install.sh#L37 Also, you are adding to several headers. Please do not pull it in to the kernel space. The kernel space defines fixed-width types in its headers. For example, you added to include/uapi/scsi/scsi_netlink.h In my opinion, the correct fix is to replace uint8_t with __u8 or __uint8_t. > where > HEADER_ABI_DUMPER=\ > $ANDROID_BUILD_TOP/prebuilts/clang-tools/linux-x86/bin/header-abi-dumper > > CLANG_INCLUDE_PATH=\ > $ANDROID_BUILD_TOP/prebuilts/clang/host/linux-x86/clang-3289846/bin/../lib64/clang/3.8/include > > on a lunched aosp tree [3] > > [1] > header-abi-dumper is a clang based static analysis tool, used by android's build > system which parses a C/C++ source file and emits information about the data > types included in the source. More information can be found at > https://android.googlesource.com/platform/development/+/master/vndk/tools/header-checker/README.md > > [2] > Some headers, eg: compiler_types.h, compiler.h, sys/socket.h are not in the > set of uapi headers, even though they are included by uapi headers( > include/uapi/linux/types.h, include/uapi/asm-generic/signal-defs.h etc). The > 'private-compiler-headers' in the test clause was included with private copies > of these headers. libc distributions (eg: bionic) often have their > copies of these headers as well. > > [3] > https://source.android.com/setup/build/downloading > > Cc: akpm@linux-foundation.org > Cc: kernel-team@android.com > Cc: linux-kbuild@vger.kernel.org > Signed-off-by: Jayant Chowdhary > --- > include/uapi/asm-generic/ipcbuf.h | 2 ++ > include/uapi/asm-generic/msgbuf.h | 3 +++ > include/uapi/asm-generic/sembuf.h | 2 ++ > include/uapi/asm-generic/shmbuf.h | 2 ++ > include/uapi/asm-generic/ucontext.h | 5 +++++ > include/uapi/linux/agpgart.h | 1 - > include/uapi/linux/android/binder.h | 1 + > include/uapi/linux/chio.h | 6 ++++++ > include/uapi/linux/coda_psdev.h | 1 + > include/uapi/linux/dvb/dmx.h | 3 --- > include/uapi/linux/dvb/video.h | 3 --- > include/uapi/linux/errqueue.h | 1 + > include/uapi/linux/kexec.h | 1 + > include/uapi/linux/kfd_ioctl.h | 1 + > include/uapi/linux/lightnvm.h | 1 - > include/uapi/linux/ndctl.h | 1 + > include/uapi/linux/netfilter_bridge/ebtables.h | 1 + > include/uapi/linux/nfs4_mount.h | 3 +++ > include/uapi/linux/psp-sev.h | 1 + > include/uapi/linux/scc.h | 2 +- > include/uapi/linux/sctp.h | 3 +++ > include/uapi/linux/sdla.h | 2 ++ > include/uapi/linux/socket.h | 4 ++++ > include/uapi/linux/stddef.h | 5 +++++ > include/uapi/linux/sysctl.h | 1 + > include/uapi/linux/types.h | 1 + > include/uapi/linux/vbox_vmmdev_types.h | 1 + > include/uapi/linux/vboxguest.h | 1 + > include/uapi/rdma/hfi/hfi1_user.h | 1 + > include/uapi/scsi/scsi_bsg_fc.h | 2 ++ > include/uapi/scsi/scsi_netlink.h | 1 + > include/uapi/sound/asound.h | 2 +- > 32 files changed, 55 insertions(+), 10 deletions(-) > > 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/include/uapi/asm-generic/msgbuf.h b/include/uapi/asm-generic/msgbuf.h > index fb306ebdb36f..8cdd7ca75df6 100644 > --- a/include/uapi/asm-generic/msgbuf.h > +++ b/include/uapi/asm-generic/msgbuf.h > @@ -3,6 +3,9 @@ > #define __ASM_GENERIC_MSGBUF_H > > #include > +#include > +#include > + > /* > * generic msqid64_ds structure. > * > diff --git a/include/uapi/asm-generic/sembuf.h b/include/uapi/asm-generic/sembuf.h > index cbf9cfe977d6..7f37edb95d9f 100644 > --- a/include/uapi/asm-generic/sembuf.h > +++ b/include/uapi/asm-generic/sembuf.h > @@ -3,6 +3,8 @@ > #define __ASM_GENERIC_SEMBUF_H > > #include > +#include > +#include > > /* > * The semid64_ds structure for x86 architecture. > diff --git a/include/uapi/asm-generic/shmbuf.h b/include/uapi/asm-generic/shmbuf.h > index 2b6c3bb97f97..1c5e7165fca5 100644 > --- a/include/uapi/asm-generic/shmbuf.h > +++ b/include/uapi/asm-generic/shmbuf.h > @@ -3,6 +3,8 @@ > #define __ASM_GENERIC_SHMBUF_H > > #include > +#include > +#include > > /* > * The shmid64_ds structure for x86 architecture. > diff --git a/include/uapi/asm-generic/ucontext.h b/include/uapi/asm-generic/ucontext.h > index 351868a72168..19199f45c523 100644 > --- a/include/uapi/asm-generic/ucontext.h > +++ b/include/uapi/asm-generic/ucontext.h > @@ -2,6 +2,11 @@ > #ifndef __ASM_GENERIC_UCONTEXT_H > #define __ASM_GENERIC_UCONTEXT_H > > +#ifndef __KERNEL__ > +#include > +#include > +#endif > + > struct ucontext { > unsigned long uc_flags; > struct ucontext *uc_link; > diff --git a/include/uapi/linux/agpgart.h b/include/uapi/linux/agpgart.h > index f5251045181a..4e828cf487bc 100644 > --- a/include/uapi/linux/agpgart.h > +++ b/include/uapi/linux/agpgart.h > @@ -52,7 +52,6 @@ > > #ifndef __KERNEL__ > #include > -#include > > struct agp_version { > __u16 major; > diff --git a/include/uapi/linux/android/binder.h b/include/uapi/linux/android/binder.h > index bfaec6903b8b..fd6de2203057 100644 > --- a/include/uapi/linux/android/binder.h > +++ b/include/uapi/linux/android/binder.h > @@ -23,6 +23,7 @@ > > #include > #include > +#include > > #define B_PACK_CHARS(c1, c2, c3, c4) \ > ((((c1)<<24)) | (((c2)<<16)) | (((c3)<<8)) | (c4)) > diff --git a/include/uapi/linux/chio.h b/include/uapi/linux/chio.h > index 689fc93fafda..5e63753a0d53 100644 > --- a/include/uapi/linux/chio.h > +++ b/include/uapi/linux/chio.h > @@ -3,6 +3,11 @@ > * ioctl interface for the scsi media changer driver > */ > > +#ifndef _UAPI_CHIO_H > +#define _UAPI_CHIO_H > + > +#include > + > /* changer element types */ > #define CHET_MT 0 /* media transport element (robot) */ > #define CHET_ST 1 /* storage element (media slots) */ > @@ -167,3 +172,4 @@ struct changer_set_voltag { > * c-basic-offset: 8 > * End: > */ > +#endif > diff --git a/include/uapi/linux/coda_psdev.h b/include/uapi/linux/coda_psdev.h > index aa6623efd2dd..31b1867021b7 100644 > --- a/include/uapi/linux/coda_psdev.h > +++ b/include/uapi/linux/coda_psdev.h > @@ -3,6 +3,7 @@ > #define _UAPI__CODA_PSDEV_H > > #include > +#include > > #define CODA_PSDEV_MAJOR 67 > #define MAX_CODADEVS 5 /* how many do we allow */ > diff --git a/include/uapi/linux/dvb/dmx.h b/include/uapi/linux/dvb/dmx.h > index b4112f0b6dd3..ce30e9f6145a 100644 > --- a/include/uapi/linux/dvb/dmx.h > +++ b/include/uapi/linux/dvb/dmx.h > @@ -26,9 +26,6 @@ > #define _UAPI_DVBDMX_H_ > > #include > -#ifndef __KERNEL__ > -#include > -#endif > > > #define DMX_FILTER_SIZE 16 > diff --git a/include/uapi/linux/dvb/video.h b/include/uapi/linux/dvb/video.h > index df3d7028c807..8f3a485b9988 100644 > --- a/include/uapi/linux/dvb/video.h > +++ b/include/uapi/linux/dvb/video.h > @@ -26,9 +26,6 @@ > #define _UAPI_DVBVIDEO_H_ > > #include > -#ifndef __KERNEL__ > -#include > -#endif > > typedef enum { > VIDEO_FORMAT_4_3, /* Select 4:3 format */ > diff --git a/include/uapi/linux/errqueue.h b/include/uapi/linux/errqueue.h > index dc64cfaf13da..ad2421e3d613 100644 > --- a/include/uapi/linux/errqueue.h > +++ b/include/uapi/linux/errqueue.h > @@ -2,6 +2,7 @@ > #ifndef _UAPI_LINUX_ERRQUEUE_H > #define _UAPI_LINUX_ERRQUEUE_H > > +#include > #include > > struct sock_extended_err { > diff --git a/include/uapi/linux/kexec.h b/include/uapi/linux/kexec.h > index 6d112868272d..49d50d469723 100644 > --- a/include/uapi/linux/kexec.h > +++ b/include/uapi/linux/kexec.h > @@ -8,6 +8,7 @@ > */ > > #include > +#include > > /* kexec flags for different usage scenarios */ > #define KEXEC_ON_CRASH 0x00000001 > diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h > index b4f5073dbac2..4a882a133b69 100644 > --- a/include/uapi/linux/kfd_ioctl.h > +++ b/include/uapi/linux/kfd_ioctl.h > @@ -25,6 +25,7 @@ > > #include > #include > +#include > > #define KFD_IOCTL_MAJOR_VERSION 1 > #define KFD_IOCTL_MINOR_VERSION 1 > diff --git a/include/uapi/linux/lightnvm.h b/include/uapi/linux/lightnvm.h > index f9a1be7fc696..af28d32b0ac3 100644 > --- a/include/uapi/linux/lightnvm.h > +++ b/include/uapi/linux/lightnvm.h > @@ -24,7 +24,6 @@ > #include > #include > #else /* __KERNEL__ */ > -#include > #include > #define DISK_NAME_LEN 32 > #endif /* __KERNEL__ */ > diff --git a/include/uapi/linux/ndctl.h b/include/uapi/linux/ndctl.h > index 7e27070b9440..a89a294e5ca5 100644 > --- a/include/uapi/linux/ndctl.h > +++ b/include/uapi/linux/ndctl.h > @@ -13,6 +13,7 @@ > #ifndef __NDCTL_H__ > #define __NDCTL_H__ > > +#include > #include > > struct nd_cmd_dimm_flags { > diff --git a/include/uapi/linux/netfilter_bridge/ebtables.h b/include/uapi/linux/netfilter_bridge/ebtables.h > index 0c7dc8315013..c57850b90b50 100644 > --- a/include/uapi/linux/netfilter_bridge/ebtables.h > +++ b/include/uapi/linux/netfilter_bridge/ebtables.h > @@ -16,6 +16,7 @@ > #include > #include > #include > +#include > > #define EBT_TABLE_MAXNAMELEN 32 > #define EBT_CHAIN_MAXNAMELEN EBT_TABLE_MAXNAMELEN > diff --git a/include/uapi/linux/nfs4_mount.h b/include/uapi/linux/nfs4_mount.h > index d20bb869bb99..6c9792073b19 100644 > --- a/include/uapi/linux/nfs4_mount.h > +++ b/include/uapi/linux/nfs4_mount.h > @@ -19,6 +19,9 @@ > */ > #define NFS4_MOUNT_VERSION 1 > > +#include /* for struct sockaddr. */ > +#include > + > struct nfs_string { > unsigned int len; > const char __user * data; > diff --git a/include/uapi/linux/psp-sev.h b/include/uapi/linux/psp-sev.h > index 9008f31c7eb6..c796f1b194a3 100644 > --- a/include/uapi/linux/psp-sev.h > +++ b/include/uapi/linux/psp-sev.h > @@ -18,6 +18,7 @@ > #define __PSP_SEV_USER_H__ > > #include > +#include > > /** > * SEV platform commands > diff --git a/include/uapi/linux/scc.h b/include/uapi/linux/scc.h > index c5bc7f747755..9122d48a4227 100644 > --- a/include/uapi/linux/scc.h > +++ b/include/uapi/linux/scc.h > @@ -4,7 +4,7 @@ > #ifndef _UAPI_SCC_H > #define _UAPI_SCC_H > > - > +#include > /* selection of hardware types */ > > #define PA0HZP 0x00 /* hardware type for PA0HZP SCC card and compatible */ > diff --git a/include/uapi/linux/sctp.h b/include/uapi/linux/sctp.h > index b64d583bf053..de4675d92e9f 100644 > --- a/include/uapi/linux/sctp.h > +++ b/include/uapi/linux/sctp.h > @@ -56,6 +56,9 @@ > > #include > #include > +#ifndef __KERNEL__ > +#include > +#endif > > typedef __s32 sctp_assoc_t; > > diff --git a/include/uapi/linux/sdla.h b/include/uapi/linux/sdla.h > index 1e3735be6511..2a0dc687aa49 100644 > --- a/include/uapi/linux/sdla.h > +++ b/include/uapi/linux/sdla.h > @@ -24,6 +24,8 @@ > #ifndef _UAPISDLA_H > #define _UAPISDLA_H > > +#include > + > /* adapter type */ > #define SDLA_TYPES > #define SDLA_S502A 5020 > diff --git a/include/uapi/linux/socket.h b/include/uapi/linux/socket.h > index 8eb96021709c..51c11f6b26e6 100644 > --- a/include/uapi/linux/socket.h > +++ b/include/uapi/linux/socket.h > @@ -11,6 +11,10 @@ > > typedef unsigned short __kernel_sa_family_t; > > +#ifndef __KERNEL__ > +#include /* for struct sockaddr. */ > +#endif > + > struct __kernel_sockaddr_storage { > __kernel_sa_family_t ss_family; /* address family */ > /* Following field(s) are implementation specific */ > diff --git a/include/uapi/linux/stddef.h b/include/uapi/linux/stddef.h > index ee8220f8dcf5..c949a6836417 100644 > --- a/include/uapi/linux/stddef.h > +++ b/include/uapi/linux/stddef.h > @@ -1,6 +1,11 @@ > /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ > +#ifndef __UAPI_STDDEF_H__ > +#define __UAPI_STDDEF_H__ > + > #include > > #ifndef __always_inline > #define __always_inline inline > #endif > + > +#endif // __UAPI_STDDEF_H__ > diff --git a/include/uapi/linux/sysctl.h b/include/uapi/linux/sysctl.h > index 6b58371b1f0d..fac6c1c7def2 100644 > --- a/include/uapi/linux/sysctl.h > +++ b/include/uapi/linux/sysctl.h > @@ -26,6 +26,7 @@ > #include > #include > #include > +#include > > #define CTL_MAXNAME 10 /* how many path components do we allow in a > call to sysctl? In other words, what is > diff --git a/include/uapi/linux/types.h b/include/uapi/linux/types.h > index cd4f0b897a48..d61eb82432be 100644 > --- a/include/uapi/linux/types.h > +++ b/include/uapi/linux/types.h > @@ -11,6 +11,7 @@ > #endif /* __EXPORTED_HEADERS__ */ > #endif > > +#include > #include > > > diff --git a/include/uapi/linux/vbox_vmmdev_types.h b/include/uapi/linux/vbox_vmmdev_types.h > index 0e68024f36c7..26d0e69f6fdc 100644 > --- a/include/uapi/linux/vbox_vmmdev_types.h > +++ b/include/uapi/linux/vbox_vmmdev_types.h > @@ -11,6 +11,7 @@ > > #include > #include > +#include > > /* > * We cannot use linux' compiletime_assert here because it expects to be used > diff --git a/include/uapi/linux/vboxguest.h b/include/uapi/linux/vboxguest.h > index 612f0c7d3558..44606c96f830 100644 > --- a/include/uapi/linux/vboxguest.h > +++ b/include/uapi/linux/vboxguest.h > @@ -9,6 +9,7 @@ > #define __UAPI_VBOXGUEST_H__ > > #include > +#include > #include > #include > #include > diff --git a/include/uapi/rdma/hfi/hfi1_user.h b/include/uapi/rdma/hfi/hfi1_user.h > index c6a984c0c881..6f5e461b8015 100644 > --- a/include/uapi/rdma/hfi/hfi1_user.h > +++ b/include/uapi/rdma/hfi/hfi1_user.h > @@ -58,6 +58,7 @@ > #define _LINUX__HFI1_USER_H > > #include > +#include > #include > > /* > diff --git a/include/uapi/scsi/scsi_bsg_fc.h b/include/uapi/scsi/scsi_bsg_fc.h > index 62597d86beed..23971d00c46d 100644 > --- a/include/uapi/scsi/scsi_bsg_fc.h > +++ b/include/uapi/scsi/scsi_bsg_fc.h > @@ -23,6 +23,8 @@ > #ifndef SCSI_BSG_FC_H > #define SCSI_BSG_FC_H > > +#include > + > /* > * This file intended to be included by both kernel and user space > */ > diff --git a/include/uapi/scsi/scsi_netlink.h b/include/uapi/scsi/scsi_netlink.h > index 5ccc2333acab..37d39eb671cc 100644 > --- a/include/uapi/scsi/scsi_netlink.h > +++ b/include/uapi/scsi/scsi_netlink.h > @@ -25,6 +25,7 @@ > > #include > #include > +#include > > /* > * This file intended to be included by both kernel and user space > diff --git a/include/uapi/sound/asound.h b/include/uapi/sound/asound.h > index ed0a120d4f08..b569f0eb3a7f 100644 > --- a/include/uapi/sound/asound.h > +++ b/include/uapi/sound/asound.h > @@ -31,7 +31,7 @@ > #endif > > #ifndef __KERNEL__ > -#include > +#include > #endif > > /* > -- > 2.17.1.1185.g55be947832-goog > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Best Regards Masahiro Yamada