bpf: Fix non-static bpf_func_proto struct definitions
authorJoanne Koong <joannelkoong@gmail.com>
Thu, 16 Jun 2022 22:54:07 +0000 (15:54 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 17 Jun 2022 14:00:51 +0000 (16:00 +0200)
commitdc368e1c658e4f478a45e8d1d5b0c8392ca87506
treef304e4d34ba35f607b67a653eb2f08366a52e556
parent08c79c9cd67fffd0d5538ddbd3a97b0a865b5eb5
bpf: Fix non-static bpf_func_proto struct definitions

This patch does two things:

1) Marks the dynptr bpf_func_proto structs that were added in [1]
   as static, as pointed out by the kernel test robot in [2].

2) There are some bpf_func_proto structs marked as extern which can
   instead be statically defined.

  [1] https://lore.kernel.org/bpf/20220523210712.3641569-1-joannelkoong@gmail.com/
  [2] https://lore.kernel.org/bpf/62ab89f2.Pko7sI08RAKdF8R6%25lkp@intel.com/

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220616225407.1878436-1-joannelkoong@gmail.com
include/linux/bpf.h
kernel/bpf/helpers.c
kernel/bpf/syscall.c