From: kernel test robot <lkp@intel.com>
To: Max Filippov <jcmvbkbc@gmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.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
Date: Sun, 15 May 2022 09:13:27 +0800 [thread overview]
Message-ID: <202205150949.b2YQdGYC-lkp@intel.com> (raw)
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@intel.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
reply other threads:[~2022-05-15 1:18 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=202205150949.b2YQdGYC-lkp@intel.com \
--to=lkp@intel.com \
--cc=jcmvbkbc@gmail.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.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.