* [PATCH] mm/madvise: make function 'do_process_madvise' static
@ 2020-04-29 1:40 Zheng Bin
0 siblings, 0 replies; only message in thread
From: Zheng Bin @ 2020-04-29 1:40 UTC (permalink / raw)
To: akpm, linux-mm; +Cc: zhengbin13
Fix sparse warnings:
mm/madvise.c:1233:9: warning: symbol 'do_process_madvise' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
---
mm/madvise.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/madvise.c b/mm/madvise.c
index 8fec261457a6..2cd4601e01a9 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -1230,8 +1230,8 @@ static int process_madvise_vec(struct task_struct *target_task,
return ret;
}
-ssize_t do_process_madvise(int which, pid_t upid, struct iov_iter *iter,
- int behavior, unsigned long flags)
+static ssize_t do_process_madvise(int which, pid_t upid, struct iov_iter *iter,
+ int behavior, unsigned long flags)
{
ssize_t ret;
struct pid *pid;
--
2.26.0.106.g9fadedd
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-29 1:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-29 1:40 [PATCH] mm/madvise: make function 'do_process_madvise' static Zheng Bin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox