Commit 3b1f3658 authored by Zou Wei's avatar Zou Wei Committed by Linus Torvalds

mm/page_alloc: mark some symbols with static keyword

Fix the following sparse warnings:

  mm/page_alloc.c:3040:6: warning: symbol '__drain_all_pages' was not declared. Should it be static?
  mm/page_alloc.c:6349:6: warning: symbol '__zone_set_pageset_high_and_batch' was not declared. Should it be static?

Link: https://lkml.kernel.org/r/1605517365-65858-1-git-send-email-zou_wei@huawei.comSigned-off-by: default avatarZou Wei <zou_wei@huawei.com>
Acked-by: default avatarVlastimil Babka <vbabka@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7f194fbb
...@@ -3035,7 +3035,7 @@ static void drain_local_pages_wq(struct work_struct *work) ...@@ -3035,7 +3035,7 @@ static void drain_local_pages_wq(struct work_struct *work)
* that need the guarantee that every CPU has drained can disable the * that need the guarantee that every CPU has drained can disable the
* optimizing racy check. * optimizing racy check.
*/ */
void __drain_all_pages(struct zone *zone, bool force_all_cpus) static void __drain_all_pages(struct zone *zone, bool force_all_cpus)
{ {
int cpu; int cpu;
...@@ -6357,7 +6357,7 @@ static void pageset_init(struct per_cpu_pageset *p) ...@@ -6357,7 +6357,7 @@ static void pageset_init(struct per_cpu_pageset *p)
pcp->batch = BOOT_PAGESET_BATCH; pcp->batch = BOOT_PAGESET_BATCH;
} }
void __zone_set_pageset_high_and_batch(struct zone *zone, unsigned long high, static void __zone_set_pageset_high_and_batch(struct zone *zone, unsigned long high,
unsigned long batch) unsigned long batch)
{ {
struct per_cpu_pageset *p; struct per_cpu_pageset *p;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment