summaryrefslogtreecommitdiffstats
path: root/include/net/sock.h
diff options
context:
space:
mode:
authorHannes Frederic Sowa <hannes@stressinduktion.org>2016-04-07 23:53:35 +0200
committerDavid S. Miller <davem@davemloft.net>2016-04-07 18:01:21 -0400
commit03be98226c14d787939381b9f42d81764ea8eedc (patch)
tree3a776a972546c83801403d22790a902fcc3034fa /include/net/sock.h
parent889750bd2e08a94d52a116056d462b3a8e5616a7 (diff)
downloadlinux-03be98226c14d787939381b9f42d81764ea8eedc.tar.gz
linux-03be98226c14d787939381b9f42d81764ea8eedc.tar.xz
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 <fengguang.wu@intel.com> Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r--include/net/sock.h2
1 files changed, 1 insertions, 1 deletions
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;