btf: Add BTF_ID_LIST_SINGLE macro
authorLorenz Bauer <lmb@cloudflare.com>
Mon, 21 Sep 2020 12:12:19 +0000 (13:12 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 21 Sep 2020 22:00:40 +0000 (15:00 -0700)
commit27774b7073b5d520c80f1fcb8e9993fc139f21bd
treebe5f8f63d682dc423cd87746863a814127400463
parent0d004c020b5574e51f7a525e57d2a11958b334b5
btf: Add BTF_ID_LIST_SINGLE macro

Add a convenience macro that allows defining a BTF ID list with
a single item. This lets us cut down on repetitive macros.

Suggested-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20200921121227.255763-4-lmb@cloudflare.com
include/linux/btf_ids.h
tools/include/linux/btf_ids.h