瀏覽代碼

kmemcheck: depend on HAVE_ARCH_KMEMCHECK

to make it selectable if it is available.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
Sebastian Andrzej Siewior 16 年之前
父節點
當前提交
d33c9a491b
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      lib/Kconfig.kmemcheck

+ 3 - 0
lib/Kconfig.kmemcheck

@@ -1,6 +1,8 @@
 config HAVE_ARCH_KMEMCHECK
 config HAVE_ARCH_KMEMCHECK
 	bool
 	bool
 
 
+if HAVE_ARCH_KMEMCHECK
+
 menuconfig KMEMCHECK
 menuconfig KMEMCHECK
 	bool "kmemcheck: trap use of uninitialized memory"
 	bool "kmemcheck: trap use of uninitialized memory"
 	depends on DEBUG_KERNEL
 	depends on DEBUG_KERNEL
@@ -89,3 +91,4 @@ config KMEMCHECK_BITOPS_OK
 	  accesses where not all the bits are initialized at the same time.
 	  accesses where not all the bits are initialized at the same time.
 	  This may also hide some real bugs.
 	  This may also hide some real bugs.
 
 
+endif