* [rtc-linux] [abelloni:rtc-next 4/23] include/linux/printk.h:379:6: error: implicit declaration of function '__ratelimit'
@ 2016-06-04 23:06 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-06-04 23:06 UTC (permalink / raw)
Cc: kbuild-all, rtc-linux, Alexandre Belloni, Arnd Bergmann
[-- Attachment #1: Type: text/plain, Size: 4810 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git rtc-next
head: 06776c89214a14735fed5519340e2cea88b5b91f
commit: 5ab788d7383289bfc141ab357767bc6c11bbf77f [4/23] rtc: cmos: move mc146818rtc code out of asm-generic/rtc.h
config: x86_64-randconfig-n0-06050611 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
git checkout 5ab788d7383289bfc141ab357767bc6c11bbf77f
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:13:0,
from include/linux/list.h:8,
from include/linux/preempt.h:10,
from include/linux/spinlock.h:50,
from arch/x86/kernel/nmi.c:13:
arch/x86/kernel/nmi.c: In function 'nmi_max_handler':
include/linux/printk.h:375:9: error: type defaults to 'int' in declaration of 'DEFINE_RATELIMIT_STATE' [-Werror=implicit-int]
static DEFINE_RATELIMIT_STATE(_rs, \
^
arch/x86/kernel/nmi.c:110:2: note: in expansion of macro 'printk_ratelimited'
printk_ratelimited(KERN_INFO
^~~~~~~~~~~~~~~~~~
arch/x86/kernel/nmi.c:110:2: warning: parameter names (without types) in function declaration
In file included from include/linux/kernel.h:13:0,
from include/linux/list.h:8,
from include/linux/preempt.h:10,
from include/linux/spinlock.h:50,
from arch/x86/kernel/nmi.c:13:
include/linux/printk.h:375:9: error: invalid storage class for function 'DEFINE_RATELIMIT_STATE'
static DEFINE_RATELIMIT_STATE(_rs, \
^
arch/x86/kernel/nmi.c:110:2: note: in expansion of macro 'printk_ratelimited'
printk_ratelimited(KERN_INFO
^~~~~~~~~~~~~~~~~~
>> include/linux/printk.h:379:6: error: implicit declaration of function '__ratelimit' [-Werror=implicit-function-declaration]
if (__ratelimit(&_rs)) \
^
arch/x86/kernel/nmi.c:110:2: note: in expansion of macro 'printk_ratelimited'
printk_ratelimited(KERN_INFO
^~~~~~~~~~~~~~~~~~
include/linux/printk.h:379:19: error: '_rs' undeclared (first use in this function)
if (__ratelimit(&_rs)) \
^
arch/x86/kernel/nmi.c:110:2: note: in expansion of macro 'printk_ratelimited'
printk_ratelimited(KERN_INFO
^~~~~~~~~~~~~~~~~~
include/linux/printk.h:379:19: note: each undeclared identifier is reported only once for each function it appears in
if (__ratelimit(&_rs)) \
^
arch/x86/kernel/nmi.c:110:2: note: in expansion of macro 'printk_ratelimited'
printk_ratelimited(KERN_INFO
^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/__ratelimit +379 include/linux/printk.h
968ab1838 Linus Torvalds 2010-11-15 369 * ratelimited messages with local ratelimit_state,
968ab1838 Linus Torvalds 2010-11-15 370 * no local ratelimit_state used in the !PRINTK case
968ab1838 Linus Torvalds 2010-11-15 371 */
968ab1838 Linus Torvalds 2010-11-15 372 #ifdef CONFIG_PRINTK
6ec42a56e Joe Perches 2011-01-12 373 #define printk_ratelimited(fmt, ...) \
6ec42a56e Joe Perches 2011-01-12 374 ({ \
968ab1838 Linus Torvalds 2010-11-15 @375 static DEFINE_RATELIMIT_STATE(_rs, \
968ab1838 Linus Torvalds 2010-11-15 376 DEFAULT_RATELIMIT_INTERVAL, \
968ab1838 Linus Torvalds 2010-11-15 377 DEFAULT_RATELIMIT_BURST); \
968ab1838 Linus Torvalds 2010-11-15 378 \
968ab1838 Linus Torvalds 2010-11-15 @379 if (__ratelimit(&_rs)) \
968ab1838 Linus Torvalds 2010-11-15 380 printk(fmt, ##__VA_ARGS__); \
968ab1838 Linus Torvalds 2010-11-15 381 })
968ab1838 Linus Torvalds 2010-11-15 382 #else
:::::: The code at line 379 was first introduced by commit
:::::: 968ab1838a5d48f02f5b471aa1d0e59e2cc2ccbc include/linux/kernel.h: Move logging bits to include/linux/printk.h
:::::: TO: Linus Torvalds <torvalds@linux-foundation.org>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
--
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
---
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 28430 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-06-04 23:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-04 23:06 [rtc-linux] [abelloni:rtc-next 4/23] include/linux/printk.h:379:6: error: implicit declaration of function '__ratelimit' kbuild 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.