[input:next 1763/1765] arch/arm/mach-pxa/raumfeld.c:985:19: error: implicit declaration of function 'ARRAY_SZIE'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next
head:   57c7cfe48c2f7d701e74f7110569ebf378d844ac
commit: fdae726b199a6690f9ceb0ea497f9de52bf1f668 [1763/1765] Input: eeti_ts - expect platform code to set interrupt trigger
config: arm-pxa_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 fdae726b199a6690f9ceb0ea497f9de52bf1f668
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/init.h:4:0,
                    from arch/arm/mach-pxa/raumfeld.c:19:
>> 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 {
                                                                   ^~~~~~~~~~~
>> arch/arm/mach-pxa/raumfeld.c:985:19: error: implicit declaration of function 'ARRAY_SZIE' [-Werror=implicit-function-declaration]
     .num_resources = ARRAY_SZIE(raumfeld_controller_resources),
                      ^~~~~~~~~~
>> arch/arm/mach-pxa/raumfeld.c:985:19: error: initializer element is not constant
   arch/arm/mach-pxa/raumfeld.c:985:19: note: (near initialization for 'raumfeld_controller_i2c_board_info.num_resources')
   cc1: some warnings being treated as errors

vim +/ARRAY_SZIE +985 arch/arm/mach-pxa/raumfeld.c

   967	
   968	static struct eeti_ts_platform_data eeti_ts_pdata = {
   969		.irq_active_high = 1,
   970		.irq_gpio = GPIO_TOUCH_IRQ,
   971	};
   972	
 > 973	static const struct resource raumfeld_controller_resources[] = __initconst {
   974		{
   975			.start	= PXA_GPIO_TO_IRQ(GPIO_TOUCH_IRQ),
   976			.end	= PXA_GPIO_TO_IRQ(GPIO_TOUCH_IRQ),
   977			.flags	= IORESOURCE_IRQ | IRQF_TRIGGER_HIGH,
   978		},
   979	};
   980	
   981	static struct i2c_board_info raumfeld_controller_i2c_board_info __initdata = {
   982		.type	= "eeti_ts",
   983		.addr	= 0x0a,
   984		.resources = raumfeld_controller_resources,
 > 985		.num_resources = ARRAY_SZIE(raumfeld_controller_resources),
   986		.platform_data = &eeti_ts_pdata,
   987	};
   988	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux