From: Hans Wippel Date: Fri, 7 Apr 2017 07:15:38 +0000 (+0200) Subject: s390/netiucv: improve endianness handling X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6c37c60c2d3cd064b5abe838a0d5dc6255ea36fa;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git s390/netiucv: improve endianness handling Replace ntohs with endianness conversion for the SKB protocol assignment to avoid an endianness warning reported by sparse. No functional change. Signed-off-by: Hans Wippel Signed-off-by: Ursula Braun Signed-off-by: David S. Miller --- diff --git a/drivers/s390/net/netiucv.c b/drivers/s390/net/netiucv.c index 3f85b97ab8d2..dba94b486f05 100644 --- a/drivers/s390/net/netiucv.c +++ b/drivers/s390/net/netiucv.c @@ -635,7 +635,7 @@ static void netiucv_unpack_skb(struct iucv_connection *conn, skb_put(pskb, NETIUCV_HDRLEN); pskb->dev = dev; pskb->ip_summed = CHECKSUM_NONE; - pskb->protocol = ntohs(ETH_P_IP); + pskb->protocol = cpu_to_be16(ETH_P_IP); while (1) { struct sk_buff *skb;