compiler_gcc: do not redefine __gnu_attributes 01/111401/1
authorJeroen Hofstee <jeroen@myspectrum.nl>
Sat, 10 Aug 2013 15:16:50 +0000 (17:16 +0200)
committerjino.cho <jino.cho@samsung.com>
Thu, 19 Jan 2017 08:32:30 +0000 (17:32 +0900)
commit3814ec860a7f8dbd581ea432a717293d388350be
treefee1734baf6982cc8562a3a3959873dd0a8eedac
parente10b06ecb0703c9dd69fa627c8d49c7eb6379bdb
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>
[backport from u-boot mainline for gcc6]
Signed-off-by: jino.cho <jino.cho@samsung.com>
Change-Id: Ic609b26409268784dc0c46e5e21c3745e179dc1d
include/linux/compiler-gcc.h
include/linux/compiler-gcc4.h