mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
UPSTREAM: bpf: Fix build without BPF_LSM.
resolve_btfids doesn't like empty set. Add unused ID when BPF_LSM is off.
Fixes: 1e6c62a88215 ("bpf: Introduce sleepable BPF programs")
Reported-by: Björn Töpel <bjorn.topel@gmail.com>
Change-Id: If1025935b17ca0b36f32d41baf4cf75cab6548ee
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Song Liu <songliubraving@fb.com>
Acked-by: KP Singh <kpsingh@google.com>
Link: https://lore.kernel.org/bpf/20200831163132.66521-1-alexei.starovoitov@gmail.com
This commit is contained in:
parent
18847d1461
commit
b0db370fc7
1 changed files with 2 additions and 0 deletions
|
|
@ -11206,6 +11206,8 @@ BTF_SET_START(btf_sleepable_lsm_hooks)
|
|||
#ifdef CONFIG_BPF_LSM
|
||||
BTF_ID(func, bpf_lsm_file_mprotect)
|
||||
BTF_ID(func, bpf_lsm_bprm_committed_creds)
|
||||
#else
|
||||
BTF_ID_UNUSED
|
||||
#endif
|
||||
BTF_SET_END(btf_sleepable_lsm_hooks)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue