|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] linux/x86: avoid a re-definition warning
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1172848374 0
# Node ID 145d3c81e65448554984dc33b086959753336b8d
# Parent 4847e5b8adf15863e9d05879e1de8f14f032ea0b
linux/x86: avoid a re-definition warning on x86-64 and change i386
similarly to be consistent.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
linux-2.6-xen-sparse/arch/i386/kernel/head-xen.S | 2 -
linux-2.6-xen-sparse/arch/x86_64/kernel/head-xen.S | 2 -
linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/page.h | 15 +++++++-------
3 files changed, 8 insertions(+), 11 deletions(-)
diff -r 4847e5b8adf1 -r 145d3c81e654
linux-2.6-xen-sparse/arch/i386/kernel/head-xen.S
--- a/linux-2.6-xen-sparse/arch/i386/kernel/head-xen.S Fri Mar 02 15:10:54
2007 +0000
+++ b/linux-2.6-xen-sparse/arch/i386/kernel/head-xen.S Fri Mar 02 15:12:54
2007 +0000
@@ -11,8 +11,6 @@
#include <asm/asm-offsets.h>
#include <xen/interface/xen.h>
#include <xen/interface/elfnote.h>
-
-#define _PAGE_PRESENT 0x1
/*
* References to members of the new_cpu_data structure.
diff -r 4847e5b8adf1 -r 145d3c81e654
linux-2.6-xen-sparse/arch/x86_64/kernel/head-xen.S
--- a/linux-2.6-xen-sparse/arch/x86_64/kernel/head-xen.S Fri Mar 02
15:10:54 2007 +0000
+++ b/linux-2.6-xen-sparse/arch/x86_64/kernel/head-xen.S Fri Mar 02
15:12:54 2007 +0000
@@ -24,8 +24,6 @@
#include <asm/cache.h>
#include <xen/interface/elfnote.h>
-
-#define _PAGE_PRESENT 0x1
.section .bootstrap.text, "ax", @progbits
.code64
diff -r 4847e5b8adf1 -r 145d3c81e654
linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/page.h
--- a/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/page.h Fri Mar 02
15:10:54 2007 +0000
+++ b/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/page.h Fri Mar 02
15:12:54 2007 +0000
@@ -20,6 +20,14 @@
#define LARGE_PAGE_SIZE (1UL << PMD_SHIFT)
#ifdef __KERNEL__
+
+/*
+ * Need to repeat this here in order to not include pgtable.h (which in turn
+ * depends on definitions made here), but to be able to use the symbolic
+ * below. The preprocessor will warn if the two definitions aren't identical.
+ */
+#define _PAGE_PRESENT 0x001
+
#ifndef __ASSEMBLY__
#include <linux/string.h>
@@ -28,13 +36,6 @@
#include <asm/bug.h>
#include <xen/interface/xen.h>
#include <xen/features.h>
-
-/*
- * Need to repeat this here in order to not include pgtable.h (which in turn
- * depends on definitions made here), but to be able to use the symbolic
- * below. The preprocessor will warn if the two definitions aren't identical.
- */
-#define _PAGE_PRESENT 0x001
#define arch_free_page(_page,_order) \
({ int foreign = PageForeign(_page); \
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] linux/x86: avoid a re-definition warning on x86-64 and change i386,
Xen patchbot-unstable <=
|
|
|
|
|