[PATCH 2/2] mtd: mark tests EXPERIMENTAL

Wolfram Sang
2011-10-25T09:10:20Z

The tests may erase mtd devices, so mark them EXPERIMENTAL and emphasize
this fact in the Kconfig entry, so users will think twice before running
them.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
---
drivers/mtd/Kconfig | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
index 4be8373..81d9b92 100644
--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -27,12 +27,15 @@ config MTD_DEBUG_VERBOSE

config MTD_TESTS
tristate "MTD tests support"
- depends on m
+ depends on m && EXPERIMENTAL
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