]> 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)
commit3ce372a4bfd0ef8fc3048e7591bda622ff67c64f
treee244d8c6605bd3b6599fd423b82a8d61da2b7547
parentc0bbb6cbc17a5bba160431b67d9dec074dedc735
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: 88a1f8a751ec ("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