diff mbox series

mm/madvise: make function 'do_process_madvise' static

Message ID 20200429014030.41147-1-zhengbin13@huawei.com (mailing list archive)
State New, archived
Headers show
Series mm/madvise: make function 'do_process_madvise' static | expand

Commit Message

Zheng Bin April 29, 2020, 1:40 a.m. UTC
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(-)

--
2.26.0.106.g9fadedd
diff mbox series

Patch

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;