* [linux-next:master 9920/10468] drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_smi_events.c:192:2: warning: function 'kfd_smi_event_add' might be a candidate for 'gnu_printf' format attribute
@ 2022-03-03 17:30 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-03 17:30 UTC (permalink / raw)
To: Philip Yang
Cc: kbuild-all, Linux Memory Management List, Alex Deucher, Felix Kuehling
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 91265a6da44d13296bdb5b3fbafa19d06be462f2
commit: d58b8a99cbb84c1eb3b3613d23c1a328695a9455 [9920/10468] drm/amdkfd: Add SMI add event helper
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220304/202203040158.VxdsrLv2-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=d58b8a99cbb84c1eb3b3613d23c1a328695a9455
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout d58b8a99cbb84c1eb3b3613d23c1a328695a9455
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/
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 >>):
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_smi_events.c: In function 'kfd_smi_event_add':
>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_smi_events.c:192:2: warning: function 'kfd_smi_event_add' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
192 | len += vsnprintf(fifo_in + len, sizeof(fifo_in) - len, fmt, args);
| ^~~
vim +192 drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_smi_events.c
178
179 static void kfd_smi_event_add(struct kfd_dev *dev, unsigned int event,
180 char *fmt, ...)
181 {
182 char fifo_in[KFD_SMI_EVENT_MSG_SIZE];
183 int len;
184 va_list args;
185
186 if (list_empty(&dev->smi_clients))
187 return;
188
189 len = snprintf(fifo_in, sizeof(fifo_in), "%x ", event);
190
191 va_start(args, fmt);
> 192 len += vsnprintf(fifo_in + len, sizeof(fifo_in) - len, fmt, args);
193 va_end(args);
194
195 add_event_to_kfifo(dev, event, fifo_in, len);
196 }
197
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-03 17:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-03 17:30 [linux-next:master 9920/10468] drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_smi_events.c:192:2: warning: function 'kfd_smi_event_add' 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