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