netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] sock: make lockdep_sock_is_held static inline
@ 2016-04-07 21:53 Hannes Frederic Sowa
  2016-04-07 22:01 ` David Miller
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Hannes Frederic Sowa @ 2016-04-07 21:53 UTC (permalink / raw)
  To: netdev

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>
---
 include/net/sock.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/net/sock.h b/include/net/sock.h
index eb2d7c3e120b25..46b29374df8ed7 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;
 
-- 
2.5.5

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-04-08  0:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-07 21:53 [PATCH net-next] sock: make lockdep_sock_is_held static inline Hannes Frederic Sowa
2016-04-07 22:01 ` David Miller
2016-04-07 22:30 ` Eric Dumazet
2016-04-07 22:37   ` Eric Dumazet
2016-04-07 22:47     ` Hannes Frederic Sowa
2016-04-07 23:08       ` Eric Dumazet
2016-04-07 23:13         ` Hannes Frederic Sowa
2016-04-07 23:35 ` [PATCH net-next v2] sock: make lockdep_sock_is_held inline and conditional on LOCKDEP Hannes Frederic Sowa
2016-04-08  0:40   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).