From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
x86@kernel.org
Subject: [rtc-linux] Re: [PATCH] x86: include linux/ratelimit.h in nmi.c
Date: Mon, 6 Jun 2016 17:08:49 +0200 [thread overview]
Message-ID: <20160606150849.GC3363@piout.net> (raw)
In-Reply-To: <1465222212-2579966-1-git-send-email-arnd@arndb.de>
On 06/06/2016 at 16:09:52 +0200, Arnd Bergmann wrote :
> When building random configurations, we now occasionally get a new
> build error:
>
> 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
> ^~~~~~~~~~~~~~~~~~
>
> This was working before the rtc rework series because linux/ratelimit.h
> was included implictly through asm/mach_traps.h -> asm/mc146818rtc.h
> -> linux/mc146818rtc.h -> linux/rtc.h -> linux/device.h.
>
> We clearly shouldn't rely on this indirect inclusion, so this adds
> an explicit #include in the file that needs it.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Reported-by: kbuild test robot <fengguang.wu@intel.com>
> Fixes: 5ab788d73832 ("rtc: cmos: move mc146818rtc code out of asm-generic/rtc.h")
> ---
> It's only broken in the linux-rtc git at the moment, so it makes sense
> to fix it there.
>
> arch/x86/kernel/nmi.c | 1 +
> 1 file changed, 1 insertion(+)
>
Applied, thanks.
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
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.
WARNING: multiple messages have this Message-ID (diff)
From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
x86@kernel.org
Subject: Re: [PATCH] x86: include linux/ratelimit.h in nmi.c
Date: Mon, 6 Jun 2016 17:08:49 +0200 [thread overview]
Message-ID: <20160606150849.GC3363@piout.net> (raw)
In-Reply-To: <1465222212-2579966-1-git-send-email-arnd@arndb.de>
On 06/06/2016 at 16:09:52 +0200, Arnd Bergmann wrote :
> When building random configurations, we now occasionally get a new
> build error:
>
> 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
> ^~~~~~~~~~~~~~~~~~
>
> This was working before the rtc rework series because linux/ratelimit.h
> was included implictly through asm/mach_traps.h -> asm/mc146818rtc.h
> -> linux/mc146818rtc.h -> linux/rtc.h -> linux/device.h.
>
> We clearly shouldn't rely on this indirect inclusion, so this adds
> an explicit #include in the file that needs it.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Reported-by: kbuild test robot <fengguang.wu@intel.com>
> Fixes: 5ab788d73832 ("rtc: cmos: move mc146818rtc code out of asm-generic/rtc.h")
> ---
> It's only broken in the linux-rtc git at the moment, so it makes sense
> to fix it there.
>
> arch/x86/kernel/nmi.c | 1 +
> 1 file changed, 1 insertion(+)
>
Applied, thanks.
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-06-06 15:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-06 14:09 [rtc-linux] [PATCH] x86: include linux/ratelimit.h in nmi.c Arnd Bergmann
2016-06-06 14:09 ` Arnd Bergmann
2016-06-06 14:12 ` [rtc-linux] " Thomas Gleixner
2016-06-06 14:12 ` Thomas Gleixner
2016-06-06 15:08 ` Alexandre Belloni [this message]
2016-06-06 15:08 ` Alexandre Belloni
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=20160606150849.GC3363@piout.net \
--to=alexandre.belloni@free-electrons.com \
--cc=arnd@arndb.de \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rtc-linux@googlegroups.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.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.