OSDN Git Service

tools/bpf: Sync kernel btf.h header
authorGary Lin <glin@suse.com>
Tue, 14 May 2019 03:15:50 +0000 (11:15 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 14 May 2019 08:06:23 +0000 (10:06 +0200)
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>
tools/include/uapi/linux/btf.h

index 9310652..63ae4a3 100644 (file)
@@ -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 */