diff mbox series

[RFC] bpf: btf: map_seq_next() can be static

Message ID 20180331091236.GA131889@athens
State RFC, archived
Delegated to: BPF Maintainers
Headers show
Series [RFC] bpf: btf: map_seq_next() can be static | expand

Commit Message

kernel test robot March 31, 2018, 9:12 a.m. UTC
Fixes: a1fffb3d6155 ("bpf: btf: Add pretty print support to the basic arraymap")
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
 inode.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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,