From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751901AbcFFPIw (ORCPT ); Mon, 6 Jun 2016 11:08:52 -0400 Received: from down.free-electrons.com ([37.187.137.238]:56720 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751759AbcFFPIu (ORCPT ); Mon, 6 Jun 2016 11:08:50 -0400 Date: Mon, 6 Jun 2016 17:08:49 +0200 From: Alexandre Belloni To: Arnd Bergmann Cc: linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org Subject: Re: [PATCH] x86: include linux/ratelimit.h in nmi.c Message-ID: <20160606150849.GC3363@piout.net> References: <1465222212-2579966-1-git-send-email-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1465222212-2579966-1-git-send-email-arnd@arndb.de> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Reported-by: kbuild test robot > 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