linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] trace_skb: fix build when CONFIG_NET is not enabled
@ 2009-08-17 20:37 Randy Dunlap
  2009-08-17 21:58 ` Ingo Molnar
  2009-08-17 23:00 ` David Miller
  0 siblings, 2 replies; 11+ messages in thread
From: Randy Dunlap @ 2009-08-17 20:37 UTC (permalink / raw)
  To: Linux Kernel Mailing List, linux-next
  Cc: Andrew Morton, Neil Horman, Steven Rostedt

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix trace_skb_sources build when CONFIG_NET is not enabled:

kernel/built-in.o: In function `probe_skb_dequeue':
trace_skb_sources.c:(.text+0xd9152): undefined reference to `init_net'
trace_skb_sources.c:(.text+0xd9188): undefined reference to `dev_get_by_index'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Neil Horman <nhorman@tuxdriver.com>
---
 kernel/trace/Kconfig |    1 +
 1 file changed, 1 insertion(+)

--- linux-next-20090817.orig/kernel/trace/Kconfig
+++ linux-next-20090817/kernel/trace/Kconfig
@@ -236,6 +236,7 @@ config BOOT_TRACER
 
 config SKB_SOURCES_TRACER
 	bool "Trace skb source information"
+	depends on NET
 	select GENERIC_TRACER
 	help
 	   This tracer helps developers/sysadmins correlate skb allocation and



-- 
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/

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

end of thread, other threads:[~2009-08-18 12:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-17 20:37 [PATCH -next] trace_skb: fix build when CONFIG_NET is not enabled Randy Dunlap
2009-08-17 21:58 ` Ingo Molnar
2009-08-17 22:33   ` David Miller
2009-08-17 22:47     ` Ingo Molnar
2009-08-17 22:59       ` David Miller
2009-08-17 23:03         ` Ingo Molnar
2009-08-17 23:00       ` Ingo Molnar
2009-08-17 23:00 ` David Miller
2009-08-17 23:06   ` Ingo Molnar
2009-08-18  0:03     ` David Miller
2009-08-18 12:13       ` Ingo Molnar

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).