diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-i386/mtrr.h | 2 | ||||
-rw-r--r-- | include/asm-x86_64/mtrr.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-i386/mtrr.h b/include/asm-i386/mtrr.h index 02a41b99bd7e..7e9c7ccbdcfe 100644 --- a/include/asm-i386/mtrr.h +++ b/include/asm-i386/mtrr.h | |||
@@ -70,6 +70,7 @@ struct mtrr_gentry | |||
70 | /* The following functions are for use by other drivers */ | 70 | /* The following functions are for use by other drivers */ |
71 | # ifdef CONFIG_MTRR | 71 | # ifdef CONFIG_MTRR |
72 | extern void mtrr_save_fixed_ranges(void *); | 72 | extern void mtrr_save_fixed_ranges(void *); |
73 | extern void mtrr_save_state(void); | ||
73 | extern int mtrr_add (unsigned long base, unsigned long size, | 74 | extern int mtrr_add (unsigned long base, unsigned long size, |
74 | unsigned int type, char increment); | 75 | unsigned int type, char increment); |
75 | extern int mtrr_add_page (unsigned long base, unsigned long size, | 76 | extern int mtrr_add_page (unsigned long base, unsigned long size, |
@@ -81,6 +82,7 @@ extern void mtrr_ap_init(void); | |||
81 | extern void mtrr_bp_init(void); | 82 | extern void mtrr_bp_init(void); |
82 | # else | 83 | # else |
83 | #define mtrr_save_fixed_ranges(arg) do {} while (0) | 84 | #define mtrr_save_fixed_ranges(arg) do {} while (0) |
85 | #define mtrr_save_state() do {} while (0) | ||
84 | static __inline__ int mtrr_add (unsigned long base, unsigned long size, | 86 | static __inline__ int mtrr_add (unsigned long base, unsigned long size, |
85 | unsigned int type, char increment) | 87 | unsigned int type, char increment) |
86 | { | 88 | { |
diff --git a/include/asm-x86_64/mtrr.h b/include/asm-x86_64/mtrr.h index 1b326cbb9305..b557c486bef8 100644 --- a/include/asm-x86_64/mtrr.h +++ b/include/asm-x86_64/mtrr.h | |||
@@ -139,10 +139,12 @@ struct mtrr_gentry32 | |||
139 | extern void mtrr_ap_init(void); | 139 | extern void mtrr_ap_init(void); |
140 | extern void mtrr_bp_init(void); | 140 | extern void mtrr_bp_init(void); |
141 | extern void mtrr_save_fixed_ranges(void *); | 141 | extern void mtrr_save_fixed_ranges(void *); |
142 | extern void mtrr_save_state(void); | ||
142 | #else | 143 | #else |
143 | #define mtrr_ap_init() do {} while (0) | 144 | #define mtrr_ap_init() do {} while (0) |
144 | #define mtrr_bp_init() do {} while (0) | 145 | #define mtrr_bp_init() do {} while (0) |
145 | #define mtrr_save_fixed_ranges(arg) do {} while (0) | 146 | #define mtrr_save_fixed_ranges(arg) do {} while (0) |
147 | #define mtrr_save_state() do {} while (0) | ||
146 | #endif | 148 | #endif |
147 | 149 | ||
148 | #endif /* __KERNEL__ */ | 150 | #endif /* __KERNEL__ */ |