[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202205150949.b2YQdGYC-lkp@intel.com>
Date: Sun, 15 May 2022 09:13:27 +0800
From: kernel test robot <lkp@...el.com>
To: Max Filippov <jcmvbkbc@...il.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [jcmvbkbc-xtensa:xtensa-5.18-kprobes 44/46]
arch/xtensa/lib/xtensa-isa.c:36:19: warning: function 'set_error' might be a
candidate for 'gnu_printf' format attribute
tree: https://github.com/jcmvbkbc/linux-xtensa xtensa-5.18-kprobes
head: 8d9b04fec534d588aeb00d6003276eebf2eb73e0
commit: 2086c5362a3fd72d711247bfcad13cc94a96c180 [44/46] xtensa: import libisa
config: xtensa-allyesconfig (https://download.01.org/0day-ci/archive/20220515/202205150949.b2YQdGYC-lkp@intel.com/config)
compiler: xtensa-linux-gcc (GCC) 11.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/jcmvbkbc/linux-xtensa/commit/2086c5362a3fd72d711247bfcad13cc94a96c180
git remote add jcmvbkbc-xtensa https://github.com/jcmvbkbc/linux-xtensa
git fetch --no-tags jcmvbkbc-xtensa xtensa-5.18-kprobes
git checkout 2086c5362a3fd72d711247bfcad13cc94a96c180
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=xtensa SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
arch/xtensa/lib/xtensa-isa.c: In function 'set_error':
>> arch/xtensa/lib/xtensa-isa.c:36:19: warning: function 'set_error' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
36 | fmt, args);
| ^~~
vim +36 arch/xtensa/lib/xtensa-isa.c
25
26
27 static void set_error(xtensa_isa isa, int error_code,
28 const char *fmt, ...)
29 {
30 va_list args;
31
32 va_start(args, fmt);
33 isa->xtisa_errno = error_code;
34 vsnprintf(isa->xtisa_error_msg,
35 sizeof(isa->xtisa_error_msg),
> 36 fmt, args);
37 va_end(args);
38 }
39
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists