WARNING: Argument 'lockname' is not used in function-like macro #195: FILE: include/linux/local_lock_internal.h:63: +# define LOCAL_TRYLOCK_DEBUG_INIT(lockname) CHECK: spaces preferred around that '*' (ctx:WxO) #229: FILE: include/linux/local_lock_internal.h:105: + local_trylock_t *: ({ \ ^ ERROR: spaces required around that ':' (ctx:OxW) #229: FILE: include/linux/local_lock_internal.h:105: + local_trylock_t *: ({ \ ^ CHECK: spaces required around that ':' (ctx:VxV) #233: FILE: include/linux/local_lock_internal.h:109: + default:(void)0); \ ^ ERROR: trailing statements should be on next line #233: FILE: include/linux/local_lock_internal.h:109: + default:(void)0); \ CHECK: spaces preferred around that '*' (ctx:WxO) #386: FILE: include/linux/local_lock_internal.h:174: + local_trylock_t *: ({ \ ^ ERROR: spaces required around that ':' (ctx:OxW) #386: FILE: include/linux/local_lock_internal.h:174: + local_trylock_t *: ({ \ ^ CHECK: spaces required around that ':' (ctx:VxV) #390: FILE: include/linux/local_lock_internal.h:178: + default:(void)0); \ ^ ERROR: trailing statements should be on next line #390: FILE: include/linux/local_lock_internal.h:178: + default:(void)0); \ WARNING: do not add new typedefs #442: FILE: include/linux/local_lock_internal.h:215: +typedef spinlock_t local_trylock_t; WARNING: Argument 'lock' is not used in function-like macro #473: FILE: include/linux/local_lock_internal.h:263: +#define __local_trylock(lock) \ ({ \ int __locked; \ \ total: 4 errors, 3 warnings, 4 checks, 526 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 29334d556c1b ("locking/local_lock, mm: Replace localtry_ helpers with local_trylock_t type") 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.