public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86_64: mm fix x86 cpuid keys used in alternative_smp fix
@ 2006-08-24 10:58 Paul Jackson
  2006-08-24 11:33 ` Andi Kleen
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Jackson @ 2006-08-24 10:58 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Jan Beulich, Paul Jackson, linux-kernel, Andi Kleen

From: Paul Jackson <pj@sgi.com>

The x86_64 crosstool build was failing due to:

  kernel/built-in.o(.smp_altinstructions+0x58): \
    include/asm/spinlock.h:54: undefined reference to `X86_FEATURE_UP'

This reference to X86_FEATURE_UP was added to the definition of
the alternative_smp() macro in alternative.h by the patch:
  x86_64-mm-fix-x86-cpuid-keys-used-in-alternative_smp

The alternative_smp() macro is used in spinlock.h.

The definition of X86_FEATURE_UP is in asm-x86_64/cpufeature.h.
If this is included in alternative.h, then the build succeeds.

Signed-off-by: Paul Jackson <pj@sgi.com>

---

 include/asm-x86_64/alternative.h |    1 +
 1 files changed, 1 insertion(+)

--- 2.6.18-rc4-mm2.orig/include/asm-x86_64/alternative.h	2006-08-24 03:37:22.000000000 -0700
+++ 2.6.18-rc4-mm2/include/asm-x86_64/alternative.h	2006-08-24 03:38:09.000000000 -0700
@@ -4,6 +4,7 @@
 #ifdef __KERNEL__
 
 #include <linux/types.h>
+#include <asm/cpufeature.h>
 
 struct alt_instr {
 	u8 *instr; 		/* original instruction */

-- 
                  I won't rest till it's the best ...
                  Programmer, Linux Scalability
                  Paul Jackson <pj@sgi.com> 1.925.600.0401

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

* Re: [PATCH] x86_64: mm fix x86 cpuid keys used in alternative_smp fix
  2006-08-24 10:58 [PATCH] x86_64: mm fix x86 cpuid keys used in alternative_smp fix Paul Jackson
@ 2006-08-24 11:33 ` Andi Kleen
  0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2006-08-24 11:33 UTC (permalink / raw)
  To: Paul Jackson; +Cc: Andrew Morton, Jan Beulich, linux-kernel

On Thursday 24 August 2006 12:58, Paul Jackson wrote:
> From: Paul Jackson <pj@sgi.com>
> 
> The x86_64 crosstool build was failing due to:
> 
>   kernel/built-in.o(.smp_altinstructions+0x58): \
>     include/asm/spinlock.h:54: undefined reference to `X86_FEATURE_UP'
> 
> This reference to X86_FEATURE_UP was added to the definition of
> the alternative_smp() macro in alternative.h by the patch:
>   x86_64-mm-fix-x86-cpuid-keys-used-in-alternative_smp
> 
> The alternative_smp() macro is used in spinlock.h.
> 
> The definition of X86_FEATURE_UP is in asm-x86_64/cpufeature.h.
> If this is included in alternative.h, then the build succeeds.

Ok it seems to depend on the .config, but nobody before submitted 
the buggy .config

I folded the patch in

-Andi

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

end of thread, other threads:[~2006-08-24 11:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-24 10:58 [PATCH] x86_64: mm fix x86 cpuid keys used in alternative_smp fix Paul Jackson
2006-08-24 11:33 ` Andi Kleen

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