Commit 03be9822 authored by Hannes Frederic Sowa's avatar Hannes Frederic Sowa Committed by David S. Miller

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: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarHannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 889750bd
...@@ -1360,7 +1360,7 @@ do { \ ...@@ -1360,7 +1360,7 @@ do { \
lockdep_init_map(&(sk)->sk_lock.dep_map, (name), (key), 0); \ lockdep_init_map(&(sk)->sk_lock.dep_map, (name), (key), 0); \
} while (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; struct sock *sk = (struct sock *)csk;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment