]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
compiler_gcc: do not redefine __gnu_attributes
authorJeroen Hofstee <jeroen@myspectrum.nl>
Sat, 10 Aug 2013 15:16:50 +0000 (17:16 +0200)
committerTom Rini <trini@ti.com>
Fri, 6 Sep 2013 17:09:07 +0000 (13:09 -0400)
commit7ea50d52849fe8ffa5b5b74c979b60b1045d6fc9
tree0ef5760a8aa51bf10a86c16934f6feea6b2ac0df
parentdc19ec11d7ac174de8a2580760b5385c8c96ed66
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>
include/linux/compiler-gcc.h
include/linux/compiler-gcc4.h