diff options
author | Hannes Frederic Sowa <hannes@stressinduktion.org> | 2016-04-07 21:53:35 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-07 22:01:21 (GMT) |
commit | 03be98226c14d787939381b9f42d81764ea8eedc (patch) | |
tree | 3a776a972546c83801403d22790a902fcc3034fa /include/net | |
parent | 889750bd2e08a94d52a116056d462b3a8e5616a7 (diff) | |
download | 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')
-rw-r--r-- | include/net/sock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index eb2d7c3..46b2937 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; |