WARNING: line length of 84 exceeds 80 columns #44: FILE: tools/testing/selftests/bpf/veristat.c:1639: +static int append_preset_atom(struct var_preset *preset, char *value, bool is_index) WARNING: line length of 85 exceeds 80 columns #102: FILE: tools/testing/selftests/bpf/veristat.c:1684: + if (sscanf(name + off, "[%[a-zA-Z0-9_]] %n", var, &n) != 1) { WARNING: line length of 89 exceeds 80 columns #103: FILE: tools/testing/selftests/bpf/veristat.c:1685: + fprintf(stderr, "Can't parse %s as index\n", name + off); WARNING: line length of 95 exceeds 80 columns #117: FILE: tools/testing/selftests/bpf/veristat.c:1710: + if (sscanf(expr, "%[][a-zA-Z0-9_.] = %s %n", var, val, &n) != 2 || n != strlen(expr)) { WARNING: line length of 85 exceeds 80 columns #125: FILE: tools/testing/selftests/bpf/veristat.c:1803: +static int find_enum_value(const struct btf *btf, const char *name, long long *value) WARNING: line length of 90 exceeds 80 columns #146: FILE: tools/testing/selftests/bpf/veristat.c:1824: +static int resolve_rvalue(struct btf *btf, const struct rvalue *rvalue, long long *result) WARNING: line length of 89 exceeds 80 columns #157: FILE: tools/testing/selftests/bpf/veristat.c:1835: + fprintf(stderr, "Can't resolve enum value %s\n", rvalue->svalue); WARNING: line length of 88 exceeds 80 columns #164: FILE: tools/testing/selftests/bpf/veristat.c:1842: +static int adjust_var_secinfo_array(struct btf *btf, int tid, struct var_preset *preset, WARNING: line length of 90 exceeds 80 columns #193: FILE: tools/testing/selftests/bpf/veristat.c:1871: + fprintf(stderr, "Array index %lld is out of bounds [0, %u]: %s\n", WARNING: line length of 96 exceeds 80 columns #222: FILE: tools/testing/selftests/bpf/veristat.c:1897: + fprintf(stderr, "Can't resolve field %s for non-composite type\n", member_name); WARNING: line length of 86 exceeds 80 columns #234: FILE: tools/testing/selftests/bpf/veristat.c:1921: + sinfo->offset += (parent_offset + member->offset) / 8; WARNING: line length of 81 exceeds 80 columns #274: FILE: tools/testing/selftests/bpf/veristat.c:1951: + n = adjust_var_secinfo_array(btf, tid, preset, i, sinfo); WARNING: line length of 95 exceeds 80 columns #279: FILE: tools/testing/selftests/bpf/veristat.c:1956: + err = btf_find_member(btf, base_type, 0, preset->atoms[i].name, sinfo); WARNING: line length of 84 exceeds 80 columns #302: FILE: tools/testing/selftests/bpf/veristat.c:1983: + fprintf(stderr, "Can't set %s. Only ints and enums are supported\n", WARNING: line length of 85 exceeds 80 columns #327: FILE: tools/testing/selftests/bpf/veristat.c:3301: + if (env.presets[i].atoms[j].index.type == ENUMERATOR) WARNING: line length of 83 exceeds 80 columns #328: FILE: tools/testing/selftests/bpf/veristat.c:3302: + free(env.presets[i].atoms[j].index.svalue); total: 0 errors, 16 warnings, 0 checks, 305 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 1ec36d18e9bb ("selftests/bpf: support array presets in veristat") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE 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, 16 warnings, 0 checks, 305 lines checked