fs: sdfat: Fix compilation without debugging
* And make WARNON debugging optional Change-Id: Id59e908c8a60ded1238d3fd010f3d96cdde95f40
This commit is contained in:
parent
54be288ec7
commit
2b43486806
5
Kconfig
5
Kconfig
|
|
@ -97,6 +97,11 @@ config SDFAT_DBG_BUGON
|
||||||
depends on SDFAT_FS && SDFAT_DEBUG
|
depends on SDFAT_FS && SDFAT_DEBUG
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config SDFAT_DBG_WARNON
|
||||||
|
bool "enable strict WARN_ON() for debugging"
|
||||||
|
depends on SDFAT_FS && SDFAT_DEBUG
|
||||||
|
default n
|
||||||
|
|
||||||
config SDFAT_STATISTICS
|
config SDFAT_STATISTICS
|
||||||
bool "enable statistics for bigdata"
|
bool "enable statistics for bigdata"
|
||||||
depends on SDFAT_FS
|
depends on SDFAT_FS
|
||||||
|
|
|
||||||
1
sdfat.h
1
sdfat.h
|
|
@ -393,6 +393,7 @@ void sdfat_debug_check_clusters(struct inode *inode);
|
||||||
|
|
||||||
#define sdfat_debug_check_clusters(inode)
|
#define sdfat_debug_check_clusters(inode)
|
||||||
#define sdfat_debug_bug_on(expr)
|
#define sdfat_debug_bug_on(expr)
|
||||||
|
#define sdfat_debug_warn_on(expr)
|
||||||
|
|
||||||
#endif /* CONFIG_SDFAT_DEBUG */
|
#endif /* CONFIG_SDFAT_DEBUG */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue