[PATCH] mm/madvise: make function 'do_process_madvise' static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
Signed-off-by: Zheng Bin <zhengbin13@xxxxxxxxxx>
---
 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






[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux