tree: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next
head: a6869e3a76f46b26a2b208882701fa17537b18cd
commit: d422be5f62ef7986d00afa4cd31eda5534ab7991 [1763/1819] Input: eeti_ts - expect platform code to set interrupt trigger
config: arm-raumfeld_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d422be5f62ef7986d00afa4cd31eda5534ab7991
# save the attached .config to linux build tree
make.cross ARCH=arm
All errors (new ones prefixed by >>):
In file included from include/linux/init.h:4:0,
from arch/arm/mach-pxa/raumfeld.c:19:quoted
include/linux/compiler.h:458:23: error: expected expression before '__attribute__'
# define __section(S) __attribute__ ((__section__(#S)))
^
include/linux/init.h:44:21: note: in expansion of macro '__section'
#define __initconst __section(.init.rodata)
^~~~~~~~~
arch/arm/mach-pxa/raumfeld.c:973:64: note: in expansion of macro '__initconst'
static const struct resource raumfeld_controller_resources[] = __initconst {
^~~~~~~~~~~
vim +/__attribute__ +458 include/linux/compiler.h
^1da177e Linus Torvalds 2005-04-16 442
0766f788 Emese Revfy 2016-06-20 443 #ifndef __latent_entropy
0766f788 Emese Revfy 2016-06-20 444 # define __latent_entropy
0766f788 Emese Revfy 2016-06-20 445 #endif
0766f788 Emese Revfy 2016-06-20 446
a586df06 Andi Kleen 2007-07-21 447 /*
a586df06 Andi Kleen 2007-07-21 448 * Tell gcc if a function is cold. The compiler will assume any path
a586df06 Andi Kleen 2007-07-21 449 * directly leading to the call is unlikely.
a586df06 Andi Kleen 2007-07-21 450 */
a586df06 Andi Kleen 2007-07-21 451
a586df06 Andi Kleen 2007-07-21 452 #ifndef __cold
a586df06 Andi Kleen 2007-07-21 453 #define __cold
a586df06 Andi Kleen 2007-07-21 454 #endif
a586df06 Andi Kleen 2007-07-21 455
f3fe866d Sam Ravnborg 2008-01-20 456 /* Simple shorthand for a section definition */
f3fe866d Sam Ravnborg 2008-01-20 457 #ifndef __section
f3fe866d Sam Ravnborg 2008-01-20 @458 # define __section(S) __attribute__ ((__section__(#S)))
f3fe866d Sam Ravnborg 2008-01-20 459 #endif
f3fe866d Sam Ravnborg 2008-01-20 460
9a858dc7 Andi Kleen 2012-09-17 461 #ifndef __visible
9a858dc7 Andi Kleen 2012-09-17 462 #define __visible
9a858dc7 Andi Kleen 2012-09-17 463 #endif
9a858dc7 Andi Kleen 2012-09-17 464
a744fd17 Rasmus Villemoes 2015-11-05 465 /*
a744fd17 Rasmus Villemoes 2015-11-05 466 * Assume alignment of return value.
:::::: The code at line 458 was first introduced by commit
:::::: f3fe866d59d707c7a2bba0b23add078e19edb3dc compiler.h: introduce __section()
:::::: TO: Sam Ravnborg [off-list ref]
:::::: CC: Sam Ravnborg [off-list ref]
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation