From: Hans Wippel Date: Fri, 23 Jun 2017 17:32:27 +0000 (+0200) Subject: net/iucv: improve endianness handling X-Git-Tag: v4.14-rc1~596^2~92 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2e56c26b391810461170547509649f0c11717f65;p=platform%2Fkernel%2Flinux-rpi3.git net/iucv: improve endianness handling Use proper endianness conversion for an skb protocol assignment. Given that IUCV is only available on big endian systems (s390), this simply avoids an endianness warning reported by sparse. Signed-off-by: Hans Wippel Reviewed-by: Julian Wiedmann Reviewed-by: Ursula Braun Signed-off-by: Julian Wiedmann Signed-off-by: David S. Miller --- diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c index 2cf9d59..0511209 100644 --- a/net/iucv/af_iucv.c +++ b/net/iucv/af_iucv.c @@ -362,7 +362,7 @@ static int afiucv_hs_send(struct iucv_message *imsg, struct sock *sock, else skb_trim(skb, skb->dev->mtu); } - skb->protocol = ETH_P_AF_IUCV; + skb->protocol = cpu_to_be16(ETH_P_AF_IUCV); nskb = skb_clone(skb, GFP_ATOMIC); if (!nskb) return -ENOMEM;