WARNING: Non-standard signature: Diagnosed-by:
#38: 
Diagnosed-by: Dmitry Vyukov <dvyukov@google.com>

WARNING: line length of 85 exceeds 80 columns
#56: FILE: net/xfrm/xfrm_state.c:38:
+	rcu_dereference_check((table), lockdep_is_held(&(net)->xfrm.xfrm_state_lock))

WARNING: line length of 88 exceeds 80 columns
#106: FILE: net/xfrm/xfrm_state.c:1128:
+static void xfrm_hash_ptrs_get(const struct net *net, struct xfrm_hash_state_ptrs *ptrs)

WARNING: line length of 86 exceeds 80 columns
#111: FILE: net/xfrm/xfrm_state.c:1133:
+		sequence = read_seqcount_begin(&net->xfrm.xfrm_state_hash_generation);

WARNING: line length of 81 exceeds 80 columns
#113: FILE: net/xfrm/xfrm_state.c:1135:
+		ptrs->bydst = xfrm_state_deref_check(net->xfrm.state_bydst, net);

WARNING: line length of 81 exceeds 80 columns
#114: FILE: net/xfrm/xfrm_state.c:1136:
+		ptrs->bysrc = xfrm_state_deref_check(net->xfrm.state_bysrc, net);

WARNING: line length of 81 exceeds 80 columns
#115: FILE: net/xfrm/xfrm_state.c:1137:
+		ptrs->byspi = xfrm_state_deref_check(net->xfrm.state_byspi, net);

WARNING: line length of 87 exceeds 80 columns
#117: FILE: net/xfrm/xfrm_state.c:1139:
+	} while (read_seqcount_retry(&net->xfrm.xfrm_state_hash_generation, sequence));

WARNING: line length of 96 exceeds 80 columns
#120: FILE: net/xfrm/xfrm_state.c:1142:
+static struct xfrm_state *__xfrm_state_lookup_all(const struct xfrm_hash_state_ptrs *state_ptrs,

WARNING: line length of 87 exceeds 80 columns
#128: FILE: net/xfrm/xfrm_state.c:1149:
+	unsigned int h = __xfrm_spi_hash(daddr, spi, proto, family, state_ptrs->hmask);

WARNING: line length of 92 exceeds 80 columns
#141: FILE: net/xfrm/xfrm_state.c:1186:
+static struct xfrm_state *__xfrm_state_lookup(const struct xfrm_hash_state_ptrs *state_ptrs,

WARNING: line length of 87 exceeds 80 columns
#148: FILE: net/xfrm/xfrm_state.c:1192:
+	unsigned int h = __xfrm_spi_hash(daddr, spi, proto, family, state_ptrs->hmask);

WARNING: line length of 99 exceeds 80 columns
#180: FILE: net/xfrm/xfrm_state.c:1261:
+static struct xfrm_state *__xfrm_state_lookup_byaddr(const struct xfrm_hash_state_ptrs *state_ptrs,

WARNING: line length of 82 exceeds 80 columns
#187: FILE: net/xfrm/xfrm_state.c:1267:
+	unsigned int h = __xfrm_src_hash(daddr, saddr, family, state_ptrs->hmask);

WARNING: line length of 87 exceeds 80 columns
#231: FILE: net/xfrm/xfrm_state.c:1441:
+	h = __xfrm_dst_hash(daddr, saddr, tmpl->reqid, encap_family, state_ptrs.hmask);

WARNING: line length of 87 exceeds 80 columns
#284: FILE: net/xfrm/xfrm_state.c:2324:
+	x = __xfrm_state_lookup_byaddr(&state_ptrs, mark, daddr, saddr, proto, family);

total: 0 errors, 16 warnings, 0 checks, 221 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 ea103bda966d ("xfrm: state: fix out-of-bounds read during lookup") 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, 16 warnings, 0 checks, 221 lines checked