tools/bpf: Sync kernel btf.h header
PATCH 1/1 tools/bpf: Sync kernel btf.h header
For the fix of BTF_INT_OFFSET()
Signed-off-by Gary Lin <[email protected]>
--- tools/include/uapi/linux/btf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/include/uapi/linux/btf.h +1 -1
@@ -83,7 +83,7 @@ struct btf_type {* is the 32 bits arrangement: */ #define BTF_INT_ENCODING (VAL ) (((VAL) & 0x0f000000) >> 24) -#define BTF_INT_OFFSET (VAL ) (((VAL & 0x00ff0000)) >> 16) +#define BTF_INT_OFFSET (VAL ) (((VAL) & 0x00ff0000) >> 16)#define BTF_INT_BITS (VAL ) ((VAL) & 0x000000ff)/* Attributes stored in the BTF_INT_ENCODING */
Signature · 1 line
2.21.0
Quoted 4 lines · Gary Lin
For the fix of
BTF_INT_OFFSET()Signed-off-by Gary Lin <[email protected]>
Thanks!
Acked-by Andrii Nakryiko <[email protected]>
Quoted 20 lines
--- tools/include/uapi/linux/btf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/include/uapi/linux/btf.h +1
-2@@ -83,7 +83,7 @@ struct btf_type {* is the 32 bits arrangement: */ #define BTF_INT_ENCODING (VAL ) (((VAL) & 0x0f000000) >> 24) -#define BTF_INT_OFFSET (VAL ) (((VAL & 0x00ff0000)) >> 16) +#define BTF_INT_OFFSET (VAL ) (((VAL) & 0x00ff0000) >> 16)#define BTF_INT_BITS (VAL ) ((VAL) & 0x000000ff)/* Attributes stored in the BTF_INT_ENCODING */ --2.21.0
Daniel Borkmann
maintainerQuoted 3 lines · Gary Lin
For the fix of
BTF_INT_OFFSET()Signed-off-by Gary Lin <[email protected]>
Both applied, thanks!