2011-09-23 11:42:14 +00:00
|
|
|
#ifndef __LINUX_COMPILER_H
|
|
|
|
#error "Please don't include <linux/compiler-gcc3.h> directly, include <linux/compiler.h> instead."
|
|
|
|
#endif
|
|
|
|
|
2014-09-03 17:40:58 +00:00
|
|
|
#if GCC_VERSION < 30200
|
|
|
|
# error Sorry, your compiler is too old - please upgrade it.
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if GCC_VERSION >= 30300
|
2011-09-23 11:42:14 +00:00
|
|
|
# define __used __attribute__((__used__))
|
|
|
|
#else
|
|
|
|
# define __used __attribute__((__unused__))
|
|
|
|
#endif
|
|
|
|
|
2014-09-03 17:40:58 +00:00
|
|
|
#if GCC_VERSION >= 30400
|
2011-09-23 11:42:14 +00:00
|
|
|
#define __must_check __attribute__((warn_unused_result))
|
|
|
|
#endif
|
|
|
|
|
2014-09-03 17:40:58 +00:00
|
|
|
#ifdef CONFIG_GCOV_KERNEL
|
|
|
|
# if GCC_VERSION < 30400
|
|
|
|
# error "GCOV profiling support for gcc versions below 3.4 not included"
|
|
|
|
# endif /* __GNUC_MINOR__ */
|
|
|
|
#endif /* CONFIG_GCOV_KERNEL */
|