Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 514bd1a3 authored by Paul Keith's avatar Paul Keith Committed by Razziell
Browse files

fs: sdfat: Fix compilation without debugging



* And make WARNON debugging optional

Change-Id: Id59e908c8a60ded1238d3fd010f3d96cdde95f40
Signed-off-by: default avatarPaul Keith <javelinanddart@gmail.com>
parent 02934aa1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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
+1 −0
Original line number Diff line number Diff line
@@ -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 */