linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [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
@ 2022-05-15  1:13 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-05-15  1:13 UTC (permalink / raw)
  To: Max Filippov; +Cc: kbuild-all, linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-15  1:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-15  1:13 [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 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).