* + mm-page_alloc-mark-some-symbols-with-static-keyword.patch added to -mm tree
@ 2020-11-16 20:37 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2020-11-16 20:37 UTC (permalink / raw)
To: mm-commits, zou_wei
The patch titled
Subject: mm/page_alloc: mark some symbols with static keyword
has been added to the -mm tree. Its filename is
mm-page_alloc-mark-some-symbols-with-static-keyword.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/mm-page_alloc-mark-some-symbols-with-static-keyword.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/mm-page_alloc-mark-some-symbols-with-static-keyword.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Zou Wei <zou_wei@huawei.com>
Subject: 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.com
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/page_alloc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/mm/page_alloc.c~mm-page_alloc-mark-some-symbols-with-static-keyword
+++ a/mm/page_alloc.c
@@ -3034,7 +3034,7 @@ static void drain_local_pages_wq(struct
* that need the guarantee that every CPU has drained can disable the
* 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;
@@ -6343,7 +6343,7 @@ static void pageset_init(struct per_cpu_
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)
{
struct per_cpu_pageset *p;
_
Patches currently in -mm which might be from zou_wei@huawei.com are
mm-page_alloc-mark-some-symbols-with-static-keyword.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-16 20:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-16 20:37 + mm-page_alloc-mark-some-symbols-with-static-keyword.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).