WARNING: line length of 93 exceeds 80 columns #58: FILE: include/asm-generic/rqspinlock.h:18: +extern int resilient_queued_spin_lock_slowpath(struct qspinlock *lock, u32 val, u64 timeout); CHECK: extern prototypes should be avoided in .h files #58: FILE: include/asm-generic/rqspinlock.h:18: +extern int resilient_queued_spin_lock_slowpath(struct qspinlock *lock, u32 val, u64 timeout); WARNING: line length of 82 exceeds 80 columns #99: FILE: include/asm-generic/rqspinlock.h:58: + * complicated and we don't have a compelling use case for out of order unlocking. WARNING: memory barrier without comment #109: FILE: include/asm-generic/rqspinlock.h:68: + smp_store_release(&rqh->locks[rqh->cnt - 1], NULL); WARNING: line length of 82 exceeds 80 columns #112: FILE: include/asm-generic/rqspinlock.h:71: + * other CPUs, otherwise we have the issue of a stale non-NULL entry being WARNING: line length of 83 exceeds 80 columns #113: FILE: include/asm-generic/rqspinlock.h:72: + * visible in the array, leading to misdetection during deadlock detection. WARNING: line length of 93 exceeds 80 columns #145: FILE: kernel/locking/rqspinlock.c:86: +static bool is_lock_released(struct qspinlock *lock, u32 mask, struct rqspinlock_timeout *ts) WARNING: line length of 81 exceeds 80 columns #181: FILE: kernel/locking/rqspinlock.c:122: + * O(NR_CPUS) if we could determine the owning CPU from a lock value, but WARNING: line length of 91 exceeds 80 columns #185: FILE: kernel/locking/rqspinlock.c:126: + struct rqspinlock_held *rqh_cpu = per_cpu_ptr(&rqspinlock_held_locks, cpu); WARNING: line length of 86 exceeds 80 columns #190: FILE: kernel/locking/rqspinlock.c:131: + * Let's ensure to break out of this loop if the lock is available for WARNING: line length of 87 exceeds 80 columns #197: FILE: kernel/locking/rqspinlock.c:138: + * Skip ourselves, and CPUs whose count is less than 2, as they need at WARNING: line length of 84 exceeds 80 columns #198: FILE: kernel/locking/rqspinlock.c:139: + * least one held lock and one acquisition attempt (reflected as top WARNING: line length of 83 exceeds 80 columns #201: FILE: kernel/locking/rqspinlock.c:142: + * If cnt is more than RES_NR_HELD, it means the current lock being WARNING: line length of 87 exceeds 80 columns #202: FILE: kernel/locking/rqspinlock.c:143: + * acquired won't appear in the table, and other locks in the table are WARNING: line length of 88 exceeds 80 columns #205: FILE: kernel/locking/rqspinlock.c:146: + if (cpu == smp_processor_id() || real_cnt < 2 || real_cnt > RES_NR_HELD) WARNING: line length of 84 exceeds 80 columns #221: FILE: kernel/locking/rqspinlock.c:162: + * Find if the lock we're attempting to acquire is held by this CPU. WARNING: line length of 84 exceeds 80 columns #222: FILE: kernel/locking/rqspinlock.c:163: + * Don't consider the topmost entry, as that must be the latest lock WARNING: line length of 84 exceeds 80 columns #223: FILE: kernel/locking/rqspinlock.c:164: + * being held or acquired. For a deadlock, the target CPU must also WARNING: line length of 87 exceeds 80 columns #224: FILE: kernel/locking/rqspinlock.c:165: + * attempt to acquire a lock we hold, so for this search only 'cnt - 1' WARNING: line length of 85 exceeds 80 columns #308: FILE: kernel/locking/rqspinlock.c:243: +#define RES_INIT_TIMEOUT(ts, _timeout) ({ (ts).spin = 0; (ts).duration = _timeout; }) WARNING: line length of 105 exceeds 80 columns #329: FILE: kernel/locking/rqspinlock.c:349: + smp_cond_load_acquire(&lock->locked, !VAL || RES_CHECK_TIMEOUT(ts, ret, _Q_LOCKED_MASK)); WARNING: line length of 91 exceeds 80 columns #371: FILE: kernel/locking/rqspinlock.c:499: + RES_CHECK_TIMEOUT(ts, ret, _Q_LOCKED_PENDING_MASK)); total: 0 errors, 21 warnings, 1 checks, 330 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 db3dc8e7c61a ("rqspinlock: Add deadlock detection and recovery") 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, 21 warnings, 1 checks, 330 lines checked