[RFC PATCH] bpf: bpf_anon_inode_getfd() can be static

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

 



Signed-off-by: kernel test robot <lkp@xxxxxxxxx>
---
 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;



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux