diff options
author | Jeroen Hofstee <jeroen@myspectrum.nl> | 2013-08-10 17:16:50 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-09-06 13:09:07 -0400 |
commit | 7ea50d52849fe8ffa5b5b74c979b60b1045d6fc9 (patch) | |
tree | 0ef5760a8aa51bf10a86c16934f6feea6b2ac0df /include/linux/compiler-gcc4.h | |
parent | dc19ec11d7ac174de8a2580760b5385c8c96ed66 (diff) | |
download | u-boot-imx-7ea50d52849fe8ffa5b5b74c979b60b1045d6fc9.zip u-boot-imx-7ea50d52849fe8ffa5b5b74c979b60b1045d6fc9.tar.gz u-boot-imx-7ea50d52849fe8ffa5b5b74c979b60b1045d6fc9.tar.bz2 |
compiler_gcc: do not redefine __gnu_attributes
gcc allows extensions to be non compiler specific by defining
__* macros for the attributes supported by gcc. Having a
different definition causes many warnings during the build
(cdefs.h on FreeBSD uses __attribute((__pure__)) where u-boot
uses __attribute__((pure)) for example). Do not redefine
these macros to suppress these warnings.
This patch ignores the checkpatch warning:
WARNING: __packed is preferred over __attribute__((packed))
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Diffstat (limited to 'include/linux/compiler-gcc4.h')
-rw-r--r-- | include/linux/compiler-gcc4.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/compiler-gcc4.h b/include/linux/compiler-gcc4.h index 94dea3f..27d11ca 100644 --- a/include/linux/compiler-gcc4.h +++ b/include/linux/compiler-gcc4.h @@ -12,7 +12,9 @@ #define __used __attribute__((__used__)) #define __must_check __attribute__((warn_unused_result)) #define __compiler_offsetof(a,b) __builtin_offsetof(a,b) -#define __always_inline inline __attribute__((always_inline)) +#ifndef __always_inline +# define __always_inline inline __attribute__((always_inline)) +#endif /* * A trick to suppress uninitialized variable warning without generating any |