WARNING: Missing a blank line after declarations #69: FILE: tools/testing/selftests/bpf/prog_tests/file_reader.c:42: + char data[256]; + LIBBPF_OPTS(bpf_test_run_opts, opts, .data_in = &data, .repeat = 1, WARNING: Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst #173: FILE: tools/testing/selftests/bpf/progs/file_reader.c:59: +volatile const __u32 user_buf_sz; WARNING: Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst #174: FILE: tools/testing/selftests/bpf/progs/file_reader.c:60: +volatile const __s32 test_type = -1; WARNING: line length of 89 exceeds 80 columns #176: FILE: tools/testing/selftests/bpf/progs/file_reader.c:62: +static int process_vma(struct task_struct *task, struct vm_area_struct *vma, void *data); WARNING: line length of 90 exceeds 80 columns #193: FILE: tools/testing/selftests/bpf/progs/file_reader.c:79: + bpf_task_work_schedule_signal(task, &work->tw, &arrmap, task_work_callback, NULL); WARNING: line length of 88 exceeds 80 columns #205: FILE: tools/testing/selftests/bpf/progs/file_reader.c:91: +static int process_vma(struct task_struct *task, struct vm_area_struct *vma, void *data) WARNING: line length of 91 exceeds 80 columns #245: FILE: tools/testing/selftests/bpf/progs/file_reader.c:131: + /* Verify file contents read from BPF is the same as the one read from userspace */ WARNING: line length of 99 exceeds 80 columns #313: FILE: tools/testing/selftests/bpf/progs/file_reader.c:199: + err = bpf_dynptr_read(&tmp, sizeof(Elf64_Shdr), &dynptr, e_shoff + e_shentsize * i, WARNING: line length of 81 exceeds 80 columns #318: FILE: tools/testing/selftests/bpf/progs/file_reader.c:204: + string = bpf_dynptr_slice(&dynptr, off + tmp.sh_name, buf, slen); WARNING: line length of 97 exceeds 80 columns #338: FILE: tools/testing/selftests/bpf/progs/file_reader.c:224: + symbol = bpf_dynptr_slice(&dynptr, symtab.sh_offset + sizeof(Elf64_Sym) * i, buf, WARNING: line length of 86 exceeds 80 columns #342: FILE: tools/testing/selftests/bpf/progs/file_reader.c:228: + if (symbol->st_name == 0 || ELF64_ST_TYPE(symbol->st_info) != STT_TLS) WARNING: line length of 98 exceeds 80 columns #344: FILE: tools/testing/selftests/bpf/progs/file_reader.c:230: + string = bpf_dynptr_slice(&dynptr, strtab.sh_offset + symbol->st_name, buf, slen); WARNING: line length of 92 exceeds 80 columns #378: FILE: tools/testing/selftests/bpf/progs/file_reader_fail.c:17: +static long process_vma_unreleased_ref(struct task_struct *task, struct vm_area_struct *vma, WARNING: line length of 86 exceeds 80 columns #391: FILE: tools/testing/selftests/bpf/progs/file_reader_fail.c:30: +__failure __msg("Unreleased reference id=") int on_nanosleep_unreleased_ref(void *ctx) WARNING: line length of 89 exceeds 80 columns #395: FILE: tools/testing/selftests/bpf/progs/file_reader_fail.c:34: + bpf_find_vma(task, (unsigned long)user_ptr, process_vma_unreleased_ref, NULL, 0); total: 0 errors, 15 warnings, 0 checks, 379 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 80bc9c0de15b ("selftests/bpf: add file dynptr tests") 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, 15 warnings, 0 checks, 379 lines checked