1
0

080-remove_compiler_check.patch 425 B

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