WARNING: line length of 97 exceeds 80 columns #30: FILE: tools/lib/bpf/btf.c:32: +/* Describe how kinds are laid out; some have a singular element following the "struct btf_type", WARNING: line length of 99 exceeds 80 columns #31: FILE: tools/lib/bpf/btf.c:33: + * some have BTF_INFO_VLEN(t->info) elements. Specify sizes for both. Flags are currently unused. WARNING: line length of 90 exceeds 80 columns #32: FILE: tools/lib/bpf/btf.c:34: + * Kind layout can be optionally added to the BTF representation in a dedicated section to WARNING: line length of 104 exceeds 80 columns #36: FILE: tools/lib/bpf/btf.c:38: +/* singular element size vlen element(s) size flags */ WARNING: line length of 100 exceeds 80 columns #37: FILE: tools/lib/bpf/btf.c:39: +[BTF_KIND_UNKN] = { 0, 0, 0 }, WARNING: line length of 100 exceeds 80 columns #38: FILE: tools/lib/bpf/btf.c:40: +[BTF_KIND_INT] = { sizeof(__u32), 0, 0 }, WARNING: line length of 100 exceeds 80 columns #39: FILE: tools/lib/bpf/btf.c:41: +[BTF_KIND_PTR] = { 0, 0, 0 }, WARNING: line length of 100 exceeds 80 columns #40: FILE: tools/lib/bpf/btf.c:42: +[BTF_KIND_ARRAY] = { sizeof(struct btf_array), 0, 0 }, WARNING: line length of 100 exceeds 80 columns #41: FILE: tools/lib/bpf/btf.c:43: +[BTF_KIND_STRUCT] = { 0, sizeof(struct btf_member), 0 }, WARNING: line length of 100 exceeds 80 columns #42: FILE: tools/lib/bpf/btf.c:44: +[BTF_KIND_UNION] = { 0, sizeof(struct btf_member), 0 }, WARNING: line length of 100 exceeds 80 columns #43: FILE: tools/lib/bpf/btf.c:45: +[BTF_KIND_ENUM] = { 0, sizeof(struct btf_enum), 0 }, WARNING: line length of 100 exceeds 80 columns #44: FILE: tools/lib/bpf/btf.c:46: +[BTF_KIND_FWD] = { 0, 0, 0 }, WARNING: line length of 100 exceeds 80 columns #45: FILE: tools/lib/bpf/btf.c:47: +[BTF_KIND_TYPEDEF] = { 0, 0, 0 }, WARNING: line length of 100 exceeds 80 columns #46: FILE: tools/lib/bpf/btf.c:48: +[BTF_KIND_VOLATILE] = { 0, 0, 0 }, WARNING: line length of 100 exceeds 80 columns #47: FILE: tools/lib/bpf/btf.c:49: +[BTF_KIND_CONST] = { 0, 0, 0 }, WARNING: line length of 100 exceeds 80 columns #48: FILE: tools/lib/bpf/btf.c:50: +[BTF_KIND_RESTRICT] = { 0, 0, 0 }, WARNING: line length of 100 exceeds 80 columns #49: FILE: tools/lib/bpf/btf.c:51: +[BTF_KIND_FUNC] = { 0, 0, 0 }, WARNING: line length of 100 exceeds 80 columns #50: FILE: tools/lib/bpf/btf.c:52: +[BTF_KIND_FUNC_PROTO] = { 0, sizeof(struct btf_param), 0 }, WARNING: line length of 100 exceeds 80 columns #51: FILE: tools/lib/bpf/btf.c:53: +[BTF_KIND_VAR] = { sizeof(struct btf_var), 0, 0 }, WARNING: line length of 100 exceeds 80 columns #52: FILE: tools/lib/bpf/btf.c:54: +[BTF_KIND_DATASEC] = { 0, sizeof(struct btf_var_secinfo), 0 }, WARNING: line length of 100 exceeds 80 columns #53: FILE: tools/lib/bpf/btf.c:55: +[BTF_KIND_FLOAT] = { 0, 0, 0 }, WARNING: line length of 100 exceeds 80 columns #54: FILE: tools/lib/bpf/btf.c:56: +[BTF_KIND_DECL_TAG] = { sizeof(struct btf_decl_tag), 0, 0 }, WARNING: line length of 100 exceeds 80 columns #55: FILE: tools/lib/bpf/btf.c:57: +[BTF_KIND_TYPE_TAG] = { 0, 0, 0 }, WARNING: line length of 100 exceeds 80 columns #56: FILE: tools/lib/bpf/btf.c:58: +[BTF_KIND_ENUM64] = { 0, sizeof(struct btf_enum64), 0 }, CHECK: Please use a blank line after function/struct/union/enum declarations #142: FILE: tools/lib/bpf/btf.h:118: +}; +#define btf_new_opts__last_field add_layout total: 0 errors, 24 warnings, 1 checks, 129 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. Commit bd6719557651 ("libbpf: Add layout encoding support") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE FILE_PATH_CHANGES GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. total: 0 errors, 24 warnings, 1 checks, 129 lines checked