[alsa-devel] [asoc:for-next 37/43] sound/soc/codecs/wm_adsp.c:45:22: warning: format '%zu' expects argument of type 'size_t', but argument 8 has type 'int'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next head: 8bc144f90b6c813b2888f34842eba6a06a588429 commit: a5dcb24d70ffbb4ea47b8eefad1158d033b9dec9 [37/43] ASoC: wm_adsp: Factor out parsing of firmware ID header config: sparc64-allmodconfig (attached as .config) compiler: sparc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout a5dcb24d70ffbb4ea47b8eefad1158d033b9dec9 # save the attached .config to linux build tree GCC_VERSION=7.2.0 make.cross ARCH=sparc64
All warnings (new ones prefixed by >>):
In file included from include/linux/pm_runtime.h:12:0, from sound/soc/codecs/wm_adsp.c:21: sound/soc/codecs/wm_adsp.c: In function 'wmfw_parse_id_header':
sound/soc/codecs/wm_adsp.c:45:22: warning: format '%zu' expects argument of type 'size_t', but argument 8 has type 'int' [-Wformat=]
dev_info(_dsp->dev, "%s: " fmt, _dsp->name, ##__VA_ARGS__) ^ include/linux/device.h:1402:22: note: in definition of macro 'dev_fmt' #define dev_fmt(fmt) fmt ^~~
sound/soc/codecs/wm_adsp.c:45:2: note: in expansion of macro 'dev_info'
dev_info(_dsp->dev, "%s: " fmt, _dsp->name, ##__VA_ARGS__) ^~~~~~~~
sound/soc/codecs/wm_adsp.c:1991:2: note: in expansion of macro 'adsp_info'
adsp_info(dsp, "Firmware: %x v%d.%d.%d, %zu algorithms\n", ^~~~~~~~~ sound/soc/codecs/wm_adsp.c:1991:44: note: format string is defined here adsp_info(dsp, "Firmware: %x v%d.%d.%d, %zu algorithms\n", ~~^ %u
vim +45 sound/soc/codecs/wm_adsp.c
2159ad936 Mark Brown 2012-10-11 @21 #include <linux/pm_runtime.h> 2159ad936 Mark Brown 2012-10-11 22 #include <linux/regmap.h> 973838a03 Mark Brown 2012-11-28 23 #include <linux/regulator/consumer.h> 2159ad936 Mark Brown 2012-10-11 24 #include <linux/slab.h> cdcd7f728 Charles Keepax 2014-11-14 25 #include <linux/vmalloc.h> 6ab2b7b41 Dimitris Papastamos 2013-05-08 26 #include <linux/workqueue.h> f9f55e31f Richard Fitzgerald 2015-06-11 27 #include <linux/debugfs.h> 2159ad936 Mark Brown 2012-10-11 28 #include <sound/core.h> 2159ad936 Mark Brown 2012-10-11 29 #include <sound/pcm.h> 2159ad936 Mark Brown 2012-10-11 30 #include <sound/pcm_params.h> 2159ad936 Mark Brown 2012-10-11 31 #include <sound/soc.h> 2159ad936 Mark Brown 2012-10-11 32 #include <sound/jack.h> 2159ad936 Mark Brown 2012-10-11 33 #include <sound/initval.h> 2159ad936 Mark Brown 2012-10-11 34 #include <sound/tlv.h> 2159ad936 Mark Brown 2012-10-11 35 2159ad936 Mark Brown 2012-10-11 36 #include "wm_adsp.h" 2159ad936 Mark Brown 2012-10-11 37 2159ad936 Mark Brown 2012-10-11 38 #define adsp_crit(_dsp, fmt, ...) \ 605391d0f Richard Fitzgerald 2018-08-08 39 dev_crit(_dsp->dev, "%s: " fmt, _dsp->name, ##__VA_ARGS__) 2159ad936 Mark Brown 2012-10-11 40 #define adsp_err(_dsp, fmt, ...) \ 605391d0f Richard Fitzgerald 2018-08-08 41 dev_err(_dsp->dev, "%s: " fmt, _dsp->name, ##__VA_ARGS__) 2159ad936 Mark Brown 2012-10-11 42 #define adsp_warn(_dsp, fmt, ...) \ 605391d0f Richard Fitzgerald 2018-08-08 43 dev_warn(_dsp->dev, "%s: " fmt, _dsp->name, ##__VA_ARGS__) 2159ad936 Mark Brown 2012-10-11 44 #define adsp_info(_dsp, fmt, ...) \ 605391d0f Richard Fitzgerald 2018-08-08 @45 dev_info(_dsp->dev, "%s: " fmt, _dsp->name, ##__VA_ARGS__) 2159ad936 Mark Brown 2012-10-11 46 #define adsp_dbg(_dsp, fmt, ...) \ 605391d0f Richard Fitzgerald 2018-08-08 47 dev_dbg(_dsp->dev, "%s: " fmt, _dsp->name, ##__VA_ARGS__) 2159ad936 Mark Brown 2012-10-11 48
:::::: The code at line 45 was first introduced by commit :::::: 605391d0f4bfdff2f2c6c5477ce0ccf776d8d5c0 ASoC: wm_adsp: Make DSP name configurable by codec driver
:::::: TO: Richard Fitzgerald rf@opensource.cirrus.com :::::: CC: Mark Brown broonie@kernel.org
--- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
participants (1)
-
kbuild test robot