瀏覽代碼

x86/mmiotrace: uses/depends on PCI

Don't try to build mmiotrace when CONFIG_PCI=n.

next-20080416/kernel/trace/trace_mmiotrace.c: In function 'mmio_print_pcidev':
next-20080416/kernel/trace/trace_mmiotrace.c:62: error: implicit declaration of function 'pci_dev_driver'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Randy Dunlap 17 年之前
父節點
當前提交
37b3619257
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      arch/x86/Kconfig.debug

+ 2 - 2
arch/x86/Kconfig.debug

@@ -173,7 +173,7 @@ config MMIOTRACE_HOOKS
 
 
 config MMIOTRACE
 config MMIOTRACE
 	bool "Memory mapped IO tracing"
 	bool "Memory mapped IO tracing"
-	depends on DEBUG_KERNEL
+	depends on DEBUG_KERNEL && PCI
 	select TRACING
 	select TRACING
 	select MMIOTRACE_HOOKS
 	select MMIOTRACE_HOOKS
 	default y
 	default y
@@ -181,7 +181,7 @@ config MMIOTRACE
 	  Mmiotrace traces Memory Mapped I/O access and is meant for
 	  Mmiotrace traces Memory Mapped I/O access and is meant for
 	  debugging and reverse engineering. It is called from the ioremap
 	  debugging and reverse engineering. It is called from the ioremap
 	  implementation and works via page faults. Tracing is disabled by
 	  implementation and works via page faults. Tracing is disabled by
-	  default and can be enabled run-time.
+	  default and can be enabled at run-time.
 
 
 	  See Documentation/tracers/mmiotrace.txt.
 	  See Documentation/tracers/mmiotrace.txt.
 	  If you are not helping to develop drivers, say N.
 	  If you are not helping to develop drivers, say N.