From: Eric Dumazet Date: Thu, 10 Oct 2013 07:04:37 +0000 (-0700) Subject: inet: rename ir_loc_port to ir_num X-Git-Tag: v3.13-rc1~105^2~195 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b44084c2c822f99dd3f2334b288b7e463d222662;p=pandora-kernel.git inet: rename ir_loc_port to ir_num In commit 634fb979e8f ("inet: includes a sock_common in request_sock") I forgot that the two ports in sock_common do not have same byte order : skc_dport is __be16 (network order), but skc_num is __u16 (host order) So sparse complains because ir_loc_port (mapped into skc_num) is considered as __u16 while it should be __be16 Let rename ir_loc_port to ireq->ir_num (analogy with inet->inet_num), and perform appropriate htons/ntohs conversions. Signed-off-by: Eric Dumazet Reported-by: Wu Fengguang Signed-off-by: David S. Miller --- Reading git-diff-tree failed