diff options
-rw-r--r-- | kernel/power/power.h | 8 | ||||
-rw-r--r-- | kernel/power/snapshot.c | 1 | ||||
-rw-r--r-- | kernel/power/swsusp.c | 8 |
3 files changed, 8 insertions, 9 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h index ef9060576a40..c5321eb1f7c8 100644 --- a/kernel/power/power.h +++ b/kernel/power/power.h | |||
@@ -180,3 +180,11 @@ static inline int pm_notifier_call_chain(unsigned long val) | |||
180 | return (blocking_notifier_call_chain(&pm_chain_head, val, NULL) | 180 | return (blocking_notifier_call_chain(&pm_chain_head, val, NULL) |
181 | == NOTIFY_BAD) ? -EINVAL : 0; | 181 | == NOTIFY_BAD) ? -EINVAL : 0; |
182 | } | 182 | } |
183 | |||
184 | #ifdef CONFIG_HIGHMEM | ||
185 | unsigned int count_highmem_pages(void); | ||
186 | int restore_highmem(void); | ||
187 | #else | ||
188 | static inline unsigned int count_highmem_pages(void) { return 0; } | ||
189 | static inline int restore_highmem(void) { return 0; } | ||
190 | #endif | ||
diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c index c5ce0f34a5d4..1ec3eccb1a34 100644 --- a/kernel/power/snapshot.c +++ b/kernel/power/snapshot.c | |||
@@ -872,7 +872,6 @@ unsigned int count_highmem_pages(void) | |||
872 | } | 872 | } |
873 | #else | 873 | #else |
874 | static inline void *saveable_highmem_page(unsigned long pfn) { return NULL; } | 874 | static inline void *saveable_highmem_page(unsigned long pfn) { return NULL; } |
875 | static inline unsigned int count_highmem_pages(void) { return 0; } | ||
876 | #endif /* CONFIG_HIGHMEM */ | 875 | #endif /* CONFIG_HIGHMEM */ |
877 | 876 | ||
878 | /** | 877 | /** |
diff --git a/kernel/power/swsusp.c b/kernel/power/swsusp.c index e1722d3155f1..605c536795ba 100644 --- a/kernel/power/swsusp.c +++ b/kernel/power/swsusp.c | |||
@@ -64,14 +64,6 @@ unsigned long image_size = 500 * 1024 * 1024; | |||
64 | 64 | ||
65 | int in_suspend __nosavedata = 0; | 65 | int in_suspend __nosavedata = 0; |
66 | 66 | ||
67 | #ifdef CONFIG_HIGHMEM | ||
68 | unsigned int count_highmem_pages(void); | ||
69 | int restore_highmem(void); | ||
70 | #else | ||
71 | static inline int restore_highmem(void) { return 0; } | ||
72 | static inline unsigned int count_highmem_pages(void) { return 0; } | ||
73 | #endif | ||
74 | |||
75 | /** | 67 | /** |
76 | * The following functions are used for tracing the allocated | 68 | * The following functions are used for tracing the allocated |
77 | * swap pages, so that they can be freed in case of an error. | 69 | * swap pages, so that they can be freed in case of an error. |