Skip to content

Commit

Permalink
fs: sdfat: Fix compilation without debugging
Browse files Browse the repository at this point in the history
* And make WARNON debugging optional

Change-Id: Id59e908c8a60ded1238d3fd010f3d96cdde95f40
Signed-off-by: Paul Keith <[email protected]>
  • Loading branch information
javelinanddart authored and HighwayStar committed Oct 1, 2019
1 parent 5993b23 commit 2c95275
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fs/sdfat/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions fs/sdfat/sdfat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit 2c95275

Please sign in to comment.