Commit 6db6ea79 authored by Alexander Kapshuk's avatar Alexander Kapshuk Committed by Dominique Martinet

net/9p: Fix sparse endian warning in trans_fd.c

Address sparse endian warning:
net/9p/trans_fd.c:932:28: warning: incorrect type in assignment (different base types)
net/9p/trans_fd.c:932:28:    expected restricted __be32 [addressable] [assigned] [usertype] s_addr
net/9p/trans_fd.c:932:28:    got unsigned long

Link: http://lkml.kernel.org/r/20200618183417.5423-1-alexander.kapshuk@gmail.comSigned-off-by: default avatarAlexander Kapshuk <alexander.kapshuk@gmail.com>
Signed-off-by: default avatarDominique Martinet <asmadeus@codewreck.org>
parent cb0aae0e
...@@ -950,7 +950,7 @@ static int p9_bind_privport(struct socket *sock) ...@@ -950,7 +950,7 @@ static int p9_bind_privport(struct socket *sock)
memset(&cl, 0, sizeof(cl)); memset(&cl, 0, sizeof(cl));
cl.sin_family = AF_INET; cl.sin_family = AF_INET;
cl.sin_addr.s_addr = INADDR_ANY; cl.sin_addr.s_addr = htonl(INADDR_ANY);
for (port = p9_ipport_resv_max; port >= p9_ipport_resv_min; port--) { for (port = p9_ipport_resv_max; port >= p9_ipport_resv_min; port--) {
cl.sin_port = htons((ushort)port); cl.sin_port = htons((ushort)port);
err = kernel_bind(sock, (struct sockaddr *)&cl, sizeof(cl)); err = kernel_bind(sock, (struct sockaddr *)&cl, sizeof(cl));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment