From: kernel test robot <lkp@intel.com>
To: Aaron Conole <aconole@redhat.com>
Cc: kbuild-all@lists.01.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>,
Sasha Levin <alexander.levin@microsoft.com>
Subject: [linux-stable-rc:linux-4.4.y 9997/9999] include/asm-generic/bug.h:159:2: error: implicit declaration of function 'no_printk'; did you mean
Date: Sat, 14 Nov 2020 04:39:29 +0800 [thread overview]
Message-ID: <202011140423.kcCngU9r-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 5063 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.4.y
head: 95a3867e897abd7811196123f81a119a75aba863
commit: b60b53d4980f879884740e672d83155980d74445 [9997/9999] printk: help pr_debug and pr_devel to optimize out arguments
config: microblaze-randconfig-r026-20201113 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 7.5.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/stable/linux-stable-rc.git/commit/?id=b60b53d4980f879884740e672d83155980d74445
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.4.y
git checkout b60b53d4980f879884740e672d83155980d74445
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross ARCH=microblaze
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from lib/842/842_decompress.c:23:0:
lib/842/842_debugfs.h: In function 'sw842_debugfs_create':
lib/842/842_debugfs.h:27:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < ARRAY_SIZE(template_count); i++) {
^
lib/842/842_decompress.c: In function 'next_bits':
lib/842/842_decompress.c:115:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (DIV_ROUND_UP(bits, 8) > p->ilen)
^
In file included from arch/microblaze/include/asm/bug.h:1:0,
from include/linux/bug.h:4,
from include/linux/thread_info.h:11,
from include/asm-generic/preempt.h:4,
from arch/microblaze/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from lib/842/842.h:76,
from lib/842/842_decompress.c:22:
lib/842/842_decompress.c: In function '__do_index':
>> include/asm-generic/bug.h:159:2: error: implicit declaration of function 'no_printk'; did you mean 'printk'? [-Werror=implicit-function-declaration]
no_printk(format); \
^
lib/842/842_decompress.c:72:3: note: in expansion of macro 'WARN'
WARN(1, "pr_debug param err invalid size %x\n", s))
^~~~
include/linux/printk.h:114:17: note: in expansion of macro 'beN_to_cpu'
printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:289:2: note: in expansion of macro 'no_printk'
no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~
lib/842/842_decompress.c:205:2: note: in expansion of macro 'pr_debug'
pr_debug("index%x to %lx off %lx adjoff %lx tot %lx data %lx\n",
^~~~~~~~
lib/842/842_decompress.c:71:54: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(s) == 8 ? be64_to_cpu(get_unaligned((__be64 *)d)) : \
^
include/linux/printk.h:114:17: note: in expansion of macro 'beN_to_cpu'
printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:289:2: note: in expansion of macro 'no_printk'
no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~
lib/842/842_decompress.c:205:2: note: in expansion of macro 'pr_debug'
pr_debug("index%x to %lx off %lx adjoff %lx tot %lx data %lx\n",
^~~~~~~~
cc1: some warnings being treated as errors
vim +159 include/asm-generic/bug.h
b607e70ec6a982f Josh Triplett 2014-04-07 155
b607e70ec6a982f Josh Triplett 2014-04-07 156 #ifndef WARN
b607e70ec6a982f Josh Triplett 2014-04-07 157 #define WARN(condition, format...) ({ \
b607e70ec6a982f Josh Triplett 2014-04-07 158 int __ret_warn_on = !!(condition); \
4e50ebde32bed67 Josh Triplett 2014-04-07 @159 no_printk(format); \
b607e70ec6a982f Josh Triplett 2014-04-07 160 unlikely(__ret_warn_on); \
b607e70ec6a982f Josh Triplett 2014-04-07 161 })
b607e70ec6a982f Josh Triplett 2014-04-07 162 #endif
b607e70ec6a982f Josh Triplett 2014-04-07 163
:::::: The code at line 159 was first introduced by commit
:::::: 4e50ebde32bed67a9aec8c239bbd89e5d0b8727b bug: when !CONFIG_BUG, make WARN call no_printk to check format and args
:::::: TO: Josh Triplett <josh@joshtriplett.org>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 12694 bytes --]
reply other threads:[~2020-11-13 20:40 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=202011140423.kcCngU9r-lkp@intel.com \
--to=lkp@intel.com \
--cc=aconole@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=alexander.levin@microsoft.com \
--cc=gregkh@linuxfoundation.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.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 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).