All of lore.kernel.org
 help / color / mirror / Atom feed
* [superna9999:topic/sm8650/deckard-el2 1/1] sound/soc/qcom/lpass-platform.c:641:29: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'dma_addr_t' {aka 'long long unsigned int'}
@ 2026-11-06 22:21 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-11-06 22:21 UTC (permalink / raw)
  To: Neil Armstrong; +Cc: oe-kbuild-all

tree:   https://github.com/superna9999/linux topic/sm8650/deckard-el2
head:   4eb3bf9a5093f47916b0d4fc5fd45c97dd0b2c65
commit: 4eb3bf9a5093f47916b0d4fc5fd45c97dd0b2c65 [1/1] WiP
config: sparc64-randconfig-2000-20261106 (https://download.01.org/0day-ci/archive/20261106/202611062333.wbFHlQ9e-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261106/202611062333.wbFHlQ9e-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/202611062333.wbFHlQ9e-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/device.h:15,
                    from include/linux/dma-mapping.h:5,
                    from sound/soc/qcom/lpass-platform.c:9:
   sound/soc/qcom/lpass-platform.c: In function 'lpass_platform_pcmops_prepare':
>> sound/soc/qcom/lpass-platform.c:641:29: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'dma_addr_t' {aka 'long long unsigned int'} [-Wformat=]
     dev_info(soc_runtime->dev, "dma base %x buff %d per %d\n", runtime->dma_addr, (snd_pcm_lib_buffer_bytes(substream) >> 2) - 1, (snd_pcm_lib_period_bytes(substream) >> 2) - 1);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:110:16: note: in definition of macro 'dev_printk_index_wrap'
      _p_func(dev, fmt, ##__VA_ARGS__);   \
                   ^~~
   include/linux/dev_printk.h:160:51: note: in expansion of macro 'dev_fmt'
     dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
                                                      ^~~~~~~
   sound/soc/qcom/lpass-platform.c:641:2: note: in expansion of macro 'dev_info'
     dev_info(soc_runtime->dev, "dma base %x buff %d per %d\n", runtime->dma_addr, (snd_pcm_lib_buffer_bytes(substream) >> 2) - 1, (snd_pcm_lib_period_bytes(substream) >> 2) - 1);
     ^~~~~~~~
>> sound/soc/qcom/lpass-platform.c:641:29: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
     dev_info(soc_runtime->dev, "dma base %x buff %d per %d\n", runtime->dma_addr, (snd_pcm_lib_buffer_bytes(substream) >> 2) - 1, (snd_pcm_lib_period_bytes(substream) >> 2) - 1);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:110:16: note: in definition of macro 'dev_printk_index_wrap'
      _p_func(dev, fmt, ##__VA_ARGS__);   \
                   ^~~
   include/linux/dev_printk.h:160:51: note: in expansion of macro 'dev_fmt'
     dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
                                                      ^~~~~~~
   sound/soc/qcom/lpass-platform.c:641:2: note: in expansion of macro 'dev_info'
     dev_info(soc_runtime->dev, "dma base %x buff %d per %d\n", runtime->dma_addr, (snd_pcm_lib_buffer_bytes(substream) >> 2) - 1, (snd_pcm_lib_period_bytes(substream) >> 2) - 1);
     ^~~~~~~~
   sound/soc/qcom/lpass-platform.c:641:29: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
     dev_info(soc_runtime->dev, "dma base %x buff %d per %d\n", runtime->dma_addr, (snd_pcm_lib_buffer_bytes(substream) >> 2) - 1, (snd_pcm_lib_period_bytes(substream) >> 2) - 1);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:110:16: note: in definition of macro 'dev_printk_index_wrap'
      _p_func(dev, fmt, ##__VA_ARGS__);   \
                   ^~~
   include/linux/dev_printk.h:160:51: note: in expansion of macro 'dev_fmt'
     dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
                                                      ^~~~~~~
   sound/soc/qcom/lpass-platform.c:641:2: note: in expansion of macro 'dev_info'
     dev_info(soc_runtime->dev, "dma base %x buff %d per %d\n", runtime->dma_addr, (snd_pcm_lib_buffer_bytes(substream) >> 2) - 1, (snd_pcm_lib_period_bytes(substream) >> 2) - 1);
     ^~~~~~~~


vim +641 sound/soc/qcom/lpass-platform.c

   595	
   596	static int lpass_platform_pcmops_prepare(struct snd_soc_component *component,
   597						 struct snd_pcm_substream *substream)
   598	{
   599		struct snd_pcm_runtime *runtime = substream->runtime;
   600		struct snd_soc_pcm_runtime *soc_runtime = snd_soc_substream_to_rtd(substream);
   601		struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(soc_runtime, 0);
   602		struct lpass_data *drvdata = snd_soc_component_get_drvdata(component);
   603		struct snd_pcm_runtime *rt = substream->runtime;
   604		struct lpass_pcm_data *pcm_data = rt->private_data;
   605		const struct lpass_variant *v = drvdata->variant;
   606		struct lpaif_dmactl *dmactl;
   607		struct regmap *map;
   608		int ret, id, ch, dir = substream->stream;
   609		unsigned int dai_id = cpu_dai->driver->id;
   610	
   611		ch = pcm_data->dma_ch;
   612	
   613		dmactl = __lpass_get_dmactl_handle(substream, component);
   614		id = __lpass_get_id(substream, component);
   615		map = __lpass_get_regmap_handle(substream, component);
   616	
   617		ret = regmap_write(map, LPAIF_DMABASE_REG(v, ch, dir, dai_id),
   618					runtime->dma_addr);
   619		if (ret) {
   620			dev_err(soc_runtime->dev, "error writing to rdmabase reg: %d\n",
   621				ret);
   622			return ret;
   623		}
   624	
   625		ret = regmap_write(map, LPAIF_DMABUFF_REG(v, ch, dir, dai_id),
   626				(snd_pcm_lib_buffer_bytes(substream) >> 2) - 1);
   627		if (ret) {
   628			dev_err(soc_runtime->dev, "error writing to rdmabuff reg: %d\n",
   629				ret);
   630			return ret;
   631		}
   632	
   633		ret = regmap_write(map, LPAIF_DMAPER_REG(v, ch, dir, dai_id),
   634				(snd_pcm_lib_period_bytes(substream) >> 2) - 1);
   635		if (ret) {
   636			dev_err(soc_runtime->dev, "error writing to rdmaper reg: %d\n",
   637				ret);
   638			return ret;
   639		}
   640		
 > 641		dev_info(soc_runtime->dev, "dma base %x buff %d per %d\n", runtime->dma_addr, (snd_pcm_lib_buffer_bytes(substream) >> 2) - 1, (snd_pcm_lib_period_bytes(substream) >> 2) - 1);
   642	
   643		if (is_cdc_dma_port(dai_id)) {
   644			ret = regmap_fields_write(dmactl->fifowm, id, LPAIF_DMACTL_FIFOWM_8);
   645			if (ret) {
   646				dev_err(soc_runtime->dev, "error writing fifowm field to dmactl reg: %d, id: %d\n",
   647					ret, id);
   648				return ret;
   649			}
   650		}
   651		ret = regmap_fields_write(dmactl->enable, id, LPAIF_DMACTL_ENABLE_ON);
   652		if (ret) {
   653			dev_err(soc_runtime->dev, "error writing to rdmactl reg: %d\n",
   654				ret);
   655			return ret;
   656		}
   657	
   658		return 0;
   659	}
   660	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [superna9999:topic/sm8650/deckard-el2 1/1] sound/soc/qcom/lpass-platform.c:641:29: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'dma_addr_t' {aka 'long long unsigned int'}
@ 2026-11-07  2:55 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-11-07  2:55 UTC (permalink / raw)
  To: Neil Armstrong; +Cc: oe-kbuild-all

tree:   https://github.com/superna9999/linux topic/sm8650/deckard-el2
head:   4eb3bf9a5093f47916b0d4fc5fd45c97dd0b2c65
commit: 4eb3bf9a5093f47916b0d4fc5fd45c97dd0b2c65 [1/1] WiP
config: arm64-randconfig-1001-20261107 (https://download.01.org/0day-ci/archive/20261107/202611071025.7EFKHpoJ-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261107/202611071025.7EFKHpoJ-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/202611071025.7EFKHpoJ-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/device.h:15,
                    from include/linux/dma-mapping.h:5,
                    from sound/soc/qcom/lpass-platform.c:9:
   sound/soc/qcom/lpass-platform.c: In function 'lpass_platform_pcmops_prepare':
>> sound/soc/qcom/lpass-platform.c:641:29: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'dma_addr_t' {aka 'long long unsigned int'} [-Wformat=]
     dev_info(soc_runtime->dev, "dma base %x buff %d per %d\n", runtime->dma_addr, (snd_pcm_lib_buffer_bytes(substream) >> 2) - 1, (snd_pcm_lib_period_bytes(substream) >> 2) - 1);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:110:16: note: in definition of macro 'dev_printk_index_wrap'
      _p_func(dev, fmt, ##__VA_ARGS__);   \
                   ^~~
   include/linux/dev_printk.h:160:51: note: in expansion of macro 'dev_fmt'
     dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
                                                      ^~~~~~~
   sound/soc/qcom/lpass-platform.c:641:2: note: in expansion of macro 'dev_info'
     dev_info(soc_runtime->dev, "dma base %x buff %d per %d\n", runtime->dma_addr, (snd_pcm_lib_buffer_bytes(substream) >> 2) - 1, (snd_pcm_lib_period_bytes(substream) >> 2) - 1);
     ^~~~~~~~
>> sound/soc/qcom/lpass-platform.c:641:29: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
     dev_info(soc_runtime->dev, "dma base %x buff %d per %d\n", runtime->dma_addr, (snd_pcm_lib_buffer_bytes(substream) >> 2) - 1, (snd_pcm_lib_period_bytes(substream) >> 2) - 1);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:110:16: note: in definition of macro 'dev_printk_index_wrap'
      _p_func(dev, fmt, ##__VA_ARGS__);   \
                   ^~~
   include/linux/dev_printk.h:160:51: note: in expansion of macro 'dev_fmt'
     dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
                                                      ^~~~~~~
   sound/soc/qcom/lpass-platform.c:641:2: note: in expansion of macro 'dev_info'
     dev_info(soc_runtime->dev, "dma base %x buff %d per %d\n", runtime->dma_addr, (snd_pcm_lib_buffer_bytes(substream) >> 2) - 1, (snd_pcm_lib_period_bytes(substream) >> 2) - 1);
     ^~~~~~~~
   sound/soc/qcom/lpass-platform.c:641:29: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
     dev_info(soc_runtime->dev, "dma base %x buff %d per %d\n", runtime->dma_addr, (snd_pcm_lib_buffer_bytes(substream) >> 2) - 1, (snd_pcm_lib_period_bytes(substream) >> 2) - 1);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:110:16: note: in definition of macro 'dev_printk_index_wrap'
      _p_func(dev, fmt, ##__VA_ARGS__);   \
                   ^~~
   include/linux/dev_printk.h:160:51: note: in expansion of macro 'dev_fmt'
     dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
                                                      ^~~~~~~
   sound/soc/qcom/lpass-platform.c:641:2: note: in expansion of macro 'dev_info'
     dev_info(soc_runtime->dev, "dma base %x buff %d per %d\n", runtime->dma_addr, (snd_pcm_lib_buffer_bytes(substream) >> 2) - 1, (snd_pcm_lib_period_bytes(substream) >> 2) - 1);
     ^~~~~~~~


vim +641 sound/soc/qcom/lpass-platform.c

   595	
   596	static int lpass_platform_pcmops_prepare(struct snd_soc_component *component,
   597						 struct snd_pcm_substream *substream)
   598	{
   599		struct snd_pcm_runtime *runtime = substream->runtime;
   600		struct snd_soc_pcm_runtime *soc_runtime = snd_soc_substream_to_rtd(substream);
   601		struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(soc_runtime, 0);
   602		struct lpass_data *drvdata = snd_soc_component_get_drvdata(component);
   603		struct snd_pcm_runtime *rt = substream->runtime;
   604		struct lpass_pcm_data *pcm_data = rt->private_data;
   605		const struct lpass_variant *v = drvdata->variant;
   606		struct lpaif_dmactl *dmactl;
   607		struct regmap *map;
   608		int ret, id, ch, dir = substream->stream;
   609		unsigned int dai_id = cpu_dai->driver->id;
   610	
   611		ch = pcm_data->dma_ch;
   612	
   613		dmactl = __lpass_get_dmactl_handle(substream, component);
   614		id = __lpass_get_id(substream, component);
   615		map = __lpass_get_regmap_handle(substream, component);
   616	
   617		ret = regmap_write(map, LPAIF_DMABASE_REG(v, ch, dir, dai_id),
   618					runtime->dma_addr);
   619		if (ret) {
   620			dev_err(soc_runtime->dev, "error writing to rdmabase reg: %d\n",
   621				ret);
   622			return ret;
   623		}
   624	
   625		ret = regmap_write(map, LPAIF_DMABUFF_REG(v, ch, dir, dai_id),
   626				(snd_pcm_lib_buffer_bytes(substream) >> 2) - 1);
   627		if (ret) {
   628			dev_err(soc_runtime->dev, "error writing to rdmabuff reg: %d\n",
   629				ret);
   630			return ret;
   631		}
   632	
   633		ret = regmap_write(map, LPAIF_DMAPER_REG(v, ch, dir, dai_id),
   634				(snd_pcm_lib_period_bytes(substream) >> 2) - 1);
   635		if (ret) {
   636			dev_err(soc_runtime->dev, "error writing to rdmaper reg: %d\n",
   637				ret);
   638			return ret;
   639		}
   640		
 > 641		dev_info(soc_runtime->dev, "dma base %x buff %d per %d\n", runtime->dma_addr, (snd_pcm_lib_buffer_bytes(substream) >> 2) - 1, (snd_pcm_lib_period_bytes(substream) >> 2) - 1);
   642	
   643		if (is_cdc_dma_port(dai_id)) {
   644			ret = regmap_fields_write(dmactl->fifowm, id, LPAIF_DMACTL_FIFOWM_8);
   645			if (ret) {
   646				dev_err(soc_runtime->dev, "error writing fifowm field to dmactl reg: %d, id: %d\n",
   647					ret, id);
   648				return ret;
   649			}
   650		}
   651		ret = regmap_fields_write(dmactl->enable, id, LPAIF_DMACTL_ENABLE_ON);
   652		if (ret) {
   653			dev_err(soc_runtime->dev, "error writing to rdmactl reg: %d\n",
   654				ret);
   655			return ret;
   656		}
   657	
   658		return 0;
   659	}
   660	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-07  2:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-06 22:21 [superna9999:topic/sm8650/deckard-el2 1/1] sound/soc/qcom/lpass-platform.c:641:29: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'dma_addr_t' {aka 'long long unsigned int'} kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-11-07  2:55 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.