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