compiler-gcc3.h 636 B

12345678910111213141516171819202122232425
  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 __GNUC_MINOR__ < 2
  5. # error Sorry, your compiler is too old - please upgrade it.
  6. #endif
  7. #if __GNUC_MINOR__ >= 3
  8. # define __used __attribute__((__used__))
  9. #else
  10. # define __used __attribute__((__unused__))
  11. #endif
  12. #if __GNUC_MINOR__ >= 4
  13. #define __must_check __attribute__((warn_unused_result))
  14. #endif
  15. /*
  16. * A trick to suppress uninitialized variable warning without generating any
  17. * code
  18. */
  19. #define uninitialized_var(x) x = x
  20. #define __always_inline inline __attribute__((always_inline))