From: Pablo Neira Ayuso Date: Mon, 20 Jan 2014 00:55:42 +0000 (+0100) Subject: netfilter: xt_ipcomp: Use ntohs to ease sparse warning X-Git-Tag: v3.15-rc1~113^2~144^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ba436fc02f95446bfcb7138db44920ab63deb61;p=pandora-kernel.git netfilter: xt_ipcomp: Use ntohs to ease sparse warning 0-DAY kernel build testing backend reported: sparse warnings: (new ones prefixed by >>) >> >> net/netfilter/xt_ipcomp.c:63:26: sparse: restricted __be16 degrades to integer >> >> net/netfilter/xt_ipcomp.c:63:26: sparse: cast to restricted __be32 Fix this by using ntohs without shifting. Tested with: make C=1 CF=-D__CHECK_ENDIAN__ Signed-off-by: Fan Du Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed