Re: [PATCH v2 1/1] iio: accel: bmc150: use common definition for regmap conf

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

 



Hi Irina,

[auto build test ERROR on iio/togreg]
[also build test ERROR on v4.6-rc1 next-20160327]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Irina-Tirdea/iio-accel-bmc150-use-common-definition-for-regmap-conf/20160329-012449
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
config: xtensa-allyesconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

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

   In file included from drivers/iio/accel/bmc150-accel-spi.c:23:0:
   drivers/iio/accel/bmc150-accel-spi.c: In function 'bmc150_accel_probe':
>> drivers/iio/accel/bmc150-accel-spi.c:33:38: error: 'bmc150_spi_regmap_conf' undeclared (first use in this function)
     regmap = devm_regmap_init_spi(spi, &bmc150_spi_regmap_conf);
                                         ^
   include/linux/regmap.h:436:6: note: in definition of macro '__regmap_lockdep_wrapper'
      fn(__VA_ARGS__, &_key,     \
         ^
>> drivers/iio/accel/bmc150-accel-spi.c:33:11: note: in expansion of macro 'devm_regmap_init_spi'
     regmap = devm_regmap_init_spi(spi, &bmc150_spi_regmap_conf);
              ^
   drivers/iio/accel/bmc150-accel-spi.c:33:38: note: each undeclared identifier is reported only once for each function it appears in
     regmap = devm_regmap_init_spi(spi, &bmc150_spi_regmap_conf);
                                         ^
   include/linux/regmap.h:436:6: note: in definition of macro '__regmap_lockdep_wrapper'
      fn(__VA_ARGS__, &_key,     \
         ^
>> drivers/iio/accel/bmc150-accel-spi.c:33:11: note: in expansion of macro 'devm_regmap_init_spi'
     regmap = devm_regmap_init_spi(spi, &bmc150_spi_regmap_conf);
              ^

vim +/bmc150_spi_regmap_conf +33 drivers/iio/accel/bmc150-accel-spi.c

f9ab96e2 Markus Pargmann 2015-09-21  17   */
f9ab96e2 Markus Pargmann 2015-09-21  18  
f9ab96e2 Markus Pargmann 2015-09-21  19  #include <linux/device.h>
f9ab96e2 Markus Pargmann 2015-09-21  20  #include <linux/mod_devicetable.h>
f9ab96e2 Markus Pargmann 2015-09-21  21  #include <linux/module.h>
f9ab96e2 Markus Pargmann 2015-09-21  22  #include <linux/acpi.h>
f9ab96e2 Markus Pargmann 2015-09-21 @23  #include <linux/regmap.h>
f9ab96e2 Markus Pargmann 2015-09-21  24  #include <linux/spi/spi.h>
f9ab96e2 Markus Pargmann 2015-09-21  25  
f9ab96e2 Markus Pargmann 2015-09-21  26  #include "bmc150-accel.h"
f9ab96e2 Markus Pargmann 2015-09-21  27  
f9ab96e2 Markus Pargmann 2015-09-21  28  static int bmc150_accel_probe(struct spi_device *spi)
f9ab96e2 Markus Pargmann 2015-09-21  29  {
f9ab96e2 Markus Pargmann 2015-09-21  30  	struct regmap *regmap;
f9ab96e2 Markus Pargmann 2015-09-21  31  	const struct spi_device_id *id = spi_get_device_id(spi);
f9ab96e2 Markus Pargmann 2015-09-21  32  
f9ab96e2 Markus Pargmann 2015-09-21 @33  	regmap = devm_regmap_init_spi(spi, &bmc150_spi_regmap_conf);
f9ab96e2 Markus Pargmann 2015-09-21  34  	if (IS_ERR(regmap)) {
f9ab96e2 Markus Pargmann 2015-09-21  35  		dev_err(&spi->dev, "Failed to initialize spi regmap\n");
f9ab96e2 Markus Pargmann 2015-09-21  36  		return PTR_ERR(regmap);

:::::: The code at line 33 was first introduced by commit
:::::: f9ab96e212808123fbd9072d580a59194e5cd410 iio: bmc150: Add SPI driver

:::::: TO: Markus Pargmann <mpa@xxxxxxxxxxxxxx>
:::::: CC: Jonathan Cameron <jic23@xxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux