Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm: compaction: make compact_zone_order() static

There's no compact_zone_order() user outside file scope, so make it static.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: David Rientjes <rientjes@google.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Kyungmin Park and committed by
Linus Torvalds
d43a87e6 dd73e85f

+1 -9
-8
include/linux/compaction.h
··· 24 24 int order, gfp_t gfp_mask, nodemask_t *mask, 25 25 bool sync); 26 26 extern unsigned long compaction_suitable(struct zone *zone, int order); 27 - extern unsigned long compact_zone_order(struct zone *zone, int order, 28 - gfp_t gfp_mask, bool sync); 29 27 30 28 /* Do not skip compaction more than 64 times */ 31 29 #define COMPACT_MAX_DEFER_SHIFT 6 ··· 65 67 static inline unsigned long compaction_suitable(struct zone *zone, int order) 66 68 { 67 69 return COMPACT_SKIPPED; 68 - } 69 - 70 - static inline unsigned long compact_zone_order(struct zone *zone, int order, 71 - gfp_t gfp_mask, bool sync) 72 - { 73 - return COMPACT_CONTINUE; 74 70 } 75 71 76 72 static inline void defer_compaction(struct zone *zone)
+1 -1
mm/compaction.c
··· 582 582 return ret; 583 583 } 584 584 585 - unsigned long compact_zone_order(struct zone *zone, 585 + static unsigned long compact_zone_order(struct zone *zone, 586 586 int order, gfp_t gfp_mask, 587 587 bool sync) 588 588 {