* [chrome-os:chromeos-5.10 9952/9999] sound/soc/sof/mediatek/mt8195/mt8195.c:545:28: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'size_t' {aka 'long unsigned int'}
@ 2022-01-20 4:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-20 4:59 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4410 bytes --]
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: 07b8fbc674e48cc26b616d7f880d427dc37e3a7b
commit: ac3fa3878aca1e098e64cf9b41ee01a4b8365d01 [9952/9999] CHROMIUM: ASoC: SOF: mediatek: Add mt8195 dsp pcm stream callback
config: ia64-allyesconfig (https://download.01.org/0day-ci/archive/20220120/202201201218.rnPrULXO-lkp(a)intel.com/config)
compiler: ia64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout ac3fa3878aca1e098e64cf9b41ee01a4b8365d01
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash sound/soc/sof/mediatek/mt8195/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/printk.h:409,
from include/linux/kernel.h:16,
from include/linux/delay.h:22,
from sound/soc/sof/mediatek/mt8195/mt8195.c:12:
sound/soc/sof/mediatek/mt8195/mt8195.c: In function 'mt8195_ipc_pcm_params':
>> sound/soc/sof/mediatek/mt8195/mt8195.c:545:28: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
545 | dev_dbg(sdev->dev, "pcm: stream dir %d, posn mailbox offset is 0x%x",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:129:29: note: in definition of macro '__dynamic_func_call'
129 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:161:9: note: in expansion of macro '_dynamic_func_call'
161 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:9: note: in expansion of macro 'dynamic_dev_dbg'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:30: note: in expansion of macro 'dev_fmt'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
sound/soc/sof/mediatek/mt8195/mt8195.c:545:9: note: in expansion of macro 'dev_dbg'
545 | dev_dbg(sdev->dev, "pcm: stream dir %d, posn mailbox offset is 0x%x",
| ^~~~~~~
sound/soc/sof/mediatek/mt8195/mt8195.c:545:75: note: format string is defined here
545 | dev_dbg(sdev->dev, "pcm: stream dir %d, posn mailbox offset is 0x%x",
| ~^
| |
| unsigned int
| %lx
vim +545 sound/soc/sof/mediatek/mt8195/mt8195.c
530
531 static int mt8195_ipc_pcm_params(struct snd_sof_dev *sdev,
532 struct snd_pcm_substream *substream,
533 const struct sof_ipc_pcm_params_reply *reply)
534 {
535 struct sof_mtk_adsp_stream *mstream = substream->runtime->private_data;
536 size_t posn_offset = reply->posn_offset;
537
538 /* check for unaligned offset or overflow */
539 if (posn_offset > sdev->stream_box.size ||
540 posn_offset % sizeof(struct sof_ipc_stream_posn) != 0)
541 return -EINVAL;
542
543 mstream->stream.posn_offset = sdev->stream_box.offset + posn_offset;
544
> 545 dev_dbg(sdev->dev, "pcm: stream dir %d, posn mailbox offset is 0x%x",
546 substream->stream, mstream->stream.posn_offset);
547
548 return 0;
549 }
550
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-20 4:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-20 4:59 [chrome-os:chromeos-5.10 9952/9999] sound/soc/sof/mediatek/mt8195/mt8195.c:545:28: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'size_t' {aka 'long unsigned int'} 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.