WARNING: line length of 97 exceeds 80 columns #53: FILE: tools/testing/selftests/bpf/progs/bpf_misc.h:65: +#define __regex(regex) __attribute__((btf_decl_tag("comment:test_expect_regex=" regex))) WARNING: line length of 104 exceeds 80 columns #58: FILE: tools/testing/selftests/bpf/progs/bpf_misc.h:70: +#define __regex_unpriv(regex) __attribute__((btf_decl_tag("comment:test_expect_regex_unpriv=" regex))) CHECK: Please use a blank line after function/struct/union/enum declarations #94: FILE: tools/testing/selftests/bpf/test_loader.c:56: +}; +struct expect_msg { WARNING: line length of 96 exceeds 80 columns #141: FILE: tools/testing/selftests/bpf/test_loader.c:129: +static int push_msg(const char *match, enum message_type msg_type, struct test_subspec *subspec) WARNING: line length of 81 exceeds 80 columns #150: FILE: tools/testing/selftests/bpf/test_loader.c:137: + (1 + subspec->expect_msg_cnt) * sizeof(struct expect_msg)); WARNING: line length of 89 exceeds 80 columns #168: FILE: tools/testing/selftests/bpf/test_loader.c:153: + regcomp_res = regcomp(&em->regex.regex, match, REG_EXTENDED|REG_NEWLINE); CHECK: spaces preferred around that '|' (ctx:VxV) #168: FILE: tools/testing/selftests/bpf/test_loader.c:153: + regcomp_res = regcomp(&em->regex.regex, match, REG_EXTENDED|REG_NEWLINE); ^ WARNING: line length of 83 exceeds 80 columns #171: FILE: tools/testing/selftests/bpf/test_loader.c:156: + fprintf(stderr, "Regexp compilation error in '%s': '%s'\n", WARNING: line length of 90 exceeds 80 columns #216: FILE: tools/testing/selftests/bpf/test_loader.c:401: + size_t sz = spec->priv.expect_msg_cnt * sizeof(struct expect_msg); WARNING: line length of 92 exceeds 80 columns #223: FILE: tools/testing/selftests/bpf/test_loader.c:405: + PRINT_FAIL("failed to allocate memory for unpriv.expect\n"); WARNING: line length of 83 exceeds 80 columns #228: FILE: tools/testing/selftests/bpf/test_loader.c:409: + memcpy(spec->unpriv.expect_msg, spec->priv.expect_msg, sz); WARNING: line length of 96 exceeds 80 columns #251: FILE: tools/testing/selftests/bpf/test_loader.c:476: + match = strstr(tester->log_buf + tester->next_match_pos, em->substring); WARNING: line length of 97 exceeds 80 columns #252: FILE: tools/testing/selftests/bpf/test_loader.c:477: + tester->next_match_pos = match - tester->log_buf + strlen(em->substring); WARNING: line length of 85 exceeds 80 columns #256: FILE: tools/testing/selftests/bpf/test_loader.c:481: + tester->log_buf + tester->next_match_pos, WARNING: line length of 102 exceeds 80 columns #259: FILE: tools/testing/selftests/bpf/test_loader.c:484: + match = tester->log_buf + tester->next_match_pos + reg_match[0].rm_so; WARNING: line length of 86 exceeds 80 columns #274: FILE: tools/testing/selftests/bpf/test_loader.c:493: + const char *header = (j < i) ? "MATCHED" : "EXPECTED"; WARNING: line length of 81 exceeds 80 columns #275: FILE: tools/testing/selftests/bpf/test_loader.c:494: + struct expect_msg *tmp = &subspec->expect_msg[j]; WARNING: line length of 91 exceeds 80 columns #280: FILE: tools/testing/selftests/bpf/test_loader.c:499: + "%s MSG: '%s'\n", header, tmp->substring); WARNING: line length of 94 exceeds 80 columns #284: FILE: tools/testing/selftests/bpf/test_loader.c:503: + "%s REGEX: '%s'\n", header, tmp->regex.expr); total: 0 errors, 17 warnings, 2 checks, 255 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 536ea910e88e ("selftests/bpf: Support checks against a regular expression.") 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, 2 checks, 255 lines checked