]> asedeno.scripts.mit.edu Git - linux.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)
commitaf2697a0273f7665429c47d71ab26f2412af924e
treee244d8c6605bd3b6599fd423b82a8d61da2b7547
parent08f46070dde2a835a7a5bfd4c70372c27bff5d88
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: e6d8b64b34aa ("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