Merge tag 'mmc-10-29-2019' of https://gitlab.denx.de/u-boot/custodians/u-boot-mmc
[oweals/u-boot.git] / include / linux / types.h
index 1f3cd63b8f2265545b8d6bd245b957741b3fb8fa..51cb284bb8834510f2ad5d8b53ba19c74fcd1c4a 100644 (file)
@@ -151,11 +151,16 @@ 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)]
 
 #endif /* _LINUX_TYPES_H */