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
122}122}
123 123
124#ifdef CONFIG_HIGHMEM124#ifdef CONFIG_HIGHMEM
125unsigned int count_highmem_pages(void)125static unsigned int count_highmem_pages(void)
126{126{
127 struct zone *zone;127 struct zone *zone;
128 unsigned long zone_pfn;128 unsigned long zone_pfn;
@@ -199,7 +199,7 @@ static int save_highmem_zone(struct zone *zone) · 70 unmodified lines
199 return 0;199 return 0;
200}200}
201 201
202int save_highmem(void)202static int save_highmem(void)
203{203{
204 struct zone *zone;204 struct zone *zone;
205 int res = 0;205 int res = 0;
@@ -216,7 +216,7 @@ int save_highmem(void) · 10 unmodified lines
216 return 0;216 return 0;
217}217}
218 218
219int restore_highmem(void)219static int restore_highmem(void)
220{220{
221 printk("swsusp: Restoring Highmem\n");221 printk("swsusp: Restoring Highmem\n");
222 while (highmem_copy) {222 while (highmem_copy) {
@@ -233,9 +233,9 @@ int restore_highmem(void) · 10 unmodified lines
233 return 0;233 return 0;
234}234}
235#else235#else
236static unsigned int count_highmem_pages(void) {return 0;}236static inline unsigned int count_highmem_pages(void) {return 0;}
237static int save_highmem(void) {return 0;}237static inline int save_highmem(void) {return 0;}
238static int restore_highmem(void) {return 0;}238static inline int restore_highmem(void) {return 0;}
239#endif239#endif
240 240
241unsigned int count_special_pages(void)241unsigned int count_special_pages(void)
@@ -482,7 +482,8 @@ unsigned long get_safe_page(gfp_t gfp_mask) · 240 unmodified lines
482 * On each page we set up a list of struct_pbe elements.482 * On each page we set up a list of struct_pbe elements.
483 */483 */
484 484
485struct pbe *alloc_pagedir(unsigned int nr_pages, gfp_t gfp_mask, int safe_needed)485static struct pbe *alloc_pagedir(unsigned int nr_pages, gfp_t gfp_mask,
486 int safe_needed)
486{487{
487 unsigned int num;488 unsigned int num;
488 struct pbe *pblist, *pbe;489 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