tree:
https://github.com/morimoto/linux sound/2021-05-21-v2
head: 3282dfcad84ebf79cd02d85ba166e43098cc1dea
commit: 4cf60ede229d3bd456f5ad974c9c4807cf6247c7 [101/113] ASoC: rsnd: add debugfs
support
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.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
#
https://github.com/morimoto/linux/commit/4cf60ede229d3bd456f5ad974c9c4807...
git remote add morimoto-linux
https://github.com/morimoto/linux
git fetch --no-tags morimoto-linux sound/2021-05-21-v2
git checkout 4cf60ede229d3bd456f5ad974c9c4807cf6247c7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
sound/soc/sh/rcar/adg.c: In function 'dbg_msg':
> sound/soc/sh/rcar/adg.c:576:2: warning: function
'dbg_msg' might be a candidate for 'gnu_printf' format attribute
[-Wsuggest-attribute=format]
576 | vsnprintf(msg, sizeof(msg), fmt, args);
| ^~~~~~~~~
In file included from include/linux/printk.h:409,
from include/linux/kernel.h:17,
from include/linux/list.h:9,
from include/linux/kobject.h:19,
from include/linux/of.h:17,
from include/linux/clk-provider.h:9,
from sound/soc/sh/rcar/adg.c:7:
include/linux/dynamic_debug.h:91:13: error: initializer element is not constant
91 | .format = (fmt), \
| ^
include/linux/dynamic_debug.h:127:2: note: in expansion of macro
'DEFINE_DYNAMIC_DEBUG_METADATA'
127 | DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:147:2: note: in expansion of macro
'__dynamic_func_call'
147 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:161:2: note: in expansion of macro
'_dynamic_func_call'
161 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:2: note: in expansion of macro
'dynamic_dev_dbg'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
sound/soc/sh/rcar/adg.c:582:3: note: in expansion of macro 'dev_dbg'
582 | dev_dbg(dev, msg);
| ^~~~~~~
include/linux/dynamic_debug.h:91:13: note: (near initialization for
'__UNIQUE_ID_ddebug274.format')
91 | .format = (fmt), \
| ^
include/linux/dynamic_debug.h:127:2: note: in expansion of macro
'DEFINE_DYNAMIC_DEBUG_METADATA'
127 | DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:147:2: note: in expansion of macro
'__dynamic_func_call'
147 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:161:2: note: in expansion of macro
'_dynamic_func_call'
161 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:2: note: in expansion of macro
'dynamic_dev_dbg'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
sound/soc/sh/rcar/adg.c:582:3: note: in expansion of macro 'dev_dbg'
582 | dev_dbg(dev, msg);
| ^~~~~~~
vim +576 sound/soc/sh/rcar/adg.c
567
568 #if defined(DEBUG) || defined(CONFIG_DEBUG_FS)
569 static void dbg_msg(struct device *dev, struct seq_file *m,
570 const char *fmt, ...)
571 {
572 char msg[128];
573 va_list args;
574
575 va_start(args, fmt);
576 vsnprintf(msg, sizeof(msg), fmt, args);
577 va_end(args);
578
579 if (m)
580 seq_printf(m, msg);
581 else
582 dev_dbg(dev, msg);
583 }
584
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org