CHECK: Prefer using the BIT macro #51: FILE: kernel/bpf/trampoline.c:34: +#define TRAMPOLINE_LOCKS_TABLE_SIZE (1 << TRAMPOLINE_LOCKS_BITS) CHECK: struct mutex definition without comment #54: FILE: kernel/bpf/trampoline.c:37: + struct mutex mutex; WARNING: line length of 81 exceeds 80 columns #60: FILE: kernel/bpf/trampoline.c:43: + return &trampoline_locks[hash_64((u64) tr, TRAMPOLINE_LOCKS_BITS)].mutex; CHECK: No space is necessary after a cast #60: FILE: kernel/bpf/trampoline.c:43: + return &trampoline_locks[hash_64((u64) tr, TRAMPOLINE_LOCKS_BITS)].mutex; WARNING: line length of 82 exceeds 80 columns #78: FILE: kernel/bpf/trampoline.c:61: + sizeof(trampoline_locks[0]), GFP_KERNEL); WARNING: line length of 90 exceeds 80 columns #84: FILE: kernel/bpf/trampoline.c:67: + mutex_init_with_key(&trampoline_locks[i].mutex, &trampoline_locks[i].key); total: 0 errors, 3 warnings, 3 checks, 177 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 18910c08210e ("bpf: Use mutex lock pool for bpf trampolines") 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, 3 warnings, 3 checks, 177 lines checked