All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 3052/4234] sound/soc/qcom/qdsp6/topology.c:317:30: sparse: sparse: restricted __le32 degrades to integer
@ 2025-08-22 23:27 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-22 23:27 UTC (permalink / raw)
  To: Srinivas Kandagatla; +Cc: oe-kbuild-all, Mark Brown, Krzysztof Kozlowski

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   0f4c93f7eb861acab537dbe94441817a270537bf
commit: c7ed4c2debfd192f6071f4ab33c092d419abb941 [3052/4234] ASoC: qcom: audioreach: add support for static calibration
config: csky-randconfig-r121-20250822 (https://download.01.org/0day-ci/archive/20250823/202508230741.heXmHeDC-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 15.1.0
reproduce: (https://download.01.org/0day-ci/archive/20250823/202508230741.heXmHeDC-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/202508230741.heXmHeDC-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> sound/soc/qcom/qdsp6/topology.c:317:30: sparse: sparse: restricted __le32 degrades to integer

vim +317 sound/soc/qcom/qdsp6/topology.c

   307	
   308	static struct audioreach_module_priv_data *audioreach_get_module_priv_data(
   309			struct snd_soc_tplg_private *private)
   310	{
   311		int sz;
   312	
   313		for (sz = 0; sz < le32_to_cpu(private->size); ) {
   314			struct snd_soc_tplg_vendor_array *mod_array;
   315	
   316			mod_array = (struct snd_soc_tplg_vendor_array *)((u8 *)private->array + sz);
 > 317			if (mod_array->type == SND_SOC_AR_TPLG_MODULE_CFG_TYPE) {
   318				struct audioreach_module_priv_data *pdata;
   319	
   320				pdata = kzalloc(struct_size(pdata, data, le32_to_cpu(mod_array->size)),
   321					       GFP_KERNEL);
   322				if (!pdata)
   323					return ERR_PTR(-ENOMEM);
   324	
   325				memcpy(pdata, ((u8 *)private->data + sz), struct_size(pdata, data,
   326							le32_to_cpu(mod_array->size)));
   327				return pdata;
   328			}
   329	
   330			sz = sz + le32_to_cpu(mod_array->size);
   331		}
   332	
   333		return NULL;
   334	}
   335	

-- 
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:[~2025-08-22 23:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-22 23:27 [linux-next:master 3052/4234] sound/soc/qcom/qdsp6/topology.c:317:30: sparse: sparse: restricted __le32 degrades to integer 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.