compiler-gcc3.h 635 B

1234567891011121314151617181920212223
  1. #ifndef __LINUX_COMPILER_H
  2. #error "Please don't include <linux/compiler-gcc3.h> directly, include <linux/compiler.h> instead."
  3. #endif
  4. #if GCC_VERSION < 30200
  5. # error Sorry, your compiler is too old - please upgrade it.
  6. #endif
  7. #if GCC_VERSION >= 30300
  8. # define __used __attribute__((__used__))
  9. #else
  10. # define __used __attribute__((__unused__))
  11. #endif
  12. #if GCC_VERSION >= 30400
  13. #define __must_check __attribute__((warn_unused_result))
  14. #endif
  15. #ifdef CONFIG_GCOV_KERNEL
  16. # if GCC_VERSION < 30400
  17. # error "GCOV profiling support for gcc versions below 3.4 not included"
  18. # endif /* __GNUC_MINOR__ */
  19. #endif /* CONFIG_GCOV_KERNEL */