CHECK: extern prototypes should be avoided in .h files #35: FILE: include/linux/percpu.h:144: +extern bool pcpu_charge(void __percpu *__pdata, size_t size, gfp_t gfp); CHECK: extern prototypes should be avoided in .h files #36: FILE: include/linux/percpu.h:145: +extern void pcpu_uncharge(void __percpu *__pdata, size_t size); CHECK: Please use a blank line after function/struct/union/enum declarations #42: FILE: include/linux/percpu.h:151: +} +static inline void pcpu_uncharge(void __percpu *__pdata, size_t size) { } WARNING: line length of 84 exceeds 80 columns #65: FILE: mm/percpu.c:1619: +static void pcpu_alloc_tag_free_hook(struct pcpu_chunk *chunk, int off, size_t size) WARNING: line length of 87 exceeds 80 columns #68: FILE: mm/percpu.c:1622: + alloc_tag_sub(&chunk->obj_exts[off >> PCPU_MIN_ALLOC_SHIFT].tag, size); WARNING: line length of 84 exceeds 80 columns #76: FILE: mm/percpu.c:1630: +static void pcpu_alloc_tag_free_hook(struct pcpu_chunk *chunk, int off, size_t size) CHECK: Please use a blank line after function/struct/union/enum declarations #88: FILE: mm/percpu.c:1696: } +bool pcpu_charge(void *ptr, size_t size, gfp_t gfp) total: 0 errors, 3 warnings, 4 checks, 114 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 b05db7dd0d61 ("mm/percpu: allow (un)charging objects without alloc/free") 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, 3 warnings, 4 checks, 114 lines checked