Skip to content

Commit 2474c62

Browse files
lcpborkmann
authored andcommitted
tools/bpf: Sync kernel btf.h header
For the fix of BTF_INT_OFFSET(). Signed-off-by: Gary Lin <glin@suse.com> Acked-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
1 parent 948dc8c commit 2474c62

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
@@ -83,7 +83,7 @@ struct btf_type {
8383
* is the 32 bits arrangement:
8484
*/
8585
#define BTF_INT_ENCODING(VAL) (((VAL) & 0x0f000000) >> 24)
86-
#define BTF_INT_OFFSET(VAL) (((VAL & 0x00ff0000)) >> 16)
86+
#define BTF_INT_OFFSET(VAL) (((VAL) & 0x00ff0000) >> 16)
8787
#define BTF_INT_BITS(VAL) ((VAL) & 0x000000ff)
8888

8989
/* Attributes stored in the BTF_INT_ENCODING */

0 commit comments

Comments
 (0)