1
0

080-remove_compiler_check.patch 554 B

12345678910111213141516
  1. --- a/include/linux/compiler-gcc4.h
  2. +++ b/include/linux/compiler-gcc4.h
  3. @@ -2,13 +2,6 @@
  4. #error "Please don't include <linux/compiler-gcc4.h> directly, include <linux/compiler.h> instead."
  5. #endif
  6. -/* GCC 4.1.[01] miscompiles __weak */
  7. -#ifdef __KERNEL__
  8. -# if GCC_VERSION >= 40100 && GCC_VERSION <= 40101
  9. -# error Your version of gcc miscompiles the __weak directive
  10. -# endif
  11. -#endif
  12. -
  13. #define __used __attribute__((__used__))
  14. #define __must_check __attribute__((warn_unused_result))
  15. #define __compiler_offsetof(a,b) __builtin_offsetof(a,b)