Go to the documentation of this file. 1 #ifndef __LINUX_COMPILER_H
2 #error "Please don't include <linux/compiler-gcc4.h> directly, include <linux/compiler.h> instead."
7 # if __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ <= 1
8 # error Your version of gcc miscompiles the __weak directive
12 #define __used __attribute__((__used__))
13 #define __must_check __attribute__((warn_unused_result))
14 #define __compiler_offsetof(a,b) __builtin_offsetof(a,b)
16 #if __GNUC_MINOR__ >= 3
30 #define __cold __attribute__((__cold__))
32 #define __linktime_error(message) __attribute__((__error__(message)))
34 #if __GNUC_MINOR__ >= 5
44 #define unreachable() __builtin_unreachable()
47 #define __noclone __attribute__((__noclone__))
52 #if __GNUC_MINOR__ >= 6
56 #define __visible __attribute__((externally_visible))
59 #if __GNUC_MINOR__ > 0
60 #define __compiletime_object_size(obj) __builtin_object_size(obj, 0)
62 #if __GNUC_MINOR__ >= 3 && !defined(__CHECKER__)
63 #define __compiletime_warning(message) __attribute__((warning(message)))
64 #define __compiletime_error(message) __attribute__((error(message)))