From: Randy Dunlap Date: Mon, 17 Aug 2009 23:00:30 +0000 (-0700) Subject: trace_skb: fix build when CONFIG_NET is not enabled X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3a5209e3b26386fd174820ee6e8e27479b24869a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git trace_skb: fix build when CONFIG_NET is not enabled 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 Signed-off-by: David S. Miller --- diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index f09d7635c0e1..9a2f19bf0512 100644 --- a/kernel/trace/Kconfig +++ b/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