CHECK: Prefer using the BIT macro #40: FILE: include/net/dst_cache.h:13: +#define DST_CACHE_INPUT_SIZE (1 << DST_CACHE_INPUT_SHIFT) CHECK: Macro argument 'head' may be better as '(head)' to avoid precedence issues #58: FILE: include/net/dst_cache.h:31: +#define idst_for_each_in_bucket(pos, head, hash) \ + for (pos = &head[hash]; \ + pos < &head[hash + DST_CACHE_INPUT_BUCKET_SIZE]; \ + pos++) WARNING: line length of 81 exceeds 80 columns #157: FILE: net/core/dst_cache.c:200: +static struct dst_entry *__dst_cache_input_get_noref(struct dst_cache_pcpu *idst) WARNING: line length of 122 exceeds 80 columns #217: FILE: net/core/dst_cache.c:260: + dst_cache->cache = (struct dst_cache_pcpu __percpu *)alloc_percpu_gfp(struct dst_cache_pcpu[DST_CACHE_INPUT_SIZE], WARNING: line length of 103 exceeds 80 columns #218: FILE: net/core/dst_cache.c:261: + GFP_KERNEL | __GFP_ZERO); total: 0 errors, 3 warnings, 2 checks, 234 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 418cef605f6d ("net: dst_cache: add input_dst_cache API") 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, 2 checks, 234 lines checked