aboutsummaryrefslogtreecommitdiff
path: root/include/dm/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/dm/util.h')
-rw-r--r--include/dm/util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/dm/util.h b/include/dm/util.h
index 6ac3a38ef00..0cec17b52a4 100644
--- a/include/dm/util.h
+++ b/include/dm/util.h
@@ -7,7 +7,13 @@
#ifndef __DM_UTIL_H
#define __DM_UTIL_H
+#ifdef CONFIG_DM_WARN
void dm_warn(const char *fmt, ...);
+#else
+static inline void dm_warn(const char *fmt, ...)
+{
+}
+#endif
#ifdef DEBUG
void dm_dbg(const char *fmt, ...);