Skip to content

Commit 64bb568

Browse files
iamkafaiborkmann
authored andcommitted
bpf: btf: Sync uapi btf.h to tools
This patch sync the uapi btf.h to tools/ Fixes: 36fc3c8 bpf: btf: Clean up BTF_INT_BITS() in uapi btf.h Signed-off-by: Martin KaFai Lau <kafai@fb.com> Acked-by: Yonghong Song <yhs@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
1 parent 6283fa3 commit 64bb568

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tools/include/uapi/linux

tools/include/uapi/linux/btf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ struct btf_type {
7676
*/
7777
#define BTF_INT_ENCODING(VAL) (((VAL) & 0x0f000000) >> 24)
7878
#define BTF_INT_OFFSET(VAL) (((VAL & 0x00ff0000)) >> 16)
79-
#define BTF_INT_BITS(VAL) ((VAL) & 0x0000ffff)
79+
#define BTF_INT_BITS(VAL) ((VAL) & 0x000000ff)
8080

8181
/* Attributes stored in the BTF_INT_ENCODING */
8282
#define BTF_INT_SIGNED (1 << 0)

0 commit comments

Comments
 (0)