WARNING: line length of 82 exceeds 80 columns
#113: FILE: include/asm-generic/rqspinlock.h:70:
+ * complicated and we don't have a compelling use case for out of order unlocking.

WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
#193: FILE: kernel/bpf/rqspinlock.c:85:
+EXPORT_SYMBOL_GPL(rqspinlock_held_locks);

WARNING: line length of 89 exceeds 80 columns
#195: FILE: kernel/bpf/rqspinlock.c:87:
+static bool is_lock_released(rqspinlock_t *lock, u32 mask, struct rqspinlock_timeout *ts)

WARNING: line length of 81 exceeds 80 columns
#236: FILE: kernel/bpf/rqspinlock.c:128:
+	 * O(NR_CPUS) if we could determine the owning CPU from a lock value, but

WARNING: line length of 91 exceeds 80 columns
#240: FILE: kernel/bpf/rqspinlock.c:132:
+		struct rqspinlock_held *rqh_cpu = per_cpu_ptr(&rqspinlock_held_locks, cpu);

WARNING: line length of 86 exceeds 80 columns
#245: FILE: kernel/bpf/rqspinlock.c:137:
+		 * Let's ensure to break out of this loop if the lock is available for

WARNING: line length of 87 exceeds 80 columns
#252: FILE: kernel/bpf/rqspinlock.c:144:
+		 * Skip ourselves, and CPUs whose count is less than 2, as they need at

WARNING: line length of 84 exceeds 80 columns
#253: FILE: kernel/bpf/rqspinlock.c:145:
+		 * least one held lock and one acquisition attempt (reflected as top

WARNING: line length of 83 exceeds 80 columns
#256: FILE: kernel/bpf/rqspinlock.c:148:
+		 * If cnt is more than RES_NR_HELD, it means the current lock being

WARNING: line length of 87 exceeds 80 columns
#257: FILE: kernel/bpf/rqspinlock.c:149:
+		 * acquired won't appear in the table, and other locks in the table are

WARNING: line length of 88 exceeds 80 columns
#260: FILE: kernel/bpf/rqspinlock.c:152:
+		if (cpu == smp_processor_id() || real_cnt < 2 || real_cnt > RES_NR_HELD)

WARNING: line length of 84 exceeds 80 columns
#276: FILE: kernel/bpf/rqspinlock.c:168:
+		 * Find if the lock we're attempting to acquire is held by this CPU.

WARNING: line length of 84 exceeds 80 columns
#277: FILE: kernel/bpf/rqspinlock.c:169:
+		 * Don't consider the topmost entry, as that must be the latest lock

WARNING: line length of 84 exceeds 80 columns
#278: FILE: kernel/bpf/rqspinlock.c:170:
+		 * being held or acquired.  For a deadlock, the target CPU must also

WARNING: line length of 87 exceeds 80 columns
#279: FILE: kernel/bpf/rqspinlock.c:171:
+		 * attempt to acquire a lock we hold, so for this search only 'cnt - 1'

WARNING: Argument 'mask' is not used in function-like macro
#363: FILE: kernel/bpf/rqspinlock.c:250:
+#define RES_CHECK_TIMEOUT(ts, ret, mask)			      \
 	({ (ret) = check_timeout(&(ts)); })

WARNING: line length of 109 exceeds 80 columns
#401: FILE: kernel/bpf/rqspinlock.c:376:
+		res_smp_cond_load_acquire(&lock->locked, !VAL || RES_CHECK_TIMEOUT(ts, ret, _Q_LOCKED_MASK));

WARNING: line length of 95 exceeds 80 columns
#443: FILE: kernel/bpf/rqspinlock.c:531:
+					   RES_CHECK_TIMEOUT(ts, ret, _Q_LOCKED_PENDING_MASK));

total: 0 errors, 18 warnings, 0 checks, 392 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 e7f3b0bde590 ("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, 0 checks, 392 lines checked