diff options
author | Dylan Reid <dgreid@chromium.org> | 2015-03-02 17:09:07 -0800 |
---|---|---|
committer | Dylan Reid <dgreid@google.com> | 2015-03-03 11:19:17 -0800 |
commit | da5fbd1e7e50fee3a8271f50d25c848d0ede64b3 (patch) | |
tree | 0e322b69576e3746ed6e01127980961cf8c0b2d2 | |
parent | 3ea67633314ae9c0256960844a8aea3cb08bddbe (diff) |
mmc: Move tracepoint creation and export symbols
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>
-rw-r--r-- | drivers/mmc/card/block.c | 1 | ||||
-rw-r--r-- | drivers/mmc/core/core.c | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index feb9bf5e4c17..118db7ad69ef 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -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> diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 7ee8abeea127..11655e90be53 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -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> @@ -47,6 +48,11 @@ #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 */ |