tree:
https://github.com/jimc/linux.git dyn-drm-trc
head: df426d10840ccdda8ef29b66f8df55a010836a7c
commit: 55bd43faa7bd6fe653d8b401414961a35bcd9151 [16/19] dyndbg: add
write-events-to-tracefs code
config: arc-randconfig-r015-20220213
(
https://download.01.org/0day-ci/archive/20220213/202202132037.RtzRjiQe-lk...)
compiler: arc-elf-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
#
https://github.com/jimc/linux/commit/55bd43faa7bd6fe653d8b401414961a35bcd...
git remote add jimc
https://github.com/jimc/linux.git
git fetch --no-tags jimc dyn-drm-trc
git checkout 55bd43faa7bd6fe653d8b401414961a35bcd9151
# 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=arc SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
lib/dynamic_debug.c: In function 'ddebug_trace':
> lib/dynamic_debug.c:754:9: error: function 'ddebug_trace'
might be a candidate for 'gnu_printf' format attribute
[-Werror=suggest-attribute=format]
754 | len = vscnprintf(buf->buf,
sizeof(buf->buf), fmt, args);
| ^~~
cc1: all warnings being treated as errors
vim +754 lib/dynamic_debug.c
735
736 static void ddebug_trace(const char *fmt, va_list args)
737 {
738 struct ddebug_trace_buf *buf;
739 int bufidx;
740 int len;
741
742 preempt_disable_notrace();
743
744 bufidx = __this_cpu_inc_return(ddebug_trace_reserve) - 1;
745
746 if (WARN_ON_ONCE(bufidx > DYNAMIC_TRACE_NESTING))
747 goto out;
748
749 /* For the same reasons as in __ftrace_trace_stack(). */
750 barrier();
751
752 buf = this_cpu_ptr(ddebug_trace_bufs.bufs) + bufidx;
753
754 len = vscnprintf(buf->buf, sizeof(buf->buf), fmt, args);
755 trace_console(buf->buf, len);
756
757 out:
758 /* As above. */
759 barrier();
760 __this_cpu_dec(ddebug_trace_reserve);
761 preempt_enable_notrace();
762 }
763
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org