mtd: tests: annotate as DANGEROUS in Kconfig

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Nov 7 11:59:39 EST 2011


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=48e546b7f281f251893baa40769581fd15f085fb
Commit:     48e546b7f281f251893baa40769581fd15f085fb
Parent:     7406060e292c389fe6f38bd23493de9b57f2f4fc
Author:     Wolfram Sang <w.sang at pengutronix.de>
AuthorDate: Sun Oct 30 17:28:49 2011 +0100
Committer:  Artem Bityutskiy <Artem.Bityutskiy at intel.com>
CommitDate: Sun Oct 30 22:33:30 2011 +0200

    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 at pengutronix.de>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at intel.com>
---
 drivers/mtd/Kconfig |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
index 4925aa9..82c202b 100644
--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -13,13 +13,16 @@ menuconfig MTD
 if MTD
 
 config MTD_TESTS
-	tristate "MTD tests support"
+	tristate "MTD tests support (DANGEROUS)"
 	depends on m
 	help
 	  This option includes various MTD tests into compilation. The tests
 	  should normally be compiled as kernel modules. The modules perform
 	  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
 	tristate "RedBoot partition table parsing"
 	---help---



More information about the linux-mtd-cvs mailing list