WARNING: line length of 87 exceeds 80 columns #24: FILE: tools/testing/selftests/bpf/bpf_arena_common.h:49: +int bpf_arena_guard_pages(void *map, void __arena *addr, __u32 page_cnt) __ksym __weak; WARNING: line length of 84 exceeds 80 columns #27: FILE: tools/testing/selftests/bpf/bpf_arena_common.h:52: +#define arena_base(map) ((void __arena *)((struct bpf_arena *)(map))->user_vm_start) WARNING: line length of 81 exceeds 80 columns #64: FILE: tools/testing/selftests/bpf/progs/verifier_arena.c:141: + /* Try to implicitly allocate the page (since there's only 2 of them). */ WARNING: line length of 98 exceeds 80 columns #157: FILE: tools/testing/selftests/bpf/progs/verifier_arena_large.c:70: +/* Try to access a guarded page. Behavior should be identical with accessing unallocated pages. */ WARNING: Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst #163: FILE: tools/testing/selftests/bpf/progs/verifier_arena_large.c:76: + volatile char __arena *page; CHECK: multiple assignments should be avoided #169: FILE: tools/testing/selftests/bpf/progs/verifier_arena_large.c:82: + page = base = arena_base(&arena) + 16384 * PAGE_SIZE; WARNING: Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst #180: FILE: tools/testing/selftests/bpf/progs/verifier_arena_large.c:93: + page = (volatile char __arena *)(base + i * PAGE_SIZE); WARNING: Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst #202: FILE: tools/testing/selftests/bpf/progs/verifier_arena_large.c:115: + volatile char __arena *page; CHECK: multiple assignments should be avoided #207: FILE: tools/testing/selftests/bpf/progs/verifier_arena_large.c:120: + page = base = arena_base(&arena) + 4096 * __PAGE_SIZE; WARNING: line length of 95 exceeds 80 columns #242: FILE: tools/testing/selftests/bpf/progs/verifier_arena_large.c:155: + /* The free pages call above should have failed, so this allocation should fail too. */ WARNING: line length of 89 exceeds 80 columns #243: FILE: tools/testing/selftests/bpf/progs/verifier_arena_large.c:156: + page = bpf_arena_alloc_pages(&arena, addr + 3 * __PAGE_SIZE, 1, NUMA_NO_NODE, 0); total: 0 errors, 9 warnings, 2 checks, 222 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 2e773822d8bf ("selftests/bpf: add selftests for bpf_arena_guard_pages") 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, 9 warnings, 2 checks, 222 lines checked