2018-04-14 21:00:12 +00:00
|
|
|
--- a/include/linux/compiler-gcc.h
|
|
|
|
+++ b/include/linux/compiler-gcc.h
|
|
|
|
@@ -146,13 +146,6 @@
|
|
|
|
|
|
|
|
#if GCC_VERSION >= 40000
|
2014-12-01 11:07:30 +00:00
|
|
|
|
|
|
|
-/* GCC 4.1.[01] miscompiles __weak */
|
|
|
|
-#ifdef __KERNEL__
|
|
|
|
-# if GCC_VERSION >= 40100 && GCC_VERSION <= 40101
|
|
|
|
-# error Your version of gcc miscompiles the __weak directive
|
|
|
|
-# endif
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
#define __used __attribute__((__used__))
|
2018-04-14 21:00:12 +00:00
|
|
|
#define __compiler_offsetof(a, b) \
|
|
|
|
__builtin_offsetof(a, b)
|