[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200608195547.GA88820@01856db44629>
Date: Tue, 9 Jun 2020 03:55:47 +0800
From: kernel test robot <lkp@...el.com>
To: Jesper Dangaard Brouer <brouer@...hat.com>,
David Ahern <dsahern@...il.com>, bpf@...r.kernel.org,
Alexei Starovoitov <alexei.starovoitov@...il.com>
Cc: kbuild-all@...ts.01.org,
Jesper Dangaard Brouer <brouer@...hat.com>,
netdev@...r.kernel.org, Daniel Borkmann <borkmann@...earbox.net>,
Andrii Nakryiko <andrii.nakryiko@...il.com>,
Lorenzo Bianconi <lorenzo@...nel.org>
Subject: [RFC PATCH] bpf: bpf_anon_inode_getfd() can be static
Signed-off-by: kernel test robot <lkp@...el.com>
---
syscall.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c
index 6eba236aacd1f..fcd9860cdf148 100644
--- a/kernel/bpf/syscall.c
+++ b/kernel/bpf/syscall.c
@@ -689,8 +689,8 @@ const struct file_operations bpf_map_fops = {
};
/* Code is similar to anon_inode_getfd(), except starts at FD 1 */
-int bpf_anon_inode_getfd(const char *name, const struct file_operations *fops,
- void *priv, int flags)
+static int bpf_anon_inode_getfd(const char *name, const struct file_operations *fops,
+ void *priv, int flags)
{
int error, fd;
struct file *file;
Powered by blists - more mailing lists