[PATCH V2 2/2] mtd: tests: annotate as DANGEROUS in Kconfig

Wolfram Sang
2011-10-30T16:29:03Z

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

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
---

Thanks to Artem for letting me know of this coding style suggestion.

drivers/mtd/Kconfig | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
index 4be8373..cb1821b 100644
--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -26,13 +26,16 @@ config MTD_DEBUG_VERBOSE
Determines the verbosity level of the MTD debugging messages.

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 THE CONTENT of mtd devices!
+ Do not use these tests unless you are sure you really need to.
+
config MTD_REDBOOT_PARTS
tristate "RedBoot partition table parsing"
---help---
--
1.7.6.3