All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
Cc: oe-kbuild-all@lists.linux.dev, git@amd.com,
	Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Subject: [xilinx-xlnx:lkp_test 1/42] drivers/mfd/tps6594-spi.c:101:11: warning: assignment makes integer from pointer without a cast
Date: Wed, 6 Dec 2023 10:46:23 +0800	[thread overview]
Message-ID: <202312061012.pMvs4Ica-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-12-06  2:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202312061012.pMvs4Ica-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=amit.kumar-mahapatra@amd.com \
    --cc=git@amd.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=radhey.shyam.pandey@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.