linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 11897/12662] sound/pci/hda/tas2781_hda_i2c.c:433:30: sparse: sparse: incorrect type in assignment (different base types)
@ 2024-01-07 14:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-07 14:11 UTC (permalink / raw)
  To: Gergo Koteles; +Cc: oe-kbuild-all, Linux Memory Management List, Takashi Iwai

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   e2425464bc87159274879ab30f9d4fe624b9fcd2
commit: c3ca4458cc2f719b1652abaa8d2fbf7f3d4311cb [11897/12662] ALSA: hda/tas2781: add TAS2563 support for 14ARB7
config: x86_64-randconfig-122-20240107 (https://download.01.org/0day-ci/archive/20240107/202401072137.Oc7pQgRW-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/20240107/202401072137.Oc7pQgRW-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/202401072137.Oc7pQgRW-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> sound/pci/hda/tas2781_hda_i2c.c:433:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int data @@     got restricted __be32 [usertype] @@
   sound/pci/hda/tas2781_hda_i2c.c:433:30: sparse:     expected unsigned int data
   sound/pci/hda/tas2781_hda_i2c.c:433:30: sparse:     got restricted __be32 [usertype]

vim +433 sound/pci/hda/tas2781_hda_i2c.c

   424	
   425	static void tas2563_apply_calib(struct tasdevice_priv *tas_priv)
   426	{
   427		unsigned int data;
   428		int offset = 0;
   429		int ret;
   430	
   431		for (int i = 0; i < tas_priv->ndev; i++) {
   432			for (int j = 0; j < TAS2563_CAL_N; ++j) {
 > 433				data = cpu_to_be32(
   434					*(uint32_t *)&tas_priv->cali_data.data[offset]);
   435				ret = tasdevice_dev_bulk_write(tas_priv, i, cal_regs[j],
   436					(unsigned char *)&data, TAS2563_CAL_DATA_SIZE);
   437				if (ret)
   438					dev_err(tas_priv->dev,
   439						"Error writing calib regs\n");
   440				offset += TAS2563_CAL_DATA_SIZE;
   441			}
   442		}
   443	}
   444	

-- 
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:[~2024-01-07 14:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-07 14:11 [linux-next:master 11897/12662] sound/pci/hda/tas2781_hda_i2c.c:433:30: sparse: sparse: incorrect type in assignment (different base types) kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox