diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-08-11 17:50:28 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-08-11 17:50:29 +0300 |
commit | 84ba28901629cd3aa3b24d359bc4da3ac24c2329 (patch) | |
tree | fad65274934b901d03fc0318993864855d90cde2 | |
parent | 94ce3b64c62d4b628cf85cd0d9a370aca8f7e43a (diff) | |
parent | 4e4588f1c4d2e67c993208f0550ef3fae33abce4 (diff) | |
download | linux-84ba28901629cd3aa3b24d359bc4da3ac24c2329.tar.xz |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
Pull in bpf to silence a false positive warning.
* git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf:
bpf: Shut up kern_sys_bpf warning.
Link: https://lore.kernel.org/r/CAADnVQK589CZN1Q9w8huJqkEyEed+ZMTWqcpA1Rm2CjN3a4XoQ@mail.gmail.com/
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r-- | kernel/bpf/syscall.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index a1cb0bdc5ad6..a4d40d98428a 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/syscall.c @@ -5086,6 +5086,14 @@ BPF_CALL_3(bpf_sys_bpf, int, cmd, union bpf_attr *, attr, u32, attr_size) return __sys_bpf(cmd, KERNEL_BPFPTR(attr), attr_size); } + +/* To shut up -Wmissing-prototypes. + * This function is used by the kernel light skeleton + * to load bpf programs when modules are loaded or during kernel boot. + * See tools/lib/bpf/skel_internal.h + */ +int kern_sys_bpf(int cmd, union bpf_attr *attr, unsigned int size); + int kern_sys_bpf(int cmd, union bpf_attr *attr, unsigned int size) { struct bpf_prog * __maybe_unused prog; |