Skip to content

Commit 6db6ea7

Browse files
alexkapshukmartinetd
authored andcommitted
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/[email protected] Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Dominique Martinet <[email protected]>
1 parent cb0aae0 commit 6db6ea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/9p/trans_fd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ static int p9_bind_privport(struct socket *sock)
950950

951951
memset(&cl, 0, sizeof(cl));
952952
cl.sin_family = AF_INET;
953-
cl.sin_addr.s_addr = INADDR_ANY;
953+
cl.sin_addr.s_addr = htonl(INADDR_ANY);
954954
for (port = p9_ipport_resv_max; port >= p9_ipport_resv_min; port--) {
955955
cl.sin_port = htons((ushort)port);
956956
err = kernel_bind(sock, (struct sockaddr *)&cl, sizeof(cl));

0 commit comments

Comments
 (0)