2011-01-25 14:14:35 +01:00
|
|
|
#ifndef __LINUX_COMPILER_H
|
|
|
|
#error "Please don't include <linux/compiler-gcc3.h> directly, include <linux/compiler.h> instead."
|
|
|
|
#endif
|
|
|
|
|
2013-04-24 22:04:21 +02:00
|
|
|
#if GCC_VERSION < 30200
|
2011-01-25 14:14:35 +01:00
|
|
|
# error Sorry, your compiler is too old - please upgrade it.
|
|
|
|
#endif
|
|
|
|
|
2013-04-24 22:04:21 +02:00
|
|
|
#if GCC_VERSION >= 30300
|
2011-01-25 14:14:35 +01:00
|
|
|
# define __used __attribute__((__used__))
|
|
|
|
#else
|
|
|
|
# define __used __attribute__((__unused__))
|
|
|
|
#endif
|
|
|
|
|
2013-04-24 22:04:21 +02:00
|
|
|
#if GCC_VERSION >= 30400
|
2011-01-25 14:14:35 +01:00
|
|
|
#define __must_check __attribute__((warn_unused_result))
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_GCOV_KERNEL
|
2013-04-24 22:04:21 +02:00
|
|
|
# if GCC_VERSION < 30400
|
2011-01-25 14:14:35 +01:00
|
|
|
# error "GCOV profiling support for gcc versions below 3.4 not included"
|
|
|
|
# endif /* __GNUC_MINOR__ */
|
|
|
|
#endif /* CONFIG_GCOV_KERNEL */
|