Linux RTC
 help / color / mirror / Atom feed
* [rtc-linux] [abelloni:rtc-testing 2/17] include/linux/printk.h:375:9: error: type defaults to 'int' in declaration of 'DEFINE_RATELIMIT_STATE'
@ 2016-05-30  1:06 kbuild test robot
  2016-05-30 13:30 ` [rtc-linux] " Arnd Bergmann
  0 siblings, 1 reply; 3+ messages in thread
From: kbuild test robot @ 2016-05-30  1:06 UTC (permalink / raw)
  Cc: kbuild-all, rtc-linux, Alexandre Belloni, Arnd Bergmann

[-- Attachment #1: Type: text/plain, Size: 4911 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git rtc-testing
head:   1a4cab5badddc8b5e0c5bf7eaaddcb6296c8d926
commit: a3829b4602bb384f1d6c3b427c5b53c5b23c5ca0 [2/17] rtc: cmos: move mc146818rtc code out of asm-generic/rtc.h
config: i386-alldefconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout a3829b4602bb384f1d6c3b427c5b53c5b23c5ca0
        # save the attached .config to linux build tree
        make ARCH=i386 

Note: the abelloni/rtc-testing HEAD 1a4cab5badddc8b5e0c5bf7eaaddcb6296c8d926 builds fine.
      It only hurts bisectibility.

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 +375 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 375 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: 9950 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-05-30 13:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-30  1:06 [rtc-linux] [abelloni:rtc-testing 2/17] include/linux/printk.h:375:9: error: type defaults to 'int' in declaration of 'DEFINE_RATELIMIT_STATE' kbuild test robot
2016-05-30 13:30 ` [rtc-linux] " Arnd Bergmann
2016-05-30 13:42   ` Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox