]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - include/linux/compiler.h
A small compile fix
[bcachefs-tools-debian] / include / linux / compiler.h
index e5c31a6ce26fae866984f9a90158fdfed47d866d..39df1f16ffc0250cce32a425f11125190299d886 100644 (file)
 # define __always_inline       inline __attribute__((always_inline))
 #endif
 
+#ifndef __attribute_const__
+#define __attribute_const__     __attribute__((__const__))
+#endif
+
 #ifdef __ANDROID__
 /*
  * FIXME: Big hammer to get rid of tons of:
@@ -34,6 +38,7 @@
 #define __maybe_unused         __attribute__((unused))
 #define __always_unused                __attribute__((unused))
 #define __packed               __attribute__((__packed__))
+#define __flatten              __attribute__((flatten))
 #define __force
 #define __nocast
 #define __iomem
@@ -59,6 +64,7 @@
 #define unlikely(x)            __builtin_expect(!!(x), 0)
 #define unreachable()          __builtin_unreachable()
 #define __same_type(a, b)      __builtin_types_compatible_p(typeof(a), typeof(b))
+#define fallthrough            __attribute__((__fallthrough__))
 
 #define ___PASTE(a,b) a##b
 #define __PASTE(a,b) ___PASTE(a,b)
@@ -166,4 +172,8 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s
 #define flush_cache_vmap(start, end)           do { } while (0)
 #define flush_cache_vunmap(start, end)         do { } while (0)
 
+#ifdef __x86_64
+#define CONFIG_X86_64  y
+#endif
+
 #endif /* _TOOLS_LINUX_COMPILER_H */