diff options
| author | Zhiqiang Tu <ztu@codeaurora.org> | 2018-05-30 16:51:56 +0800 |
|---|---|---|
| committer | Zhiqiang Tu <ztu@codeaurora.org> | 2018-05-30 16:51:56 +0800 |
| commit | e54fbdbc40b89793e17bed5ad1e952f8fdff041b (patch) | |
| tree | 98d38beac40c6b565c686fd50d1ff0d7ae6c27a7 | |
| parent | 5cb5749cd7fc25ad09fce7ce083aeb38e2a42fe5 (diff) | |
soc: qcom: boot_stats: Fix compilation issue
Fix the multiple definition issue of msm_timer_get_sclk_ticks
when CONFIG_MSM_BOOT_STATS is disabled.
Change-Id: Id2c263c48cec038be4354894fa57b203a5f764c6
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
| -rw-r--r-- | include/soc/qcom/boot_stats.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/soc/qcom/boot_stats.h b/include/soc/qcom/boot_stats.h index 5b82aa0bedc3..cebf4be1ebf6 100644 --- a/include/soc/qcom/boot_stats.h +++ b/include/soc/qcom/boot_stats.h @@ -33,7 +33,10 @@ int boot_stats_exit(void); unsigned long long int msm_timer_get_sclk_ticks(void); #else static inline int boot_stats_init(void) { return 0; } -unsigned long long int msm_timer_get_sclk_ticks(void) { return 0; } +static inline unsigned long long int msm_timer_get_sclk_ticks(void) +{ + return 0; +} #endif #ifdef CONFIG_MSM_BOOT_TIME_MARKER |
