* [PATCH] mm: page_owner: make some functions static
@ 2023-05-18 8:05 Jiapeng Chong
0 siblings, 0 replies; only message in thread
From: Jiapeng Chong @ 2023-05-18 8:05 UTC (permalink / raw)
To: akpm; +Cc: linux-mm, linux-kernel, Jiapeng Chong, Abaci Robot
These functions are not used outside the file page_owner.c, so the
modification is defined as static.
mm/page_owner.c:748:5: warning: no previous prototype for ‘page_owner_threshold_get’.
mm/page_owner.c:754:5: warning: no previous prototype for ‘page_owner_threshold_set’.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=5235
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
mm/page_owner.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/page_owner.c b/mm/page_owner.c
index 28c519fc9372..bbec66cd1b72 100644
--- a/mm/page_owner.c
+++ b/mm/page_owner.c
@@ -745,13 +745,13 @@ const struct file_operations page_owner_stack_operations = {
unsigned long page_owner_stack_threshold;
-int page_owner_threshold_get(void *data, u64 *val)
+static int page_owner_threshold_get(void *data, u64 *val)
{
*val = page_owner_stack_threshold;
return 0;
}
-int page_owner_threshold_set(void *data, u64 val)
+static int page_owner_threshold_set(void *data, u64 val)
{
page_owner_stack_threshold = val;
return 0;
--
2.20.1.7.g153144c
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-18 8:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-18 8:05 [PATCH] mm: page_owner: make some functions static Jiapeng Chong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox