]> git.baikalelectronics.ru Git - kernel.git/commit
net: checksum: fix warning in skb_checksum
authorDaniel Borkmann <dborkman@redhat.com>
Mon, 4 Nov 2013 16:10:25 +0000 (17:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Nov 2013 20:27:08 +0000 (15:27 -0500)
commita2fd25a136b680bc4844d8d56a12bbe85f47610e
tree77a3386d2c211756a37acd65a0a9aee0e460e6cf
parent65cf61eab033c8738049a6b56d334d1104e1f6c9
net: checksum: fix warning in skb_checksum

This patch fixes a build warning in skb_checksum() by wrapping the
csum_partial() usage in skb_checksum(). The problem is that on a few
architectures, csum_partial is used with prefix asmlinkage whereas
on most architectures it's not. So fix this up generically as we did
with csum_block_add_ext() to match the signature. Introduced by
c38be5cb7db ("net: skb_checksum: allow custom update/combine for
walking skb").

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/checksum.h
net/core/skbuff.c