[PATCH] Include asm/vsyscall.h in arch/x86/kernel/alternative.c.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: <linux-kernel@...>
Date: Sunday, October 14, 2007 - 3:26 pm

The VSYSCALL_START and VSYSCALL_END symbols are referenced in
apply_alternatives(), but vsyscall.h is not always included when
building on x86-64 with random configurations. Including asm/vsyscall.h
guarantees availability of the symbols, and is otherwise harmless.

Signed-off-by: Doug Whitesell <dcw-kernel@screamingdolphin.net>
---
arch/x86/kernel/alternative.c |    2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/ 
alternative.c
index bd72d94..cdb3e25 100644
--- a/arch/x86/kernel/alternative.c
+++ b/arch/x86/kernel/alternative.c
@@ -10,7 +10,7 @@
#include <asm/pgtable.h>
#include <asm/mce.h>
#include <asm/nmi.h>
-
+#include <asm/vsyscall.h>
#define MAX_PATCH_LEN (255-1)
#ifdef CONFIG_HOTPLUG_CPU
--
1.5.2.5

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Include asm/vsyscall.h in arch/x86/kernel/alternativ..., Doug Whitesell (LKML), (Sun Oct 14, 3:26 pm)