]> 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)
commitc0d199214d8b1d534ab4e4a8d0a5e954fc83fbf2
tree31ab940b2ad0b697a66873aa577e6c83f0aa2219
parentea384a0e06e25f1a5cb1c3938796f9f635942a64
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: cdbe9605306e ("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