[gpio:ib-pca953x 10/14] drivers/gpio/gpio-pca953x.c:294:14: error: variable 'pca953x_i2c_regmap' has initializer but incomplete type

[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 ib-pca953x
head:   b76574300504e56e2878ade185d5f47893512d25
commit: 49427232764d62e5933b2c23cc841739abc9804c [10/14] gpio: pca953x: Perform basic regmap conversion
config: arm-pxa3xx_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 49427232764d62e5933b2c23cc841739abc9804c
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=arm 

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

>> drivers/gpio/gpio-pca953x.c:294:14: error: variable 'pca953x_i2c_regmap' has initializer but incomplete type
    const struct regmap_config pca953x_i2c_regmap = {
                 ^~~~~~~~~~~~~
>> drivers/gpio/gpio-pca953x.c:295:3: error: 'const struct regmap_config' has no member named 'reg_bits'
     .reg_bits = 8,
      ^~~~~~~~
>> drivers/gpio/gpio-pca953x.c:295:14: warning: excess elements in struct initializer
     .reg_bits = 8,
                 ^
   drivers/gpio/gpio-pca953x.c:295:14: note: (near initialization for 'pca953x_i2c_regmap')
>> drivers/gpio/gpio-pca953x.c:296:3: error: 'const struct regmap_config' has no member named 'val_bits'
     .val_bits = 8,
      ^~~~~~~~
   drivers/gpio/gpio-pca953x.c:296:14: warning: excess elements in struct initializer
     .val_bits = 8,
                 ^
   drivers/gpio/gpio-pca953x.c:296:14: note: (near initialization for 'pca953x_i2c_regmap')
>> drivers/gpio/gpio-pca953x.c:298:3: error: 'const struct regmap_config' has no member named 'readable_reg'
     .readable_reg = pca953x_readable_register,
      ^~~~~~~~~~~~
   drivers/gpio/gpio-pca953x.c:298:18: warning: excess elements in struct initializer
     .readable_reg = pca953x_readable_register,
                     ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpio/gpio-pca953x.c:298:18: note: (near initialization for 'pca953x_i2c_regmap')
>> drivers/gpio/gpio-pca953x.c:299:3: error: 'const struct regmap_config' has no member named 'writeable_reg'
     .writeable_reg = pca953x_writeable_register,
      ^~~~~~~~~~~~~
   drivers/gpio/gpio-pca953x.c:299:19: warning: excess elements in struct initializer
     .writeable_reg = pca953x_writeable_register,
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpio/gpio-pca953x.c:299:19: note: (near initialization for 'pca953x_i2c_regmap')
>> drivers/gpio/gpio-pca953x.c:300:3: error: 'const struct regmap_config' has no member named 'volatile_reg'
     .volatile_reg = pca953x_volatile_register,
      ^~~~~~~~~~~~
   drivers/gpio/gpio-pca953x.c:300:18: warning: excess elements in struct initializer
     .volatile_reg = pca953x_volatile_register,
                     ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpio/gpio-pca953x.c:300:18: note: (near initialization for 'pca953x_i2c_regmap')
>> drivers/gpio/gpio-pca953x.c:302:3: error: 'const struct regmap_config' has no member named 'cache_type'
     .cache_type = REGCACHE_RBTREE,
      ^~~~~~~~~~
   drivers/gpio/gpio-pca953x.c:302:16: warning: excess elements in struct initializer
     .cache_type = REGCACHE_RBTREE,
                   ^~~~~~~~~~~~~~~
   drivers/gpio/gpio-pca953x.c:302:16: note: (near initialization for 'pca953x_i2c_regmap')
>> drivers/gpio/gpio-pca953x.c:303:3: error: 'const struct regmap_config' has no member named 'max_register'
     .max_register = 0x7f,
      ^~~~~~~~~~~~
   drivers/gpio/gpio-pca953x.c:303:18: warning: excess elements in struct initializer
     .max_register = 0x7f,
                     ^~~~
   drivers/gpio/gpio-pca953x.c:303:18: note: (near initialization for 'pca953x_i2c_regmap')
   drivers/gpio/gpio-pca953x.c: In function 'pca953x_probe':
>> drivers/gpio/gpio-pca953x.c:934:17: error: implicit declaration of function 'devm_regmap_init_i2c'; did you mean 'devm_request_irq'? [-Werror=implicit-function-declaration]
     chip->regmap = devm_regmap_init_i2c(client, &pca953x_i2c_regmap);
                    ^~~~~~~~~~~~~~~~~~~~
                    devm_request_irq
>> drivers/gpio/gpio-pca953x.c:934:15: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     chip->regmap = devm_regmap_init_i2c(client, &pca953x_i2c_regmap);
                  ^
   drivers/gpio/gpio-pca953x.c: At top level:
>> drivers/gpio/gpio-pca953x.c:294:28: error: storage size of 'pca953x_i2c_regmap' isn't known
    const struct regmap_config pca953x_i2c_regmap = {
                               ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/pca953x_i2c_regmap +294 drivers/gpio/gpio-pca953x.c

   293	
 > 294	const struct regmap_config pca953x_i2c_regmap = {
 > 295		.reg_bits = 8,
 > 296		.val_bits = 8,
   297	
 > 298		.readable_reg = pca953x_readable_register,
 > 299		.writeable_reg = pca953x_writeable_register,
 > 300		.volatile_reg = pca953x_volatile_register,
   301	
 > 302		.cache_type = REGCACHE_RBTREE,
 > 303		.max_register = 0x7f,
   304	};
   305	

---
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