浏览代码

mtd: tests: annotate as DANGEROUS in Kconfig

The tests may erase mtd devices, so annotate them as suggested per
coding style and add a paragraph to the help text as well.

Artem: amended the help test a bit.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@intel.com>
Wolfram Sang 14 年之前
父节点
当前提交
48e546b7f2
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      drivers/mtd/Kconfig

+ 4 - 1
drivers/mtd/Kconfig

@@ -13,13 +13,16 @@ menuconfig MTD
 if MTD
 if MTD
 
 
 config MTD_TESTS
 config MTD_TESTS
-	tristate "MTD tests support"
+	tristate "MTD tests support (DANGEROUS)"
 	depends on m
 	depends on m
 	help
 	help
 	  This option includes various MTD tests into compilation. The tests
 	  This option includes various MTD tests into compilation. The tests
 	  should normally be compiled as kernel modules. The modules perform
 	  should normally be compiled as kernel modules. The modules perform
 	  various checks and verifications when loaded.
 	  various checks and verifications when loaded.
 
 
+	  WARNING: some of the tests will ERASE entire MTD device which they
+	  test. Do not use these tests unless you really know what you do.
+
 config MTD_REDBOOT_PARTS
 config MTD_REDBOOT_PARTS
 	tristate "RedBoot partition table parsing"
 	tristate "RedBoot partition table parsing"
 	---help---
 	---help---