Re: [PATCH] rtc: add support for rtc NXP pca21125 and pca8565
From: kbuild test robot
Date: Sun Dec 25 2016 - 02:37:21 EST
Hi Venkat,
[auto build test WARNING on abelloni/rtc-next]
[also build test WARNING on v4.9 next-20161224]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Venkat-Prashanth-B-U/rtc-add-support-for-rtc-NXP-pca21125-and-pca8565/20161225-150140
base: https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git rtc-next
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
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 warnings (new ones prefixed by >>):
In file included from drivers/rtc/rtc-pcf8563.c:26:0:
drivers/rtc/rtc-pcf8563.c: In function 'pca21125_probe':
>> include/linux/regmap.h:667:27: warning: passing argument 1 of '__devm_regmap_init_spi' discards 'const' qualifier from pointer target type
__regmap_lockdep_wrapper(__devm_regmap_init_spi, #config, \
^
include/linux/regmap.h:505:3: note: in definition of macro '__regmap_lockdep_wrapper'
fn(__VA_ARGS__, &_key, \
^
drivers/rtc/rtc-pcf8563.c:666:11: note: in expansion of macro 'devm_regmap_init_spi'
regmap = devm_regmap_init_spi(spi, &config);
^
include/linux/regmap.h:470:16: note: expected 'struct spi_device *' but argument is of type 'const struct spi_device *'
struct regmap *__devm_regmap_init_spi(struct spi_device *dev,
^
drivers/rtc/rtc-pcf8563.c:674:12: error: assignment of member 'mode' in read-only object
spi->mode = SPI_MODE_3;
^
drivers/rtc/rtc-pcf8563.c:675:21: error: assignment of member 'bits_per_word' in read-only object
spi->bits_per_word = 8;
^
drivers/rtc/rtc-pcf8563.c:676:2: warning: passing argument 1 of 'spi_setup' discards 'const' qualifier from pointer target type
spi_setup(spi);
^
In file included from drivers/rtc/rtc-pcf8563.c:25:0:
include/linux/spi/spi.h:905:12: note: expected 'struct spi_device *' but argument is of type 'const struct spi_device *'
extern int spi_setup(struct spi_device *spi);
^
drivers/rtc/rtc-pcf8563.c:678:8: warning: passing argument 1 of 'regmap_read' discards 'const' qualifier from pointer target type
res = regmap_read(regmap, PCF8563_REG_SC, &tmp);
^
In file included from drivers/rtc/rtc-pcf8563.c:26:0:
include/linux/regmap.h:758:5: note: expected 'struct regmap *' but argument is of type 'const struct regmap *'
int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val);
^
drivers/rtc/rtc-pcf8563.c:682:8: warning: passing argument 1 of 'regmap_read' discards 'const' qualifier from pointer target type
res = regmap_read(regmap, PCF8563_REG_CLKO, &tmp);
^
In file included from drivers/rtc/rtc-pcf8563.c:26:0:
include/linux/regmap.h:758:5: note: expected 'struct regmap *' but argument is of type 'const struct regmap *'
int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val);
^
drivers/rtc/rtc-pcf8563.c:687:8: warning: passing argument 1 of 'regmap_write' discards 'const' qualifier from pointer target type
res = regmap_write(regmap, PCF8563_REG_CLKO, tmp & 0x1c);
^
In file included from drivers/rtc/rtc-pcf8563.c:26:0:
include/linux/regmap.h:745:5: note: expected 'struct regmap *' but argument is of type 'const struct regmap *'
int regmap_write(struct regmap *map, unsigned int reg, unsigned int val);
^
drivers/rtc/rtc-pcf8563.c:692:8: warning: passing argument 1 of 'regmap_read' discards 'const' qualifier from pointer target type
res = regmap_read(regmap, PCF8563_REG_SR, &tmp);
^
In file included from drivers/rtc/rtc-pcf8563.c:26:0:
include/linux/regmap.h:758:5: note: expected 'struct regmap *' but argument is of type 'const struct regmap *'
int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val);
^
drivers/rtc/rtc-pcf8563.c:697:8: warning: passing argument 1 of 'regmap_write' discards 'const' qualifier from pointer target type
res = regmap_write(regmap, PCF8563_REG_SR, tmp & 0x88);
^
In file included from drivers/rtc/rtc-pcf8563.c:26:0:
include/linux/regmap.h:745:5: note: expected 'struct regmap *' but argument is of type 'const struct regmap *'
int regmap_write(struct regmap *map, unsigned int reg, unsigned int val);
^
drivers/rtc/rtc-pcf8563.c:703:8: warning: passing argument 1 of 'regmap_read' discards 'const' qualifier from pointer target type
res = regmap_read(regmap, PCF8563_REG_CLKO, &tmp);
^
In file included from drivers/rtc/rtc-pcf8563.c:26:0:
include/linux/regmap.h:758:5: note: expected 'struct regmap *' but argument is of type 'const struct regmap *'
int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val);
^
drivers/rtc/rtc-pcf8563.c:709:8: warning: passing argument 1 of 'regmap_read' discards 'const' qualifier from pointer target type
res = regmap_read(regmap, PCF8563_REG_SR, &tmp);
^
In file included from drivers/rtc/rtc-pcf8563.c:26:0:
include/linux/regmap.h:758:5: note: expected 'struct regmap *' but argument is of type 'const struct regmap *'
int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val);
^
drivers/rtc/rtc-pcf8563.c:716:17: warning: passing argument 1 of 'devm_rtc_device_register' discards 'const' qualifier from pointer target type
pcf8563->rtc = devm_rtc_device_register(&spi->dev,
^
In file included from drivers/rtc/rtc-pcf8563.c:20:0:
include/linux/rtc.h:163:27: note: expected 'struct device *' but argument is of type 'const struct device *'
extern struct rtc_device *devm_rtc_device_register(struct device *dev,
^
drivers/rtc/rtc-pcf8563.c:716:15: error: assignment of member 'rtc' in read-only object
pcf8563->rtc = devm_rtc_device_register(&spi->dev,
^
drivers/rtc/rtc-pcf8563.c: At top level:
drivers/rtc/rtc-pcf8563.c:726:1: error: expected expression before 'static'
static struct i2c_driver pcf8563_driver = {
^
drivers/rtc/rtc-pcf8563.c:726:1: warning: excess elements in struct initializer
drivers/rtc/rtc-pcf8563.c:726:1: warning: (near initialization for 'pca21125_driver')
drivers/rtc/rtc-pcf8563.c:652:0: error: unterminated #if
#if IS_ENABLED(CONFIG_SPI_MASTER)
^
drivers/rtc/rtc-pcf8563.c:566:12: warning: 'pcf8563_probe' defined but not used [-Wunused-function]
static int pcf8563_probe(struct i2c_client *client,
^
drivers/rtc/rtc-pcf8563.c:654:12: warning: 'pca21125_probe' defined but not used [-Wunused-function]
static int pca21125_probe(const struct spi_device *spi)
^
vim +667 include/linux/regmap.h
1ed81114 Nicolas Boichat 2015-08-11 651 */
3cfe7a74 Nicolas Boichat 2015-07-08 652 #define devm_regmap_init_i2c(i2c, config) \
3cfe7a74 Nicolas Boichat 2015-07-08 653 __regmap_lockdep_wrapper(__devm_regmap_init_i2c, #config, \
3cfe7a74 Nicolas Boichat 2015-07-08 654 i2c, config)
1ed81114 Nicolas Boichat 2015-08-11 655
1ed81114 Nicolas Boichat 2015-08-11 656 /**
1ed81114 Nicolas Boichat 2015-08-11 657 * devm_regmap_init_spi(): Initialise register map
1ed81114 Nicolas Boichat 2015-08-11 658 *
1ed81114 Nicolas Boichat 2015-08-11 659 * @spi: Device that will be interacted with
1ed81114 Nicolas Boichat 2015-08-11 660 * @config: Configuration for register map
1ed81114 Nicolas Boichat 2015-08-11 661 *
1ed81114 Nicolas Boichat 2015-08-11 662 * The return value will be an ERR_PTR() on error or a valid pointer
1ed81114 Nicolas Boichat 2015-08-11 663 * to a struct regmap. The map will be automatically freed by the
1ed81114 Nicolas Boichat 2015-08-11 664 * device management code.
1ed81114 Nicolas Boichat 2015-08-11 665 */
3cfe7a74 Nicolas Boichat 2015-07-08 666 #define devm_regmap_init_spi(dev, config) \
3cfe7a74 Nicolas Boichat 2015-07-08 @667 __regmap_lockdep_wrapper(__devm_regmap_init_spi, #config, \
3cfe7a74 Nicolas Boichat 2015-07-08 668 dev, config)
1ed81114 Nicolas Boichat 2015-08-11 669
1ed81114 Nicolas Boichat 2015-08-11 670 /**
1ed81114 Nicolas Boichat 2015-08-11 671 * devm_regmap_init_spmi_base(): Create managed regmap for Base register space
1ed81114 Nicolas Boichat 2015-08-11 672 * @sdev: SPMI device that will be interacted with
1ed81114 Nicolas Boichat 2015-08-11 673 * @config: Configuration for register map
1ed81114 Nicolas Boichat 2015-08-11 674 *
1ed81114 Nicolas Boichat 2015-08-11 675 * The return value will be an ERR_PTR() on error or a valid pointer
:::::: The code at line 667 was first introduced by commit
:::::: 3cfe7a74d42b7e3644f8b2b26aa20146d4f90f0f regmap: Use different lockdep class for each regmap init call
:::::: TO: Nicolas Boichat <drinkcat@xxxxxxxxxxxx>
:::::: CC: Mark Brown <broonie@xxxxxxxxxx>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip