]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
mmc: define empty trace functions if no MMC_BLOCK
authorShreshtha Sahu <ssahu@nvidia.com>
Fri, 1 Aug 2014 12:13:13 +0000 (12:13 +0000)
committerShreshtha Sahu <ssahu@nvidia.com>
Wed, 13 Aug 2014 05:42:07 +0000 (22:42 -0700)
Define empty trace functions if CONFIG_MMC_BLOCK is
not defined.

Bug 1415700

Change-Id: I9072a80ed2859be2dfa56651e569adbc9684f7a9
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/450333
Tested-by: Manoj Chourasia <mchourasia@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
include/trace/events/mmc.h

index 82b368dbcefc5f604fef14457258c81493a5241c..b6d200b311d996c02f13b6febfc47d4afbae0321 100644 (file)
 #include <linux/mmc/mmc.h>
 #include <linux/mmc/core.h>
 
+/* create empty functions when MMC_BLOCK is disabled */
+#if !defined(CONFIG_MMC_BLOCK_BOUNCE)
+#undef DEFINE_EVENT
+#define DEFINE_EVENT(evt_class, name, proto, ...) \
+static inline void trace_ ## name(proto) {}
+
+#undef DEFINE_EVENT_CONDITION
+#define DEFINE_EVENT_CONDITION(template, name, proto,          \
+                              args, cond)                      \
+static inline void trace_ ## name(proto) {}
+#endif /* !CONFIG_MMC_BLOCK_BOUNCE || __CHECKER__ */
+
 /*
  * Unconditional logging of mmc block erase operations,
  * including cmd, address, size