History

[PATCH] kernel/power/snapshot.c: cleanups

- make needlessly global functions static - make dummy functions static inline

Adrian Bunk committed 20 years ago

Commit 7bff24e1 parent a938c351 file · +8 −7Browse files

Showing the changes to kernel/power (1 of 1 file). Show all

Unified · Split

kernel/power/snapshot.c+8−7
@@ -122,7 +122,7 @@ static int restore_arch_mem(void) · 121 unmodified lines
122122 }
123123
124124 #ifdef CONFIG_HIGHMEM
125−unsigned int count_highmem_pages(void)
125+static unsigned int count_highmem_pages(void)
126126 {
127127 struct zone *zone;
128128 unsigned long zone_pfn;
@@ -199,7 +199,7 @@ static int save_highmem_zone(struct zone *zone) · 70 unmodified lines
199199 return 0;
200200 }
201201
202−int save_highmem(void)
202+static int save_highmem(void)
203203 {
204204 struct zone *zone;
205205 int res = 0;
@@ -216,7 +216,7 @@ int save_highmem(void) · 10 unmodified lines
216216 return 0;
217217 }
218218
219−int restore_highmem(void)
219+static int restore_highmem(void)
220220 {
221221 printk("swsusp: Restoring Highmem\n");
222222 while (highmem_copy) {
@@ -233,9 +233,9 @@ int restore_highmem(void) · 10 unmodified lines
233233 return 0;
234234 }
235235 #else
236−static unsigned int count_highmem_pages(void) {return 0;}
237−static int save_highmem(void) {return 0;}
238−static int restore_highmem(void) {return 0;}
236+static inline unsigned int count_highmem_pages(void) {return 0;}
237+static inline int save_highmem(void) {return 0;}
238+static inline int restore_highmem(void) {return 0;}
239239 #endif
240240
241241 unsigned int count_special_pages(void)
@@ -482,7 +482,8 @@ unsigned long get_safe_page(gfp_t gfp_mask) · 240 unmodified lines
482482 * On each page we set up a list of struct_pbe elements.
483483 */
484484
485−struct pbe *alloc_pagedir(unsigned int nr_pages, gfp_t gfp_mask, int safe_needed)
485+static struct pbe *alloc_pagedir(unsigned int nr_pages, gfp_t gfp_mask,
486+ int safe_needed)
486487 {
487488 unsigned int num;
488489 struct pbe *pblist, *pbe;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t