]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commitdiff
mmc: Move tracepoint creation and export symbols
authorDylan Reid <dgreid@chromium.org>
Tue, 3 Mar 2015 01:09:07 +0000 (17:09 -0800)
committerDylan Reid <dgreid@google.com>
Tue, 3 Mar 2015 19:19:17 +0000 (11:19 -0800)
Move the tracepoint creation to core from card, as core shouldn't depend
on card.

Also add EXPORT_SYMBOL_GPL calls to enable module build.

Change-Id: Ie39fcdadc0516df99600d0963efe09b6cd7a9bf8
Signed-off-by: Dylan Reid <dgreid@chromium.org>
drivers/mmc/card/block.c
drivers/mmc/core/core.c

index feb9bf5e4c17e9ef1a3daeb5d47a326dfd05103e..118db7ad69efbc409fa2c8aa217002f162728f62 100644 (file)
@@ -36,7 +36,6 @@
 #include <linux/compat.h>
 #include <linux/pm_runtime.h>
 
-#define CREATE_TRACE_POINTS
 #include <trace/events/mmc.h>
 
 #include <linux/mmc/ioctl.h>
index 7ee8abeea1277611bbfa9c7cd7a14efea37f1f2d..11655e90be538c5f13effee80656cf665fe9a571 100644 (file)
@@ -31,6 +31,7 @@
 #include <linux/of.h>
 #include <linux/wakelock.h>
 
+#define CREATE_TRACE_POINTS
 #include <trace/events/mmc.h>
 
 #include <linux/mmc/card.h>
 #include "sd_ops.h"
 #include "sdio_ops.h"
 
+EXPORT_TRACEPOINT_SYMBOL_GPL(mmc_blk_erase_start);
+EXPORT_TRACEPOINT_SYMBOL_GPL(mmc_blk_erase_end);
+EXPORT_TRACEPOINT_SYMBOL_GPL(mmc_blk_rw_start);
+EXPORT_TRACEPOINT_SYMBOL_GPL(mmc_blk_rw_end);
+
 /* If the device is not responding */
 #define MMC_CORE_TIMEOUT_MS    (10 * 60 * 1000) /* 10 minute timeout */