summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZheng Bin <zhengbin13@huawei.com>2020-05-14 13:41:11 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2020-05-14 20:12:34 +1000
commit5ef8190d580eeabfa4ec10c6fadb53f73248cd93 (patch)
treec994a7fc29f624c2b218b22d1aee70d2a44676e0
parent77df6ee029d9540188f39978d34e5d0c9931e41e (diff)
downloadlinux-5ef8190d580eeabfa4ec10c6fadb53f73248cd93.tar.gz
linux-5ef8190d580eeabfa4ec10c6fadb53f73248cd93.tar.xz
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> 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 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;