All of lore.kernel.org
 help / color / mirror / Atom feed
* [xilinx-xlnx:lkp_test 1/42] drivers/mfd/tps6594-spi.c:101:11: warning: assignment makes integer from pointer without a cast
@ 2023-12-06  2:46 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-06  2:46 UTC (permalink / raw)
  To: Amit Kumar Mahapatra; +Cc: oe-kbuild-all, git, Radhey Shyam Pandey

tree:   https://github.com/Xilinx/linux-xlnx lkp_test
head:   414b0dc753ec961cf8e532b86412522e78a00169
commit: e4a3f0b229639b9aa114e5cbcfeee07c814ee9f9 [1/42] spi: Add multi-cs memories support in SPI core
config: i386-buildonly-randconfig-005-20231201 (https://download.01.org/0day-ci/archive/20231206/202312061012.pMvs4Ica-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231206/202312061012.pMvs4Ica-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312061012.pMvs4Ica-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/mfd/tps6594-spi.c: In function 'tps6594_spi_probe':
>> drivers/mfd/tps6594-spi.c:101:11: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
     tps->reg = spi->chip_select;
              ^


vim +101 drivers/mfd/tps6594-spi.c

325bec7157b385 Julien Panis  2023-05-11   87  
325bec7157b385 Julien Panis  2023-05-11   88  static int tps6594_spi_probe(struct spi_device *spi)
325bec7157b385 Julien Panis  2023-05-11   89  {
325bec7157b385 Julien Panis  2023-05-11   90  	struct device *dev = &spi->dev;
325bec7157b385 Julien Panis  2023-05-11   91  	struct tps6594 *tps;
325bec7157b385 Julien Panis  2023-05-11   92  	const struct of_device_id *match;
325bec7157b385 Julien Panis  2023-05-11   93  
325bec7157b385 Julien Panis  2023-05-11   94  	tps = devm_kzalloc(dev, sizeof(*tps), GFP_KERNEL);
325bec7157b385 Julien Panis  2023-05-11   95  	if (!tps)
325bec7157b385 Julien Panis  2023-05-11   96  		return -ENOMEM;
325bec7157b385 Julien Panis  2023-05-11   97  
325bec7157b385 Julien Panis  2023-05-11   98  	spi_set_drvdata(spi, tps);
325bec7157b385 Julien Panis  2023-05-11   99  
325bec7157b385 Julien Panis  2023-05-11  100  	tps->dev = dev;
325bec7157b385 Julien Panis  2023-05-11 @101  	tps->reg = spi->chip_select;
325bec7157b385 Julien Panis  2023-05-11  102  	tps->irq = spi->irq;
325bec7157b385 Julien Panis  2023-05-11  103  
325bec7157b385 Julien Panis  2023-05-11  104  	tps->regmap = devm_regmap_init(dev, NULL, spi, &tps6594_spi_regmap_config);
325bec7157b385 Julien Panis  2023-05-11  105  	if (IS_ERR(tps->regmap))
325bec7157b385 Julien Panis  2023-05-11  106  		return dev_err_probe(dev, PTR_ERR(tps->regmap), "Failed to init regmap\n");
325bec7157b385 Julien Panis  2023-05-11  107  
325bec7157b385 Julien Panis  2023-05-11  108  	match = of_match_device(tps6594_spi_of_match_table, dev);
325bec7157b385 Julien Panis  2023-05-11  109  	if (!match)
cc5f2eb7ce1190 Dan Carpenter 2023-05-25  110  		return dev_err_probe(dev, -EINVAL, "Failed to find matching chip ID\n");
325bec7157b385 Julien Panis  2023-05-11  111  	tps->chip_id = (unsigned long)match->data;
325bec7157b385 Julien Panis  2023-05-11  112  
325bec7157b385 Julien Panis  2023-05-11  113  	crc8_populate_msb(tps6594_spi_crc_table, TPS6594_CRC8_POLYNOMIAL);
325bec7157b385 Julien Panis  2023-05-11  114  
325bec7157b385 Julien Panis  2023-05-11  115  	return tps6594_device_init(tps, enable_crc);
325bec7157b385 Julien Panis  2023-05-11  116  }
325bec7157b385 Julien Panis  2023-05-11  117  

:::::: The code at line 101 was first introduced by commit
:::::: 325bec7157b3859b45b9471447f5d130ab8a8723 mfd: tps6594: Add driver for TI TPS6594 PMIC

:::::: TO: Julien Panis <jpanis@baylibre.com>
:::::: CC: Lee Jones <lee@kernel.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-06  2:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-06  2:46 [xilinx-xlnx:lkp_test 1/42] drivers/mfd/tps6594-spi.c:101:11: warning: assignment makes integer from pointer without a cast kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.