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 <shrekk@codeaurora.org>
This commit is contained in:
Shreyas K K 2021-03-02 16:59:07 +05:30
parent 5ac088fc31
commit 47342c7683

View File

@ -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__ */