diff options
author | Gary Lin <glin@suse.com> | 2019-05-13 17:45:48 +0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-05-14 10:05:18 +0200 |
commit | 948dc8c99a22d6bdcb34c194cde392e1a125928a (patch) | |
tree | b045fe3fcfe394c8b0705741aeeba7b17030ad4a /include/uapi | |
parent | cabede8b4f2b746232aa25730a0b752de1cb82ca (diff) |
bpf: btf: fix the brackets of BTF_INT_OFFSET()
'VAL' should be protected by the brackets.
v2:
* Squash the fix for Documentation/bpf/btf.rst
Fixes: 69b693f0aefa ("bpf: btf: Introduce BPF Type Format (BTF)")
Signed-off-by: Gary Lin <glin@suse.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/btf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/btf.h b/include/uapi/linux/btf.h index 9310652ca4f9..63ae4a39e58b 100644 --- a/include/uapi/linux/btf.h +++ b/include/uapi/linux/btf.h @@ -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 */ |