fs: sdfat: Fix compilation without debugging

* And make WARNON debugging optional

Change-Id: Id59e908c8a60ded1238d3fd010f3d96cdde95f40
This commit is contained in:
Paul Keith 2018-02-19 20:52:10 +01:00 committed by Andreas Schneider
parent 54be288ec7
commit 2b43486806
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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 */