]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Fix build error in case of !CONFIG_DEBUG_INFO_BTF
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Fri, 22 Jul 2022 11:36:05 +0000 (13:36 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 22 Jul 2022 16:07:07 +0000 (09:07 -0700)
commitd21ce0264bd8f756b11d899e35fe4099ce421f1a
tree31ab940b2ad0b697a66873aa577e6c83f0aa2219
parentff8acd5dd010b38c3fcc3ec89a3e2049a18cf003
bpf: Fix build error in case of !CONFIG_DEBUG_INFO_BTF

BTF_ID_FLAGS macro needs to be able to take 0 or 1 args, so make it a
variable argument. BTF_SET8_END is incorrect, it should just be empty.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: d6d0241b76e1 ("bpf: Introduce 8-byte BTF set")
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20220722113605.6513-1-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/btf_ids.h