From 2b43486806a76c7905ad144a96693601cc7478fd Mon Sep 17 00:00:00 2001 From: Paul Keith Date: Mon, 19 Feb 2018 20:52:10 +0100 Subject: [PATCH] fs: sdfat: Fix compilation without debugging * And make WARNON debugging optional Change-Id: Id59e908c8a60ded1238d3fd010f3d96cdde95f40 --- Kconfig | 5 +++++ sdfat.h | 1 + 2 files changed, 6 insertions(+) diff --git a/Kconfig b/Kconfig index 2ab3e99..f3a7ff6 100644 --- a/Kconfig +++ b/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/sdfat.h b/sdfat.h index 2f10b96..a4b7ed3 100644 --- a/sdfat.h +++ b/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 */