WARNING: Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst #74: FILE: tools/testing/selftests/bpf/progs/set_global_vars.c:35: + volatile struct { WARNING: Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst #77: FILE: tools/testing/selftests/bpf/progs/set_global_vars.c:38: + const volatile __u8 var_u8; WARNING: Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst #78: FILE: tools/testing/selftests/bpf/progs/set_global_vars.c:39: + const volatile __s16 filler3; WARNING: Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst #85: FILE: tools/testing/selftests/bpf/progs/set_global_vars.c:46: +const volatile __u32 stru = 0; /* same prefix as below */ WARNING: Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst #86: FILE: tools/testing/selftests/bpf/progs/set_global_vars.c:47: +const volatile struct Struct struct1 = {.struct2 = {.u = {.var_u8 = 1}}}; WARNING: Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst #102: FILE: tools/testing/selftests/bpf/progs/set_global_vars.c:63: +const volatile union Union union1 = {.var_u16 = -1}; WARNING: line length of 86 exceeds 80 columns #149: FILE: tools/testing/selftests/bpf/veristat.c:1513: + const char *name = btf__name_by_offset(btf, member->name_off); WARNING: line length of 84 exceeds 80 columns #152: FILE: tools/testing/selftests/bpf/veristat.c:1516: + if (btf_member_bitfield_size(parent_type, i) != 0) { WARNING: line length of 98 exceeds 80 columns #153: FILE: tools/testing/selftests/bpf/veristat.c:1517: + fprintf(stderr, "Bitfield presets are not supported %s\n", WARNING: line length of 95 exceeds 80 columns #164: FILE: tools/testing/selftests/bpf/veristat.c:1528: + err = btf_find_member(btf, member_type, parent_offset + member->offset, WARNING: line length of 86 exceeds 80 columns #165: FILE: tools/testing/selftests/bpf/veristat.c:1529: + member_name, member_tid, member_offset); WARNING: line length of 92 exceeds 80 columns #188: FILE: tools/testing/selftests/bpf/veristat.c:1552: + err = btf_find_member(btf, base_type, 0, name, &member_tid, &member_offset); WARNING: line length of 97 exceeds 80 columns #190: FILE: tools/testing/selftests/bpf/veristat.c:1554: + fprintf(stderr, "Could not find member %s for variable %s\n", name, var); WARNING: line length of 85 exceeds 80 columns #223: FILE: tools/testing/selftests/bpf/veristat.c:1610: + btf__name_by_offset(btf, base_type->name_off), value, WARNING: line length of 87 exceeds 80 columns #243: FILE: tools/testing/selftests/bpf/veristat.c:1674: + if (strncmp(var_name, presets[k].name, var_len) != 0 || WARNING: line length of 86 exceeds 80 columns #255: FILE: tools/testing/selftests/bpf/veristat.c:1686: + &tmp_sinfo, presets[k].name); WARNING: line length of 93 exceeds 80 columns #260: FILE: tools/testing/selftests/bpf/veristat.c:1690: + err = set_global_var(obj, btf, map, &tmp_sinfo, presets + k); total: 0 errors, 17 warnings, 0 checks, 220 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 0162fdfc3632 ("selftests/bpf: support struct/union 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, 17 warnings, 0 checks, 220 lines checked