* kernel/trace/trace_hwlat.c:479:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
@ 2021-08-05 8:37 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-05 8:37 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 2889 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Daniel Bristot de Oliveira <bristot@redhat.com>
CC: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 251a1524293d0a90c4d5060f65f42a3016280049
commit: f46b16520a087e892a189db9c23ccf7e9bb5fa69 trace/hwlat: Implement the per-cpu mode
date: 6 weeks ago
:::::: branch date: 13 hours ago
:::::: commit date: 6 weeks ago
compiler: mips64-linux-gcc (GCC) 10.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cppcheck warnings: (new ones prefixed by >>)
>> kernel/trace/trace_hwlat.c:479:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
snprintf(comm, 24, "hwlatd/%d", cpu);
^
vim +479 kernel/trace/trace_hwlat.c
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 470
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 471 /*
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 472 * start_cpu_kthread - Start a hwlat cpu kthread
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 473 */
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 474 static int start_cpu_kthread(unsigned int cpu)
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 475 {
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 476 struct task_struct *kthread;
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 477 char comm[24];
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 478
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 @479 snprintf(comm, 24, "hwlatd/%d", cpu);
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 480
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 481 kthread = kthread_create_on_cpu(kthread_fn, NULL, cpu, comm);
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 482 if (IS_ERR(kthread)) {
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 483 pr_err(BANNER "could not start sampling thread\n");
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 484 return -ENOMEM;
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 485 }
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 486
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 487 per_cpu(hwlat_per_cpu_data, cpu).kthread = kthread;
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 488 wake_up_process(kthread);
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 489
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 490 return 0;
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 491 }
f46b16520a087e Daniel Bristot de Oliveira 2021-06-22 492
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-05 8:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-05 8:37 kernel/trace/trace_hwlat.c:479:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] kernel test robot
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.