diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-03-21 10:42:28 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:20 -0400 |
commit | 52783fa8d6b847857fdd86df418e09c026d816f5 (patch) | |
tree | 7964ba020643ca9143294e51ed31cf3750903498 /include/asm-x86/mtrr.h | |
parent | 042b78e4dbb8919a59e77ba5d502a5a14405dea1 (diff) |
x86: PAT fix
build fix for !CONFIG_MTRR.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/mtrr.h')
-rw-r--r-- | include/asm-x86/mtrr.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/asm-x86/mtrr.h b/include/asm-x86/mtrr.h index 968794af93f9..ee172296e056 100644 --- a/include/asm-x86/mtrr.h +++ b/include/asm-x86/mtrr.h | |||
@@ -84,10 +84,9 @@ struct mtrr_gentry | |||
84 | 84 | ||
85 | #ifdef __KERNEL__ | 85 | #ifdef __KERNEL__ |
86 | 86 | ||
87 | extern u8 mtrr_type_lookup(u64 addr, u64 end); | ||
88 | |||
89 | /* The following functions are for use by other drivers */ | 87 | /* The following functions are for use by other drivers */ |
90 | # ifdef CONFIG_MTRR | 88 | # ifdef CONFIG_MTRR |
89 | extern u8 mtrr_type_lookup(u64 addr, u64 end); | ||
91 | extern void mtrr_save_fixed_ranges(void *); | 90 | extern void mtrr_save_fixed_ranges(void *); |
92 | extern void mtrr_save_state(void); | 91 | extern void mtrr_save_state(void); |
93 | extern int mtrr_add (unsigned long base, unsigned long size, | 92 | extern int mtrr_add (unsigned long base, unsigned long size, |
@@ -101,6 +100,13 @@ extern void mtrr_ap_init(void); | |||
101 | extern void mtrr_bp_init(void); | 100 | extern void mtrr_bp_init(void); |
102 | extern int mtrr_trim_uncached_memory(unsigned long end_pfn); | 101 | extern int mtrr_trim_uncached_memory(unsigned long end_pfn); |
103 | # else | 102 | # else |
103 | static inline u8 mtrr_type_lookup(u64 addr, u64 end) | ||
104 | { | ||
105 | /* | ||
106 | * Return no-MTRRs: | ||
107 | */ | ||
108 | return 0xff; | ||
109 | } | ||
104 | #define mtrr_save_fixed_ranges(arg) do {} while (0) | 110 | #define mtrr_save_fixed_ranges(arg) do {} while (0) |
105 | #define mtrr_save_state() do {} while (0) | 111 | #define mtrr_save_state() do {} while (0) |
106 | static __inline__ int mtrr_add (unsigned long base, unsigned long size, | 112 | static __inline__ int mtrr_add (unsigned long base, unsigned long size, |