From mboxrd@z Thu Jan 1 00:00:00 1970 From: kbuild test robot Subject: [RFC PATCH] bpf: btf: map_seq_next() can be static Date: Sat, 31 Mar 2018 17:12:36 +0800 Message-ID: <20180331091236.GA131889@athens> References: <20180330182643.3539371-8-kafai@fb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kbuild-all@01.org, netdev@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , kernel-team@fb.com To: Martin KaFai Lau Return-path: Received: from mga03.intel.com ([134.134.136.65]:51212 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752422AbeCaJMw (ORCPT ); Sat, 31 Mar 2018 05:12:52 -0400 Content-Disposition: inline In-Reply-To: <20180330182643.3539371-8-kafai@fb.com> Sender: netdev-owner@vger.kernel.org List-ID: Fixes: a1fffb3d6155 ("bpf: btf: Add pretty print support to the basic arraymap") Signed-off-by: Fengguang Wu --- 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,