WARNING: line length of 116 exceeds 80 columns #39: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c:48: +SEC("syscall") __retval(USER_PTR_ERR)int test_strcasestr_null1(void *ctx) { return bpf_strcasestr(NULL, "hello"); } WARNING: line length of 116 exceeds 80 columns #40: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c:49: +SEC("syscall") __retval(USER_PTR_ERR)int test_strcasestr_null2(void *ctx) { return bpf_strcasestr("hello", NULL); } WARNING: line length of 121 exceeds 80 columns #43: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c:52: +SEC("syscall") __retval(USER_PTR_ERR)int test_strncasestr_null1(void *ctx) { return bpf_strncasestr(NULL, "hello", 1); } WARNING: line length of 121 exceeds 80 columns #44: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c:53: +SEC("syscall") __retval(USER_PTR_ERR)int test_strncasestr_null2(void *ctx) { return bpf_strncasestr("hello", NULL, 1); } WARNING: line length of 124 exceeds 80 columns #52: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c:72: +SEC("syscall") __retval(USER_PTR_ERR) int test_strcasestr_user_ptr1(void *ctx) { return bpf_strcasestr(user_ptr, "hello"); } WARNING: line length of 124 exceeds 80 columns #53: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c:73: +SEC("syscall") __retval(USER_PTR_ERR) int test_strcasestr_user_ptr2(void *ctx) { return bpf_strcasestr("hello", user_ptr); } WARNING: line length of 129 exceeds 80 columns #56: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c:76: +SEC("syscall") __retval(USER_PTR_ERR) int test_strncasestr_user_ptr1(void *ctx) { return bpf_strncasestr(user_ptr, "hello", 1); } WARNING: line length of 129 exceeds 80 columns #57: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c:77: +SEC("syscall") __retval(USER_PTR_ERR) int test_strncasestr_user_ptr2(void *ctx) { return bpf_strncasestr("hello", user_ptr, 1); } WARNING: line length of 128 exceeds 80 columns #65: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c:98: +SEC("syscall") __retval(-EFAULT) int test_strcasestr_pagefault1(void *ctx) { return bpf_strcasestr(invalid_kern_ptr, "hello"); } WARNING: line length of 128 exceeds 80 columns #66: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c:99: +SEC("syscall") __retval(-EFAULT) int test_strcasestr_pagefault2(void *ctx) { return bpf_strcasestr("hello", invalid_kern_ptr); } WARNING: line length of 133 exceeds 80 columns #69: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c:102: +SEC("syscall") __retval(-EFAULT) int test_strncasestr_pagefault1(void *ctx) { return bpf_strncasestr(invalid_kern_ptr, "hello", 1); } WARNING: line length of 133 exceeds 80 columns #70: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c:103: +SEC("syscall") __retval(-EFAULT) int test_strncasestr_pagefault2(void *ctx) { return bpf_strncasestr("hello", invalid_kern_ptr, 1); } WARNING: line length of 100 exceeds 80 columns #81: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_failure2.c:22: +SEC("syscall") int test_strcasestr_too_long(void *ctx) { return bpf_strcasestr(long_str, "hello"); } WARNING: line length of 120 exceeds 80 columns #83: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_failure2.c:24: +SEC("syscall") int test_strncasestr_too_long(void *ctx) { return bpf_strncasestr(long_str, "hello", sizeof(long_str)); } WARNING: line length of 88 exceeds 80 columns #94: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_success.c:36: +__test(6) int test_strcasestr_found1(void *ctx) { return bpf_strcasestr(str, "world"); } WARNING: line length of 88 exceeds 80 columns #95: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_success.c:37: +__test(6) int test_strcasestr_found2(void *ctx) { return bpf_strcasestr(str, "WORLD"); } WARNING: line length of 93 exceeds 80 columns #97: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_success.c:39: +__test(-ENOENT) int test_strcasestr_notfound(void *ctx) { return bpf_strcasestr(str, "hi"); } WARNING: line length of 82 exceeds 80 columns #99: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_success.c:41: +__test(0) int test_strcasestr_empty(void *ctx) { return bpf_strcasestr(str, ""); } WARNING: line length of 87 exceeds 80 columns #107: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_success.c:49: +__test(0) int test_strncasestr_found1(void *ctx) { return bpf_strncasestr("", "", 0); } WARNING: line length of 93 exceeds 80 columns #108: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_success.c:50: +__test(0) int test_strncasestr_found2(void *ctx) { return bpf_strncasestr(str, "hello", 5); } WARNING: line length of 93 exceeds 80 columns #109: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_success.c:51: +__test(0) int test_strncasestr_found3(void *ctx) { return bpf_strncasestr(str, "hello", 6); } WARNING: line length of 93 exceeds 80 columns #110: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_success.c:52: +__test(0) int test_strncasestr_found4(void *ctx) { return bpf_strncasestr(str, "HELLO", 5); } WARNING: line length of 93 exceeds 80 columns #111: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_success.c:53: +__test(0) int test_strncasestr_found5(void *ctx) { return bpf_strncasestr(str, "HELLO", 6); } WARNING: line length of 100 exceeds 80 columns #112: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_success.c:54: +__test(-ENOENT) int test_strncasestr_notfound1(void *ctx) { return bpf_strncasestr(str, "hi", 10); } WARNING: line length of 102 exceeds 80 columns #113: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_success.c:55: +__test(-ENOENT) int test_strncasestr_notfound2(void *ctx) { return bpf_strncasestr(str, "hello", 4); } WARNING: line length of 97 exceeds 80 columns #114: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_success.c:56: +__test(-ENOENT) int test_strncasestr_notfound3(void *ctx) { return bpf_strncasestr("", "a", 0); } WARNING: line length of 87 exceeds 80 columns #115: FILE: tools/testing/selftests/bpf/progs/string_kfuncs_success.c:57: +__test(0) int test_strncasestr_empty(void *ctx) { return bpf_strncasestr(str, "", 1); } total: 0 errors, 27 warnings, 0 checks, 78 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 c2a38254b559 ("selftests/bpf: Test bpf_strcasestr,bpf_strncasestr kfuncs") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE FILE_PATH_CHANGES 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, 27 warnings, 0 checks, 78 lines checked