sock: struct proto hash function may error
[cascardo/linux.git] / include / net / udp.h
index 2842541..92927f7 100644 (file)
@@ -177,9 +177,10 @@ static inline struct udphdr *udp_gro_udphdr(struct sk_buff *skb)
 }
 
 /* hash routines shared between UDPv4/6 and UDP-Litev4/6 */
-static inline void udp_lib_hash(struct sock *sk)
+static inline int udp_lib_hash(struct sock *sk)
 {
        BUG();
+       return 0;
 }
 
 void udp_lib_unhash(struct sock *sk);