Skip to content

Commit 66df0fd

Browse files
Haiyue Wanganakryiko
authored andcommitted
bpf: Correct the comment for BTF kind bitfield
The commit 8fd8869 ("bpf: Add BTF_KIND_FLOAT to uapi") has extended the BTF kind bitfield from 4 to 5 bits, correct the comment. Signed-off-by: Haiyue Wang <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 9bbad6d commit 66df0fd

File tree

2 files changed

+4
-4
lines changed
  • include/uapi/linux
  • tools/include/uapi/linux

2 files changed

+4
-4
lines changed

include/uapi/linux/btf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ struct btf_type {
3333
/* "info" bits arrangement
3434
* bits 0-15: vlen (e.g. # of struct's members)
3535
* bits 16-23: unused
36-
* bits 24-27: kind (e.g. int, ptr, array...etc)
37-
* bits 28-30: unused
36+
* bits 24-28: kind (e.g. int, ptr, array...etc)
37+
* bits 29-30: unused
3838
* bit 31: kind_flag, currently used by
3939
* struct, union and fwd
4040
*/

tools/include/uapi/linux/btf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ struct btf_type {
3333
/* "info" bits arrangement
3434
* bits 0-15: vlen (e.g. # of struct's members)
3535
* bits 16-23: unused
36-
* bits 24-27: kind (e.g. int, ptr, array...etc)
37-
* bits 28-30: unused
36+
* bits 24-28: kind (e.g. int, ptr, array...etc)
37+
* bits 29-30: unused
3838
* bit 31: kind_flag, currently used by
3939
* struct, union and fwd
4040
*/

0 commit comments

Comments
 (0)