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)
commite423414375866a399ebbe55ed044acb39846e8bf
tree31ab940b2ad0b697a66873aa577e6c83f0aa2219
parentac7ac432a67eb5410be32a3bef0fb393058af537
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: ab21d6063c01 ("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