All of lore.kernel.org
 help / color / mirror / Atom feed
* [ast:bpf_tramp 15/20] kernel/bpf/btf.c:3467:4: sparse: sparse: symbol 'bpf_ctx_convert_map' was not declared. Should it be static?
@ 2019-11-14  1:04 kbuild test robot
  2019-11-14  1:04 ` [RFC PATCH ast] bpf: bpf_ctx_convert_map[] can be static kbuild test robot
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2019-11-14  1:04 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1069 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git bpf_tramp
head:   0c7801bd32ff7af798e8ddb44a9e75dc4be215a0
commit: 6b3bd0c5b266ed229e402200b409cde1a825ff03 [15/20] bpf: Annotate context types
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-31-gfd3528a-dirty
        git checkout 6b3bd0c5b266ed229e402200b409cde1a825ff03
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)

   kernel/bpf/btf.c:3460:3: sparse: sparse: symbol 'bpf_ctx_convert' was not declared. Should it be static?
>> kernel/bpf/btf.c:3467:4: sparse: sparse: symbol 'bpf_ctx_convert_map' was not declared. Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [RFC PATCH ast] bpf: bpf_ctx_convert_map[] can be static
  2019-11-14  1:04 [ast:bpf_tramp 15/20] kernel/bpf/btf.c:3467:4: sparse: sparse: symbol 'bpf_ctx_convert_map' was not declared. Should it be static? kbuild test robot
@ 2019-11-14  1:04 ` kbuild test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2019-11-14  1:04 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 605 bytes --]


Fixes: 6b3bd0c5b266 ("bpf: Annotate context types")
Signed-off-by: kbuild test robot <lkp@intel.com>
---
 btf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c
index 1ed07c424bafc..4d3741b07d531 100644
--- a/kernel/bpf/btf.c
+++ b/kernel/bpf/btf.c
@@ -3464,7 +3464,7 @@ enum {
 #include <linux/bpf_types.h>
 #undef BPF_PROG_TYPE
 };
-u8 bpf_ctx_convert_map[] = {
+static u8 bpf_ctx_convert_map[] = {
 #define BPF_PROG_TYPE(_id, _name, prog_ctx_type, kern_ctx_type) \
 	[_id] = __ctx_convert##_id,
 #include <linux/bpf_types.h>

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-14  1:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-14  1:04 [ast:bpf_tramp 15/20] kernel/bpf/btf.c:3467:4: sparse: sparse: symbol 'bpf_ctx_convert_map' was not declared. Should it be static? kbuild test robot
2019-11-14  1:04 ` [RFC PATCH ast] bpf: bpf_ctx_convert_map[] can be static kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.