summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2019-10-27 05:19:43 -0700
committerTom Rini <trini@konsulko.com>2019-10-28 13:32:51 -0400
commit10289b4ed9f68bf3cd99d54acd4efdf7a96e281b (patch)
tree35277f460388ac973c8c6c6e0f40d462529e4244 /include/linux
parentafd3bf4318b0b3e845b5bc1f6763727229af9179 (diff)
linux/types.h: Surround 'struct ustat' with __linux__
'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 <bmeng.cn@gmail.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h
index cc6f7cb39e..51cb284bb8 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)]