mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -tip] mce: headers_check fix: arch/x86/include/asm/mce.h
@ 2009-11-29 11:54 Jaswinder Singh Rajput
  0 siblings, 0 replies; only message in thread
From: Jaswinder Singh Rajput @ 2009-11-29 11:54 UTC (permalink / raw)
  To: Ingo Molnar, Borislav Petkov, LKML


fix the following 'make headers_check' warning:

  usr/include/asm/mce.h:111: userspace cannot call function or variable defined in the kernel

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Cc: Borislav Petkov <borislav.petkov@amd.com>
Cc: Ingo Molnar <mingo@elte.hu>
---
 arch/x86/include/asm/mce.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h
index 858baa0..1d80f9d 100644
--- a/arch/x86/include/asm/mce.h
+++ b/arch/x86/include/asm/mce.h
@@ -108,8 +108,6 @@ struct mce_log {
 #define K8_MCE_THRESHOLD_BANK_5    (MCE_THRESHOLD_BASE + 5 * 9)
 #define K8_MCE_THRESHOLD_DRAM_ECC  (MCE_THRESHOLD_BANK_4 + 0)
 
-extern struct atomic_notifier_head x86_mce_decoder_chain;
-
 #ifdef __KERNEL__
 
 #include <linux/percpu.h>
@@ -119,6 +117,8 @@ extern struct atomic_notifier_head x86_mce_decoder_chain;
 extern int mce_disabled;
 extern int mce_p5_enabled;
 
+extern struct atomic_notifier_head x86_mce_decoder_chain;
+
 #ifdef CONFIG_X86_MCE
 int mcheck_init(void);
 void mcheck_cpu_init(struct cpuinfo_x86 *c);
-- 
1.6.5.3



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-29 11:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-29 11:54 [PATCH -tip] mce: headers_check fix: arch/x86/include/asm/mce.h Jaswinder Singh Rajput

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

all inboxes | Powered by JetHome®