aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/sdfat/Kconfig5
-rw-r--r--fs/sdfat/sdfat.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/fs/sdfat/Kconfig b/fs/sdfat/Kconfig
index 73ed755bb..417ff432d 100644
--- a/fs/sdfat/Kconfig
+++ b/fs/sdfat/Kconfig
@@ -97,6 +97,11 @@ config SDFAT_DBG_BUGON
depends on SDFAT_FS && SDFAT_DEBUG
default n
+config SDFAT_DBG_WARNON
+ bool "Enable strict WARN_ON() for debugging"
+ depends on SDFAT_FS && SDFAT_DEBUG
+ default n
+
config SDFAT_STATISTICS
bool "Enable statistics for bigdata"
depends on SDFAT_FS
diff --git a/fs/sdfat/sdfat.h b/fs/sdfat/sdfat.h
index 2f10b9603..a4b7ed3e1 100644
--- a/fs/sdfat/sdfat.h
+++ b/fs/sdfat/sdfat.h
@@ -393,6 +393,7 @@ void sdfat_debug_check_clusters(struct inode *inode);
#define sdfat_debug_check_clusters(inode)
#define sdfat_debug_bug_on(expr)
+#define sdfat_debug_warn_on(expr)
#endif /* CONFIG_SDFAT_DEBUG */