[gpio:gpio-descriptors-regulator 25/26] arch/arm/mach-pxa/hx4700.c:703:33: error: expected identifier or '(' before '[' token

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpio-descriptors-regulator
head:   0e78939e6e7091d8e0cb6d259758eab6874145e6
commit: 799f4f3ffaaa280304c4991c85da49f546067e62 [25/26] regulator: gpio: Convert to fully use descriptors
config: arm-magician_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 799f4f3ffaaa280304c4991c85da49f546067e62
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

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

>> arch/arm/mach-pxa/hx4700.c:703:33: error: expected identifier or '(' before '[' token
    static enum bq24022_gpiod_gflags[] = { GPIOD_OUT_LOW };
                                    ^
>> arch/arm/mach-pxa/hx4700.c:715:12: error: 'bq24022_gpiod_flags' undeclared here (not in a function); did you mean 'bq24022_gpiod_gflags'?
     .gflags = bq24022_gpiod_flags,
               ^~~~~~~~~~~~~~~~~~~
               bq24022_gpiod_gflags
   In file included from arch/arm/mach-pxa/hx4700.c:17:0:
>> arch/arm/mach-pxa/hx4700.c:716:23: error: 'bq24022_gpiod_gflags' undeclared here (not in a function)
     .ngpios = ARRAY_SIZE(bq24022_gpiod_gflags),
                          ^
   include/linux/kernel.h:71:33: note: in definition of macro 'ARRAY_SIZE'
    #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                    ^~~
   In file included from include/linux/kernel.h:15:0,
                    from arch/arm/mach-pxa/hx4700.c:17:
   include/linux/build_bug.h:30:45: error: bit-field '<anonymous>' width not an integer constant
    #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))
                                                ^
   include/linux/compiler-gcc.h:65:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
    #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
                               ^~~~~~~~~~~~~~~~~
   include/linux/kernel.h:71:59: note: in expansion of macro '__must_be_array'
    #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                                              ^~~~~~~~~~~~~~~
>> arch/arm/mach-pxa/hx4700.c:716:12: note: in expansion of macro 'ARRAY_SIZE'
     .ngpios = ARRAY_SIZE(bq24022_gpiod_gflags),
               ^~~~~~~~~~
--
>> arch/arm/mach-pxa/magician.c:649:33: error: expected identifier or '(' before '[' token
    static enum bq24022_gpiod_gflags[] = { GPIOD_OUT_LOW };
                                    ^
>> arch/arm/mach-pxa/magician.c:661:12: error: 'bq24022_gpiod_flags' undeclared here (not in a function); did you mean 'bq24022_gpiod_gflags'?
     .gflags = bq24022_gpiod_flags,
               ^~~~~~~~~~~~~~~~~~~
               bq24022_gpiod_gflags
   In file included from arch/arm/mach-pxa/magician.c:16:0:
>> arch/arm/mach-pxa/magician.c:662:23: error: 'bq24022_gpiod_gflags' undeclared here (not in a function)
     .ngpios = ARRAY_SIZE(bq24022_gpiod_gflags),
                          ^
   include/linux/kernel.h:71:33: note: in definition of macro 'ARRAY_SIZE'
    #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                    ^~~
   In file included from include/linux/kernel.h:15:0,
                    from arch/arm/mach-pxa/magician.c:16:
   include/linux/build_bug.h:30:45: error: bit-field '<anonymous>' width not an integer constant
    #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))
                                                ^
   include/linux/compiler-gcc.h:65:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
    #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
                               ^~~~~~~~~~~~~~~~~
   include/linux/kernel.h:71:59: note: in expansion of macro '__must_be_array'
    #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                                              ^~~~~~~~~~~~~~~
>> arch/arm/mach-pxa/magician.c:662:12: note: in expansion of macro 'ARRAY_SIZE'
     .ngpios = ARRAY_SIZE(bq24022_gpiod_gflags),
               ^~~~~~~~~~

vim +703 arch/arm/mach-pxa/hx4700.c

   702	
 > 703	static enum bq24022_gpiod_gflags[] = { GPIOD_OUT_LOW };
   704	
   705	static struct gpio_regulator_state bq24022_states[] = {
   706		{ .value = 100000, .gpios = (0 << 0) },
   707		{ .value = 500000, .gpios = (1 << 0) },
   708	};
   709	
   710	static struct gpio_regulator_config bq24022_info = {
   711		.supply_name = "bq24022",
   712	
   713		.enabled_at_boot = 0,
   714	
 > 715		.gflags = bq24022_gpiod_flags,
 > 716		.ngpios = ARRAY_SIZE(bq24022_gpiod_gflags),
   717	
   718		.states = bq24022_states,
   719		.nr_states = ARRAY_SIZE(bq24022_states),
   720	
   721		.type = REGULATOR_CURRENT,
   722		.init_data = &bq24022_init_data,
   723	};
   724	

---
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 SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux