All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [chrome-os:chromeos-5.10 9860/9999] sound/soc/sof/mediatek/mt8195/mt8195.c:546:22: warning: format specifies type 'unsigned int' but the argument has type 'size_t' (aka 'unsigned long')
Date: Tue, 25 Jan 2022 06:45:52 +0800	[thread overview]
Message-ID: <202201250647.a7ELQZe3-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3536 bytes --]

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head:   26a3cf7b7d542f4ff85e2855ab69140bff097a50
commit: ac3fa3878aca1e098e64cf9b41ee01a4b8365d01 [9860/9999] CHROMIUM: ASoC: SOF: mediatek: Add mt8195 dsp pcm stream callback
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220125/202201250647.a7ELQZe3-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f7b7138a62648f4019c55e4671682af1f851f295)
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
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        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=clang make.cross W=1 O=build_dir ARCH=arm64 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 >>):

>> sound/soc/sof/mediatek/mt8195/mt8195.c:546:22: warning: format specifies type 'unsigned int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
                   substream->stream, mstream->stream.posn_offset);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:123:39: note: expanded from macro 'dev_dbg'
           dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
                                        ~~~     ^~~~~~~~~~~
   include/linux/dynamic_debug.h:162:19: note: expanded from macro 'dynamic_dev_dbg'
                              dev, fmt, ##__VA_ARGS__)
                                   ~~~    ^~~~~~~~~~~
   include/linux/dynamic_debug.h:147:56: note: expanded from macro '_dynamic_func_call'
           __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
                                                                 ^~~~~~~~~~~
   include/linux/dynamic_debug.h:129:15: note: expanded from macro '__dynamic_func_call'
                   func(&id, ##__VA_ARGS__);               \
                               ^~~~~~~~~~~
   1 warning generated.


vim +546 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

                 reply	other threads:[~2022-01-24 22:45 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=202201250647.a7ELQZe3-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 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.