WARNING: line length of 89 exceeds 80 columns #66: FILE: include/asm-generic/rqspinlock.h:19: +extern int resilient_queued_spin_lock_slowpath(rqspinlock_t *lock, u32 val, u64 timeout); CHECK: extern prototypes should be avoided in .h files #66: FILE: include/asm-generic/rqspinlock.h:19: +extern int resilient_queued_spin_lock_slowpath(rqspinlock_t *lock, u32 val, u64 timeout); WARNING: line length of 82 exceeds 80 columns #107: FILE: include/asm-generic/rqspinlock.h:59: + * complicated and we don't have a compelling use case for out of order unlocking. WARNING: line length of 89 exceeds 80 columns #180: FILE: kernel/locking/rqspinlock.c:86: +static bool is_lock_released(rqspinlock_t *lock, u32 mask, struct rqspinlock_timeout *ts) WARNING: line length of 81 exceeds 80 columns #221: FILE: kernel/locking/rqspinlock.c:127: + * O(NR_CPUS) if we could determine the owning CPU from a lock value, but WARNING: line length of 91 exceeds 80 columns #225: FILE: kernel/locking/rqspinlock.c:131: + struct rqspinlock_held *rqh_cpu = per_cpu_ptr(&rqspinlock_held_locks, cpu); WARNING: line length of 86 exceeds 80 columns #230: FILE: kernel/locking/rqspinlock.c:136: + * Let's ensure to break out of this loop if the lock is available for WARNING: line length of 87 exceeds 80 columns #237: FILE: kernel/locking/rqspinlock.c:143: + * Skip ourselves, and CPUs whose count is less than 2, as they need at WARNING: line length of 84 exceeds 80 columns #238: FILE: kernel/locking/rqspinlock.c:144: + * least one held lock and one acquisition attempt (reflected as top WARNING: line length of 83 exceeds 80 columns #241: FILE: kernel/locking/rqspinlock.c:147: + * If cnt is more than RES_NR_HELD, it means the current lock being WARNING: line length of 87 exceeds 80 columns #242: FILE: kernel/locking/rqspinlock.c:148: + * acquired won't appear in the table, and other locks in the table are WARNING: line length of 88 exceeds 80 columns #245: FILE: kernel/locking/rqspinlock.c:151: + if (cpu == smp_processor_id() || real_cnt < 2 || real_cnt > RES_NR_HELD) WARNING: line length of 84 exceeds 80 columns #261: FILE: kernel/locking/rqspinlock.c:167: + * Find if the lock we're attempting to acquire is held by this CPU. WARNING: line length of 84 exceeds 80 columns #262: FILE: kernel/locking/rqspinlock.c:168: + * Don't consider the topmost entry, as that must be the latest lock WARNING: line length of 84 exceeds 80 columns #263: FILE: kernel/locking/rqspinlock.c:169: + * being held or acquired. For a deadlock, the target CPU must also WARNING: line length of 87 exceeds 80 columns #264: FILE: kernel/locking/rqspinlock.c:170: + * attempt to acquire a lock we hold, so for this search only 'cnt - 1' WARNING: line length of 85 exceeds 80 columns #348: FILE: kernel/locking/rqspinlock.c:248: +#define RES_INIT_TIMEOUT(ts, _timeout) ({ (ts).spin = 0; (ts).duration = _timeout; }) WARNING: line length of 105 exceeds 80 columns #369: FILE: kernel/locking/rqspinlock.c:354: + smp_cond_load_acquire(&lock->locked, !VAL || RES_CHECK_TIMEOUT(ts, ret, _Q_LOCKED_MASK)); WARNING: line length of 91 exceeds 80 columns #411: FILE: kernel/locking/rqspinlock.c:504: + RES_CHECK_TIMEOUT(ts, ret, _Q_LOCKED_PENDING_MASK)); total: 0 errors, 18 warnings, 1 checks, 363 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 bc605efc27de ("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, 18 warnings, 1 checks, 363 lines checked