lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180331091236.GA131889@athens>
Date:   Sat, 31 Mar 2018 17:12:36 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Martin KaFai Lau <kafai@...com>
Cc:     kbuild-all@...org, netdev@...r.kernel.org,
        Alexei Starovoitov <ast@...com>,
        Daniel Borkmann <daniel@...earbox.net>, kernel-team@...com
Subject: [RFC PATCH] bpf: btf: map_seq_next() can be static


Fixes: a1fffb3d6155 ("bpf: btf: Add pretty print support to the basic arraymap")
Signed-off-by: Fengguang Wu <fengguang.wu@...el.com>
---
 inode.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/bpf/inode.c b/kernel/bpf/inode.c
index 11ea64b..e3eec943 100644
--- a/kernel/bpf/inode.c
+++ b/kernel/bpf/inode.c
@@ -192,7 +192,7 @@ static struct map_iter *map_iter_alloc(struct bpf_map *map)
 	return NULL;
 }
 
-void *map_seq_next(struct seq_file *m, void *v, loff_t *pos)
+static void *map_seq_next(struct seq_file *m, void *v, loff_t *pos)
 {
 	struct bpf_map *map = seq_file_to_map(m);
 	void *key = map_iter(m)->key;
@@ -279,7 +279,7 @@ static int bpffs_map_release(struct inode *inode, struct file *file)
 	return seq_release(inode, file);
 }
 
-const struct file_operations bpffs_map_fops = {
+static const struct file_operations bpffs_map_fops = {
 	.open		= bpffs_map_open,
 	.read		= seq_read,
 	.release	= bpffs_map_release,

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ