WARNING: line length of 125 exceeds 80 columns #81: FILE: tools/testing/selftests/bpf/veristat.c:261: + { "set-global-vars", 'G', "GLOBAL", 0, "Set global variables provided in the expression, for example \"var1 = 1\"" }, WARNING: line length of 86 exceeds 80 columns #88: FILE: tools/testing/selftests/bpf/veristat.c:268: +static int append_var_preset(struct var_preset **presets, int *cnt, const char *expr); WARNING: line length of 96 exceeds 80 columns #100: FILE: tools/testing/selftests/bpf/veristat.c:384: + fprintf(stderr, "Could not parse global variables preset: %s\n", WARNING: line length of 81 exceeds 80 columns #104: FILE: tools/testing/selftests/bpf/veristat.c:388: + } else if (append_var_preset(&env.presets, &env.npresets, arg)) { WARNING: line length of 94 exceeds 80 columns #105: FILE: tools/testing/selftests/bpf/veristat.c:389: + fprintf(stderr, "Could not parse global variables preset: %s\n", arg); WARNING: line length of 93 exceeds 80 columns #118: FILE: tools/testing/selftests/bpf/veristat.c:663: + fprintf(stderr, "Failed to open filters in '%s': %s\n", path, strerror(err)); WARNING: line length of 85 exceeds 80 columns #126: FILE: tools/testing/selftests/bpf/veristat.c:1323: +static int append_var_preset(struct var_preset **presets, int *cnt, const char *expr) WARNING: line length of 97 exceeds 80 columns #192: FILE: tools/testing/selftests/bpf/veristat.c:1389: + fprintf(stderr, "Failed to open presets in '%s': %s\n", filename, strerror(err)); WARNING: line length of 85 exceeds 80 columns #227: FILE: tools/testing/selftests/bpf/veristat.c:1424: + const char *cur_name = btf__name_by_offset(btf, e->name_off); WARNING: line length of 85 exceeds 80 columns #239: FILE: tools/testing/selftests/bpf/veristat.c:1436: + const char *cur_name = btf__name_by_offset(btf, e->name_off); WARNING: line length of 92 exceeds 80 columns #256: FILE: tools/testing/selftests/bpf/veristat.c:1453: +static int set_global_var(struct bpf_object *obj, struct btf *btf, const struct btf_type *t, WARNING: line length of 96 exceeds 80 columns #278: FILE: tools/testing/selftests/bpf/veristat.c:1475: + if (enum_value_from_name(btf, base_type, preset->svalue, &value) != 0) { WARNING: line length of 82 exceeds 80 columns #285: FILE: tools/testing/selftests/bpf/veristat.c:1482: + fprintf(stderr, "Value %s is not supported for type %s\n", WARNING: line length of 95 exceeds 80 columns #286: FILE: tools/testing/selftests/bpf/veristat.c:1483: + preset->svalue, btf__name_by_offset(btf, base_type->name_off)); WARNING: line length of 86 exceeds 80 columns #315: FILE: tools/testing/selftests/bpf/veristat.c:1512: + memcpy(ptr + sinfo->offset, (void *)&value + src_offset, sinfo->size); WARNING: line length of 92 exceeds 80 columns #320: FILE: tools/testing/selftests/bpf/veristat.c:1517: +static int set_global_vars(struct bpf_object *obj, struct var_preset *presets, int npresets) WARNING: line length of 92 exceeds 80 columns #351: FILE: tools/testing/selftests/bpf/veristat.c:1548: + const struct btf_type *var_type = btf__type_by_id(btf, sinfo->type); WARNING: line length of 92 exceeds 80 columns #364: FILE: tools/testing/selftests/bpf/veristat.c:1561: + fprintf(stderr, "Variable %s is set more than once", WARNING: line length of 98 exceeds 80 columns #369: FILE: tools/testing/selftests/bpf/veristat.c:1566: + err = set_global_var(obj, btf, var_type, map, sinfo, presets + k); WARNING: line length of 91 exceeds 80 columns #380: FILE: tools/testing/selftests/bpf/veristat.c:1577: + fprintf(stderr, "Global variable preset %s has not been applied\n", WARNING: line length of 84 exceeds 80 columns #397: FILE: tools/testing/selftests/bpf/veristat.c:1636: + fprintf(stderr, "Failed to set global variables %d\n", err); WARNING: line length of 84 exceeds 80 columns #409: FILE: tools/testing/selftests/bpf/veristat.c:1655: + fprintf(stderr, "Failed to set global variables %d\n", err); total: 0 errors, 22 warnings, 0 checks, 368 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 486ac971cba1 ("selftests/bpf: implement setting global variables 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, 22 warnings, 0 checks, 368 lines checked