WARNING: line length of 81 exceeds 80 columns #95: FILE: tools/testing/selftests/bpf/veristat.c:229: +#define log_errno(fmt, ...) log_errno_aux(__FILE__, __LINE__, fmt, ##__VA_ARGS__) WARNING: line length of 86 exceeds 80 columns #174: FILE: tools/testing/selftests/bpf/veristat.c:1337: +static int scanf_one_line(const char *file, int fields_expected, const char *fmt, ...) WARNING: Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst #212: FILE: tools/testing/selftests/bpf/veristat.c:1375: +static int snprintf_trunc(char *str, volatile size_t size, const char *fmt, ...) WARNING: line length of 85 exceeds 80 columns #231: FILE: tools/testing/selftests/bpf/veristat.c:1394: + snprintf_trunc(buf, sizeof(buf), "%s/cgroup.procs", env.orig_cgroup); WARNING: line length of 90 exceeds 80 columns #234: FILE: tools/testing/selftests/bpf/veristat.c:1397: + log_errno("moving self to original cgroup %s\n", env.orig_cgroup); WARNING: line length of 90 exceeds 80 columns #263: FILE: tools/testing/selftests/bpf/veristat.c:1426: + err = scanf_one_line("/proc/self/mounts", 2, "%*s %" STR(PATH_MAX) "s cgroup2 %s", WARNING: line length of 81 exceeds 80 columns #269: FILE: tools/testing/selftests/bpf/veristat.c:1432: + fprintf(stderr, "Can't find cgroupfs v2 mount point.\n"); WARNING: line length of 84 exceeds 80 columns #274: FILE: tools/testing/selftests/bpf/veristat.c:1437: + err = scanf_one_line("/proc/self/cgroup", 1, "0::%" STR(PATH_MAX) "s", buf); WARNING: line length of 96 exceeds 80 columns #283: FILE: tools/testing/selftests/bpf/veristat.c:1446: + snprintf_trunc(env.orig_cgroup, sizeof(env.orig_cgroup), "%s/%s", cgroup_fs_mount, buf); WARNING: line length of 97 exceeds 80 columns #285: FILE: tools/testing/selftests/bpf/veristat.c:1448: + snprintf_trunc(buf, sizeof(buf), "%s/veristat-accounting-%d", cgroup_fs_mount, getpid()); WARNING: Prefer strscpy over strcpy - see: https://github.com/KSPP/linux/issues/88 #291: FILE: tools/testing/selftests/bpf/veristat.c:1454: + strcpy(env.stat_cgroup, buf); WARNING: line length of 81 exceeds 80 columns #390: FILE: tools/testing/selftests/bpf/veristat.c:1589: + stats->stats[MEMORY_PEAK] = mem_peak < 0 ? -1 : mem_peak / (1024 * 1024); total: 0 errors, 12 warnings, 0 checks, 374 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 0ab0830b6a08 ("veristat: memory accounting for bpf programs") 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, 12 warnings, 0 checks, 374 lines checked