From: Hannes Frederic Sowa Date: Thu, 7 Apr 2016 21:53:35 +0000 (+0200) Subject: sock: make lockdep_sock_is_held static inline X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=03be98226c14d787939381b9f42d81764ea8eedc;p=linux-beck.git sock: make lockdep_sock_is_held static inline I forgot to add inline to lockdep_sock_is_held, so it generated all kinds of build warnings if not build with lockdep support. Reported-by: kbuild test robot Signed-off-by: Hannes Frederic Sowa Signed-off-by: David S. Miller --- diff --git a/include/net/sock.h b/include/net/sock.h index eb2d7c3e120b..46b29374df8e 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -1360,7 +1360,7 @@ do { \ lockdep_init_map(&(sk)->sk_lock.dep_map, (name), (key), 0); \ } while (0) -static bool lockdep_sock_is_held(const struct sock *csk) +static inline bool lockdep_sock_is_held(const struct sock *csk) { struct sock *sk = (struct sock *)csk;