From mboxrd@z Thu Jan 1 00:00:00 1970 From: "=?ISO-8859-1?Q?Fr=E9d=E9ric_Weisbecker?=" Subject: Re: linux-next: kernel/trace/trace.c:658: error: Date: Thu, 23 Oct 2008 17:33:26 +0200 Message-ID: References: <20081023213637.eff9b414.sfr@canb.auug.org.au> <20081023121145.GB27984@x200.localdomain> <49008D12.5090204@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-gx0-f16.google.com ([209.85.217.16]:53516 "EHLO mail-gx0-f16.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752738AbYJWPdd convert rfc822-to-8bit (ORCPT ); Thu, 23 Oct 2008 11:33:33 -0400 Received: by gxk9 with SMTP id 9so4270gxk.13 for ; Thu, 23 Oct 2008 08:33:29 -0700 (PDT) In-Reply-To: Content-Disposition: inline Sender: linux-next-owner@vger.kernel.org List-ID: To: Geert Uytterhoeven Cc: Alexey Dobriyan , Stephen Rothwell , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Ingo Molnar 2008/10/23 Geert Uytterhoeven : > On Thu, 23 Oct 2008, Fr=E9d=E9ric Weisbecker wrote: >> 2008/10/23 Geert Uytterhoeven : >> > If kernel/trace/trace.c calls irqs_disabled_flags(), it should inc= lude >> > the include that defines irqs_disabled_flags(). You should not add= it to >> > some other random include. >> > >> > It's also happening on m68k: >> > http://kisskb.ellerman.id.au/kisskb/buildresult/50641/ >> >> The fact is that other archs include this header into their >> asm/system.h. It seems that's because >> they need some non-traced irq_save/restore . >> I wanted to stay in the same approach because future use of >> raw_local_irq could be used elsewhere >> and seem to work perfectly whithout adding special headers on most >> arch. But there will be some >> bug report for each future use of these functions for alpha.... (and >> even m68k as it seems). >> >> What do you think? Should I let this patch as is or send a new one >> (and one other for m68k). > > kernel/trace/trace.c needs to include at least , as > that's where irqs_disabled_flags() is defined. > > If there are still other issues with the raw_local_irq(), IMHO they s= hould be > fixed separately. > > Hmm, what's this doing in : > | #ifdef CONFIG_TRACE_IRQFLAGS_SUPPORT > | ... > | #endif /* CONFIG_X86 */ > ^^^^^^^^^^ > Ok, I will send a patch to correct in this way. Thanks.