From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-rt-devel:linux-5.4.y-rt 45/325] kernel/printk/printk.c:1982:5: warning: no previous prototype for 'vprintk_default'
Date: Sat, 09 Jan 2021 04:51:56 +0800 [thread overview]
Message-ID: <202101090442.evmZnPSM-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4316 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.4.y-rt
head: 5fbf1e70f11dba64cc05c9d85120a3aa7c67a4a2
commit: 35a550e0af7946f894d89a6e6f2d0991f71547e6 [45/325] printk: remove unused code
config: h8300-randconfig-r023-20210108 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.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://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/commit/?id=35a550e0af7946f894d89a6e6f2d0991f71547e6
git remote add linux-rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
git fetch --no-tags linux-rt-devel linux-5.4.y-rt
git checkout 35a550e0af7946f894d89a6e6f2d0991f71547e6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300
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 >>):
>> kernel/printk/printk.c:1982:5: warning: no previous prototype for 'vprintk_default' [-Wmissing-prototypes]
1982 | int vprintk_default(const char *fmt, va_list args)
| ^~~~~~~~~~~~~~~
kernel/printk/printk.c: In function 'vprintk_default':
>> kernel/printk/printk.c:1993:2: warning: function 'vprintk_default' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
1993 | r = vprintk_emit(0, LOGLEVEL_DEFAULT, NULL, 0, fmt, args);
| ^
kernel/printk/printk.c: In function 'vprintk_deferred':
>> kernel/printk/printk.c:2747:2: warning: function 'vprintk_deferred' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
2747 | return vprintk_emit(0, LOGLEVEL_SCHED, NULL, 0, fmt, args);
| ^~~~~~
vim +/vprintk_default +1982 kernel/printk/printk.c
^1da177e4c3f415 kernel/printk.c Linus Torvalds 2005-04-16 1981
a0cba2179ea4c18 kernel/printk/printk.c Linus Torvalds 2016-08-09 @1982 int vprintk_default(const char *fmt, va_list args)
afdc34a3d3b823a kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1983) {
afdc34a3d3b823a kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1984) int r;
afdc34a3d3b823a kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1985)
afdc34a3d3b823a kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1986) #ifdef CONFIG_KGDB_KDB
34aaff40b42148b kernel/printk/printk.c Petr Mladek 2016-12-14 1987 /* Allow to pass printk() to kdb but avoid a recursion. */
34aaff40b42148b kernel/printk/printk.c Petr Mladek 2016-12-14 1988 if (unlikely(kdb_trap_printk && kdb_printf_cpu < 0)) {
f7d4ca8bbfda23b kernel/printk/printk.c Daniel Thompson 2014-11-07 1989 r = vkdb_printf(KDB_MSGSRC_PRINTK, fmt, args);
afdc34a3d3b823a kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1990) return r;
afdc34a3d3b823a kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1991) }
afdc34a3d3b823a kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1992) #endif
a0cba2179ea4c18 kernel/printk/printk.c Linus Torvalds 2016-08-09 @1993 r = vprintk_emit(0, LOGLEVEL_DEFAULT, NULL, 0, fmt, args);
afdc34a3d3b823a kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1994)
afdc34a3d3b823a kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1995) return r;
afdc34a3d3b823a kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1996) }
afdc34a3d3b823a kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1997) EXPORT_SYMBOL_GPL(vprintk_default);
afdc34a3d3b823a kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1998)
:::::: The code@line 1982 was first introduced by commit
:::::: a0cba2179ea4c1820fce2ee046b6ed90ecc56196 Revert "printk: create pr_<level> functions"
:::::: TO: Linus Torvalds <torvalds@linux-foundation.org>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29708 bytes --]
reply other threads:[~2021-01-08 20:51 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=202101090442.evmZnPSM-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@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.