lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202512190032.hnwn9mCV-lkp@intel.com>
Date: Fri, 19 Dec 2025 00:13:10 +0800
From: kernel test robot <lkp@...el.com>
To: Cezary Rojewski <cezary.rojewski@...el.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
	Mark Brown <broonie@...nel.org>
Subject: sound/soc/intel/avs/probes.c:147:58: sparse: sparse: incorrect type
 in argument 1 (different base types)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   ea1013c1539270e372fc99854bc6e4d94eaeff66
commit: 64007ad3e2a0e0a0ded8b2c6a72c0bb7883d3a33 ASoC: Intel: avs: Use snd_codec format when initializing probe
date:   8 weeks ago
config: arc-randconfig-r122-20251218 (https://download.01.org/0day-ci/archive/20251219/202512190032.hnwn9mCV-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251219/202512190032.hnwn9mCV-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512190032.hnwn9mCV-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> sound/soc/intel/avs/probes.c:147:58: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted snd_pcm_format_t [usertype] format @@     got unsigned int [usertype] format @@
   sound/soc/intel/avs/probes.c:147:58: sparse:     expected restricted snd_pcm_format_t [usertype] format
   sound/soc/intel/avs/probes.c:147:58: sparse:     got unsigned int [usertype] format

vim +147 sound/soc/intel/avs/probes.c

   128	
   129	static int avs_probe_compr_set_params(struct snd_compr_stream *cstream,
   130					      struct snd_compr_params *params, struct snd_soc_dai *dai)
   131	{
   132		struct hdac_ext_stream *host_stream = avs_compr_get_host_stream(cstream);
   133		struct snd_compr_runtime *rtd = cstream->runtime;
   134		struct avs_dev *adev = to_avs_dev(dai->dev);
   135		unsigned int format_val;
   136		int bps, ret;
   137	
   138		hdac_stream(host_stream)->bufsize = 0;
   139		hdac_stream(host_stream)->period_bytes = 0;
   140		hdac_stream(host_stream)->format_val = 0;
   141		cstream->dma_buffer.dev.type = SNDRV_DMA_TYPE_DEV_SG;
   142		cstream->dma_buffer.dev.dev = adev->dev;
   143	
   144		ret = snd_compr_malloc_pages(cstream, rtd->buffer_size);
   145		if (ret < 0)
   146			return ret;
 > 147		bps = snd_pcm_format_physical_width(params->codec.format);
   148		if (bps < 0)
   149			return bps;
   150		format_val = snd_hdac_stream_format(params->codec.ch_out, bps, params->codec.sample_rate);
   151		ret = snd_hdac_stream_set_params(hdac_stream(host_stream), format_val);
   152		if (ret < 0)
   153			return ret;
   154		ret = snd_hdac_stream_setup(hdac_stream(host_stream), false);
   155		if (ret < 0)
   156			return ret;
   157	
   158		hdac_stream(host_stream)->prepared = 1;
   159	
   160		if (!adev->num_probe_streams) {
   161			union avs_connector_node_id node_id;
   162	
   163			/* D0ix not allowed during probing. */
   164			ret = avs_dsp_disable_d0ix(adev);
   165			if (ret)
   166				return ret;
   167	
   168			node_id.vindex = hdac_stream(host_stream)->stream_tag - 1;
   169			node_id.dma_type = AVS_DMA_HDA_HOST_INPUT;
   170	
   171			ret = avs_dsp_init_probe(adev, params, bps, node_id, rtd->dma_bytes);
   172			if (ret < 0) {
   173				dev_err(dai->dev, "probe init failed: %d\n", ret);
   174				avs_dsp_enable_d0ix(adev);
   175				return ret;
   176			}
   177		}
   178	
   179		adev->num_probe_streams++;
   180		return 0;
   181	}
   182	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ