[PATCH] x86_64: mm fix x86 cpuid keys used in alternative_smp fix



From: Paul Jackson <pj@xxxxxxx>

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@xxxxxxx>

---

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@xxxxxxx> 1.925.600.0401
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: macros using 2 open documents.
    ... We seem to be failing to communicate. ... relevant to the technical solution you are asking for. ... You previously used Windowsand Windowsto reference two documents. ... >> Windows.Activate and the macro worked fine flipping back and forth. ...
    (microsoft.public.word.vba.general)
  • Re: [PATCH] x86_64: mm fix x86 cpuid keys used in alternative_smp fix
    ... This reference to X86_FEATURE_UP was added to the definition of ... the alternative_smpmacro in alternative.h by the patch: ... The alternative_smpmacro is used in spinlock.h. ... Ok it seems to depend on the .config, ...
    (Linux-Kernel)
  • Re: Im desperate!! Search, if found, insert, else search for nex
    ... reference document wherever they exists and puts the corresponding text from ... Word MVP web site http://word.mvps.org ... If I understand the macro you sent, I can change the reference to the ... Dim ChangeDoc As Document ...
    (microsoft.public.word.vba.general)
  • Re: Im desperate!! Search, if found, insert, else search for nex
    ... The original macro looks for the codes from the first column of the ... reference document wherever they exists and puts the corresponding text from ... Word MVP web site http://word.mvps.org ... The data source table, however, ...
    (microsoft.public.word.vba.general)
  • Re: Im desperate!! Search, if found, insert, else search for nex
    ... My reference document (only used for finding the text to replace the codes ... in the data source) is the one that has two columns. ... Word MVP web site http://word.mvps.org ... If I understand the macro you sent, I can change the reference to the ...
    (microsoft.public.word.vba.general)