From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Wed, 23 Oct 2019 20:11:48 -0700 Subject: [U-Boot] [PATCH v2 4/8] linux/types.h: Surround 'struct ustat' with __linux__ In-Reply-To: <1571886712-24514-1-git-send-email-bmeng.cn@gmail.com> References: <1571886712-24514-1-git-send-email-bmeng.cn@gmail.com> Message-ID: <1571886712-24514-5-git-send-email-bmeng.cn@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 'struct ustat' uses linux-specific typedefs to declare its memebers: __kernel_daddr_t and __kernel_ino_t. It is currently not used by any U-Boot codes, but when we build U-Boot tools for other platform like Windows, this becomes a problem. Let's surround it with __linux__. Signed-off-by: Bin Meng --- Changes in v2: None include/linux/types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/types.h b/include/linux/types.h index cc6f7cb..51cb284 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -151,12 +151,14 @@ typedef __u32 __bitwise __wsum; typedef unsigned __bitwise__ gfp_t; +#ifdef __linux__ struct ustat { __kernel_daddr_t f_tfree; __kernel_ino_t f_tinode; char f_fname[6]; char f_fpack[6]; }; +#endif #define DECLARE_BITMAP(name, bits) \ unsigned long name[BITS_TO_LONGS(bits)] -- 2.7.4