@@ -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,
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(-)