]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: force the params with right types for sctp csum apis
authorXin Long <lucien.xin@gmail.com>
Sun, 26 Nov 2017 12:16:07 +0000 (20:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Nov 2017 16:00:13 +0000 (11:00 -0500)
commit1af68116d6c6fa838dead4ff48474e810817d230
treee244d8c6605bd3b6599fd423b82a8d61da2b7547
parent09947e7c65d3f0fa081f9699aa4b66e2acea1d53
sctp: force the params with right types for sctp csum apis

Now sctp_csum_xxx doesn't really match the param types of these common
csum apis. As sctp_csum_xxx is defined in sctp/checksum.h, many sparse
errors occur when make C=2 not only with M=net/sctp but also with other
modules that include this header file.

This patch is to force them fit in csum apis with the right types.

Fixes: 17a2953f0995 ("net: sctp: fix and consolidate SCTP checksumming code")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/checksum.h