CHECK: Prefer using the BIT macro #60: FILE: kernel/bpf/trampoline.c:39: +#define TRAMPOLINE_LOCKS_TABLE_SIZE (1 << TRAMPOLINE_LOCKS_BITS) CHECK: struct mutex definition without comment #63: FILE: kernel/bpf/trampoline.c:42: + struct mutex mutex; WARNING: line length of 92 exceeds 80 columns #69: FILE: kernel/bpf/trampoline.c:48: + return &trampoline_locks[hash_64((u64)(uintptr_t) tr, TRAMPOLINE_LOCKS_BITS)].mutex; CHECK: No space is necessary after a cast #69: FILE: kernel/bpf/trampoline.c:48: + return &trampoline_locks[hash_64((u64)(uintptr_t) tr, TRAMPOLINE_LOCKS_BITS)].mutex; WARNING: line length of 93 exceeds 80 columns #102: FILE: kernel/bpf/trampoline.c:122: + * select_trampoline_lock(tr) => direct_mutex (ftrace.c) => ftrace_lock (ftrace.c) WARNING: line length of 88 exceeds 80 columns #112: FILE: kernel/bpf/trampoline.c:130: + * mutex_trylock(select_trampoline_lock(tr)) to avoid deadlock in race condition WARNING: line length of 86 exceeds 80 columns #119: FILE: kernel/bpf/trampoline.c:134: + /* sleep 1 ms to make sure whatever holding select_trampoline_lock(tr) WARNING: line length of 102 exceeds 80 columns #242: FILE: kernel/bpf/trampoline.c:1410: + __mutex_init(&trampoline_locks[i].mutex, "trampoline_lock", &trampoline_locks[i].key); total: 0 errors, 5 warnings, 3 checks, 190 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 40877133537e ("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, 5 warnings, 3 checks, 190 lines checked