From: kernel test robot <lkp@intel.com>
To: Li Jun <lijun01@kylinos.cn>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Mark Brown <broonie@kernel.org>
Subject: [broonie-ci:asoc-7.1 10/10] sound/soc/loongson/loongson_dma.c:213:45: warning: format specifies type 'unsigned int' but the argument has type 'u64' (aka 'unsigned long long')
Date: Thu, 11 Jun 2026 03:31:51 +0800 [thread overview]
Message-ID: <202606110332.I6vetCYj-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git asoc-7.1
head: 3f3d5a7a065fc9874f671c5afb9dd214f7671946
commit: 3f3d5a7a065fc9874f671c5afb9dd214f7671946 [10/10] ASoC: loongson: Fix invalid position error in ls_pcm_pointer
config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20260611/202606110332.I6vetCYj-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 7917772d7d61384696c61102c08c2ea158e610fa)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260611/202606110332.I6vetCYj-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/202606110332.I6vetCYj-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> sound/soc/loongson/loongson_dma.c:213:45: warning: format specifies type 'unsigned int' but the argument has type 'u64' (aka 'unsigned long long') [-Wformat]
213 | dev_warn(dev, "WARNING! dma_addr:0x%x\n", addr);
| ~~ ^~~~
| %llx
include/linux/dev_printk.h:156:70: note: expanded from macro 'dev_warn'
156 | dev_printk_index_wrap(_dev_warn, KERN_WARNING, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ~~~ ^~~~~~~~~~~
1 warning generated.
vim +213 sound/soc/loongson/loongson_dma.c
196
197 static snd_pcm_uframes_t
198 loongson_pcm_pointer(struct snd_soc_component *component,
199 struct snd_pcm_substream *substream)
200 {
201 struct snd_pcm_runtime *runtime = substream->runtime;
202 struct device *dev = substream->pcm->card->dev;
203 struct loongson_runtime_data *prtd = runtime->private_data;
204 struct loongson_dma_desc *desc;
205 snd_pcm_uframes_t x;
206 u64 addr;
207
208 desc = dma_desc_save(prtd);
209 addr = ((u64)desc->saddr_hi << 32) | desc->saddr;
210
211 if (addr < runtime->dma_addr ||
212 addr > runtime->dma_addr + runtime->dma_bytes) {
> 213 dev_warn(dev, "WARNING! dma_addr:0x%x\n", addr);
214 x = 0;
215 } else {
216 x = bytes_to_frames(runtime, addr - runtime->dma_addr);
217 if (x == runtime->buffer_size)
218 x = 0;
219 }
220
221 return x;
222 }
223
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-06-10 19:32 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=202606110332.I6vetCYj-lkp@intel.com \
--to=lkp@intel.com \
--cc=broonie@kernel.org \
--cc=lijun01@kylinos.cn \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox