From 47342c7683c699c43ee96629a0e70125211d1d24 Mon Sep 17 00:00:00 2001 From: Shreyas K K Date: Tue, 2 Mar 2021 16:59:07 +0530 Subject: [PATCH] drivers: qcom: boot_stats: Fix compiler error Fix compiler error due to multiple definitions of boot_marker_enabled function. Change-Id: Ibeb5a33e8b13ad97d9109847c412a2442979653e Signed-off-by: Shreyas K K --- include/soc/qcom/boot_stats.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/soc/qcom/boot_stats.h b/include/soc/qcom/boot_stats.h index 8ccef8943da8..b2a60c295327 100644 --- a/include/soc/qcom/boot_stats.h +++ b/include/soc/qcom/boot_stats.h @@ -1,11 +1,13 @@ /* SPDX-License-Identifier: GPL-2.0-only * Copyright (c) 2011-2021, The Linux Foundation. All rights reserved. */ +#ifndef __QCOM_BOOT_STATS_H__ +#define __QCOM_BOOT_STATS_H__ #ifdef CONFIG_MSM_BOOT_TIME_MARKER void place_marker(const char *name); void destroy_marker(const char *name); -int boot_marker_enabled(void) { return 1; } +static inline int boot_marker_enabled(void) { return 1; } #else static inline int init_bootkpi(void) { return 0; } static inline void exit_bootkpi(void) { }; @@ -13,3 +15,4 @@ static inline void place_marker(char *name) { }; static inline void destroy_marker(const char *name) { }; static inline int boot_marker_enabled(void) { return 0; } #endif +#endif /* __QCOM_BOOT_STATS_H__ */