summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZheng Bin <zhengbin13@huawei.com>2020-05-30 14:51:08 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2020-06-02 19:15:35 +1000
commite1fb7dc27f77297ebd5d4bf77da5d21f3f9cf22e (patch)
treed716f65552615089959e72ed7113af796eed4f06
parent20257294a4cc813c7a1a8efcd1babc1fe8dff501 (diff)
downloadlinux-e1fb7dc27f77297ebd5d4bf77da5d21f3f9cf22e.tar.gz
mm/madvise: make function 'do_process_madvise' static
Fix sparse warnings: mm/madvise.c:1233:9: warning: symbol 'do_process_madvise' was not declared. Should it be static? Link: http://lkml.kernel.org/r/20200429014030.41147-1-zhengbin13@huawei.com Signed-off-by: Zheng Bin <zhengbin13@huawei.com> Reported-by: Hulk Robot <hulkci@huawei.com> Cc: Minchan Kim <minchan@kernel.org> Cc: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r--mm/madvise.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/madvise.c b/mm/madvise.c
index 7c4188d2f4d7..520b4749058e 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;