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))) WARNING: line length of 92 exceeds 80 columns #126: FILE: tools/testing/selftests/bpf/test_loader.c:122: +static int push_msg(const char *substr, const char *regex_str, struct test_subspec *subspec) WARNING: line length of 81 exceeds 80 columns #135: FILE: tools/testing/selftests/bpf/test_loader.c:130: + (1 + subspec->expect_msg_cnt) * sizeof(struct expect_msg)); WARNING: line length of 88 exceeds 80 columns #151: FILE: tools/testing/selftests/bpf/test_loader.c:145: + regcomp_res = regcomp(&msg->regex, regex_str, REG_EXTENDED|REG_NEWLINE); CHECK: spaces preferred around that '|' (ctx:VxV) #151: FILE: tools/testing/selftests/bpf/test_loader.c:145: + regcomp_res = regcomp(&msg->regex, regex_str, REG_EXTENDED|REG_NEWLINE); ^ WARNING: line length of 89 exceeds 80 columns #153: FILE: tools/testing/selftests/bpf/test_loader.c:147: + regerror(regcomp_res, &msg->regex, error_msg, sizeof(error_msg)); WARNING: line length of 84 exceeds 80 columns #196: FILE: tools/testing/selftests/bpf/test_loader.c:392: + struct expect_msg *msg = &spec->priv.expect_msgs[i]; WARNING: line length of 91 exceeds 80 columns #203: FILE: tools/testing/selftests/bpf/test_loader.c:394: + err = push_msg(msg->substr, msg->regex_str, &spec->unpriv); WARNING: line length of 94 exceeds 80 columns #229: FILE: tools/testing/selftests/bpf/test_loader.c:461: + match = strstr(tester->log_buf + tester->next_match_pos, msg->substr); WARNING: line length of 85 exceeds 80 columns #235: FILE: tools/testing/selftests/bpf/test_loader.c:467: + tester->log_buf + tester->next_match_pos, CHECK: Alignment should match open parenthesis #235: FILE: tools/testing/selftests/bpf/test_loader.c:467: + err = regexec(&msg->regex, + tester->log_buf + tester->next_match_pos, CHECK: braces {} should be used on all arms of this statement #237: FILE: tools/testing/selftests/bpf/test_loader.c:469: + if (err == 0) { [...] + } else [...] CHECK: Unbalanced braces around else statement #241: FILE: tools/testing/selftests/bpf/test_loader.c:473: + } else total: 0 errors, 10 warnings, 4 checks, 227 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 4f3c56c8ce9a ("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, 10 warnings, 4 checks, 227 lines checked