From 9df700290378101ac48fda179d7258b37780fa4f Mon Sep 17 00:00:00 2001 From: Jeevan Shriram Date: Mon, 28 Mar 2016 18:24:34 -0700 Subject: net: ipv4: Fix type casting to resolve compilation errors Fix type casting in IPv4 and IPV6 driver to avoid compilation issues for ARCH=um on x86_64. CRs-Fixed: 996252 Change-Id: Ic3ed8affa2c5bc8fd9b403614f692ab01e1a307a Signed-off-by: Jeevan Shriram --- net/ipv6/inet6_connection_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/ipv6') diff --git a/net/ipv6/inet6_connection_sock.c b/net/ipv6/inet6_connection_sock.c index 7b214652768e..897bb6eb5751 100644 --- a/net/ipv6/inet6_connection_sock.c +++ b/net/ipv6/inet6_connection_sock.c @@ -86,7 +86,7 @@ struct dst_entry *inet6_csk_route_req(const struct sock *sk, fl6->flowi6_mark = ireq->ir_mark; fl6->fl6_dport = ireq->ir_rmt_port; fl6->fl6_sport = htons(ireq->ir_num); - fl6->flowi6_uid = sock_i_uid(sk); + fl6->flowi6_uid = sock_i_uid((struct sock *)sk); security_req_classify_flow(req, flowi6_to_flowi(fl6)); dst = ip6_dst_lookup_flow(sk, fl6, final_p); -- cgit v1.2.3