From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: 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]
Date: Thu, 05 Aug 2021 16:37:33 +0800 [thread overview]
Message-ID: <202108051624.KCBSPfgI-lkp@intel.com> (raw)
[-- 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
reply other threads:[~2021-08-05 8:37 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=202108051624.KCBSPfgI-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.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.