All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -ak] Fix missing include
@ 2007-05-21 20:03 Thomas Gleixner
  2007-05-22  6:20 ` Andi Kleen
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Gleixner @ 2007-05-21 20:03 UTC (permalink / raw)
  To: Andi Kleen; +Cc: LKML

ftp://firstfloor.org/pub/ak/x86_64/quilt/x86_64-2.6.22-rc2-070521-1.bz2

explodes in various places due to missing defines of __cold. We can't
rely on the assumption that linux/compiler.h is included magically
before bug.h is included. Include it explicitely.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

Index: linux-2.6.22-rc2-ak/include/asm-i386/bug.h
===================================================================
--- linux-2.6.22-rc2-ak.orig/include/asm-i386/bug.h
+++ linux-2.6.22-rc2-ak/include/asm-i386/bug.h
@@ -8,6 +8,9 @@
  */
 
 #ifdef CONFIG_BUG
+
+#include <linux/compiler.h>
+
 #define HAVE_ARCH_BUG
 
 #ifdef CONFIG_DEBUG_BUGVERBOSE
Index: linux-2.6.22-rc2-ak/include/asm-x86_64/bug.h
===================================================================
--- linux-2.6.22-rc2-ak.orig/include/asm-x86_64/bug.h
+++ linux-2.6.22-rc2-ak/include/asm-x86_64/bug.h
@@ -2,6 +2,9 @@
 #define __ASM_X8664_BUG_H 1
 
 #ifdef CONFIG_BUG
+
+#include <linux/compiler.h>
+
 #define HAVE_ARCH_BUG
 
 #ifdef CONFIG_DEBUG_BUGVERBOSE







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

* Re: [PATCH -ak] Fix missing include
  2007-05-21 20:03 [PATCH -ak] Fix missing include Thomas Gleixner
@ 2007-05-22  6:20 ` Andi Kleen
  2007-05-22  7:28   ` Thomas Gleixner
  0 siblings, 1 reply; 4+ messages in thread
From: Andi Kleen @ 2007-05-22  6:20 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: LKML

On Monday 21 May 2007 22:03, Thomas Gleixner wrote:
> ftp://firstfloor.org/pub/ak/x86_64/quilt/x86_64-2.6.22-rc2-070521-1.bz2
>
> explodes in various places due to missing defines of __cold. We can't
> rely on the assumption that linux/compiler.h is included magically
> before bug.h is included. Include it explicitely.

Hmm, somehow it worked here. Perhaps longer term it would be a good
idea to turn compiler.h into an -include

> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

Added thanks

-Andi

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

* Re: [PATCH -ak] Fix missing include
  2007-05-22  6:20 ` Andi Kleen
@ 2007-05-22  7:28   ` Thomas Gleixner
  2007-05-22  7:39     ` Sam Ravnborg
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Gleixner @ 2007-05-22  7:28 UTC (permalink / raw)
  To: Andi Kleen; +Cc: LKML

On Tue, 2007-05-22 at 08:20 +0200, Andi Kleen wrote:
> On Monday 21 May 2007 22:03, Thomas Gleixner wrote:
> > ftp://firstfloor.org/pub/ak/x86_64/quilt/x86_64-2.6.22-rc2-070521-1.bz2
> >
> > explodes in various places due to missing defines of __cold. We can't
> > rely on the assumption that linux/compiler.h is included magically
> > before bug.h is included. Include it explicitely.
> 
> Hmm, somehow it worked here. Perhaps longer term it would be a good
> idea to turn compiler.h into an -include

Might be not a bad idea. > 300 files include it directly and it's
included from sched.h & co as well.

	tglx



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

* Re: [PATCH -ak] Fix missing include
  2007-05-22  7:28   ` Thomas Gleixner
@ 2007-05-22  7:39     ` Sam Ravnborg
  0 siblings, 0 replies; 4+ messages in thread
From: Sam Ravnborg @ 2007-05-22  7:39 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: Andi Kleen, LKML

On Tue, May 22, 2007 at 09:28:15AM +0200, Thomas Gleixner wrote:
> On Tue, 2007-05-22 at 08:20 +0200, Andi Kleen wrote:
> > On Monday 21 May 2007 22:03, Thomas Gleixner wrote:
> > > ftp://firstfloor.org/pub/ak/x86_64/quilt/x86_64-2.6.22-rc2-070521-1.bz2
> > >
> > > explodes in various places due to missing defines of __cold. We can't
> > > rely on the assumption that linux/compiler.h is included magically
> > > before bug.h is included. Include it explicitely.
> > 
> > Hmm, somehow it worked here. Perhaps longer term it would be a good
> > idea to turn compiler.h into an -include
> 
> Might be not a bad idea. > 300 files include it directly and it's
> included from sched.h & co as well.

How about a file like:
include/linux/always_include.h

This file could then include autoconf.h + compiler.h
So we avoid an even longer gcc commandline.

	Sam

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

end of thread, other threads:[~2007-05-22 11:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-21 20:03 [PATCH -ak] Fix missing include Thomas Gleixner
2007-05-22  6:20 ` Andi Kleen
2007-05-22  7:28   ` Thomas Gleixner
2007-05-22  7:39     ` Sam Ravnborg

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.