aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2006-09-26 02:32:29 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-26 11:48:56 -0400
commit673eae8230a192f07b8715b872d6925521e9738d (patch)
tree2917c765594015ebfad00bb4fc1feef41286ca1a
parent753b9f86e7aef76c2beda32668ce528f90cb1733 (diff)
[PATCH] x86: trivial pgtable.h __ASSEMBLY__ move
Parsing generic pgtable.h in assembler is simply crazy. None of this file is needed in assembler code, and C inline functions and structures routine break one or more different compiles. Signed-off-by: Zachary Amsden <zach@vmware.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--include/asm-generic/pgtable.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h
index c2059a3a0621..349260cd86ed 100644
--- a/include/asm-generic/pgtable.h
+++ b/include/asm-generic/pgtable.h
@@ -1,6 +1,8 @@
1#ifndef _ASM_GENERIC_PGTABLE_H 1#ifndef _ASM_GENERIC_PGTABLE_H
2#define _ASM_GENERIC_PGTABLE_H 2#define _ASM_GENERIC_PGTABLE_H
3 3
4#ifndef __ASSEMBLY__
5
4#ifndef __HAVE_ARCH_PTEP_ESTABLISH 6#ifndef __HAVE_ARCH_PTEP_ESTABLISH
5/* 7/*
6 * Establish a new mapping: 8 * Establish a new mapping:
@@ -188,7 +190,6 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addres
188}) 190})
189#endif 191#endif
190 192
191#ifndef __ASSEMBLY__
192/* 193/*
193 * When walking page tables, we usually want to skip any p?d_none entries; 194 * When walking page tables, we usually want to skip any p?d_none entries;
194 * and any p?d_bad entries - reporting the error before resetting to none. 195 * and any p?d_bad entries - reporting the error before resetting to none.