From 4658d931f6072f6998c2ea0f43d87111a1fc8a2e Mon Sep 17 00:00:00 2001 From: Dylan Reid Date: Mon, 2 Mar 2015 17:09:07 -0800 Subject: [PATCH] ANDROID: 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 (cherry picked from commit da5fbd1e7e50fee3a8271f50d25c848d0ede64b3, from android-3.14) Signed-off-by: Brian Norris --- drivers/mmc/card/block.c | 1 - drivers/mmc/core/core.c | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 21aa3244029b..90e9738a129a 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -36,7 +36,6 @@ #include #include -#define CREATE_TRACE_POINTS #include #include diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 3e54185bc985..9fab52559a8c 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -30,6 +30,7 @@ #include #include +#define CREATE_TRACE_POINTS #include #include @@ -48,6 +49,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 */ -- 2.34.1