]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - include/linux/compiler.h
get_random_u32_below()
[bcachefs-tools-debian] / include / linux / compiler.h
index 2bfbfadb34b250d9f0840aded40060896bb72b37..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:
@@ -60,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)