瀏覽代碼

Only enable BLOCK_COMPAT if COMPAT is needed

IOW, it needs to depend on both CONFIG_BLOCK and CONFIG_COMPAT.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Linus Torvalds 18 年之前
父節點
當前提交
2b9e0aae1d
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      block/Kconfig

+ 3 - 2
block/Kconfig

@@ -62,10 +62,11 @@ config BLK_DEV_BSG
 	protocols (e.g. Task Management Functions and SMP in Serial
 	Attached SCSI).
 
+endif # BLOCK
+
 config BLOCK_COMPAT
 	bool
+	depends on BLOCK && COMPAT
 	default y
 
-endif # BLOCK
-
 source block/Kconfig.iosched