From 5f4ebb2c89e447fa1062ff92e46975da1a06c2ac Mon Sep 17 00:00:00 2001 From: Shreyas K K Date: Thu, 18 Feb 2021 14:16:15 +0530 Subject: [PATCH] drivers: qcom: boot_stats: Update function signature Update init_bootkpi and boot_marker_enabled as inline functions to avoid -Wunused-function compiler error. Change-Id: I61098c8bcc941d21a2ff30905cd93d82af1cf1f4 Signed-off-by: Shreyas K K --- include/soc/qcom/boot_stats.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/soc/qcom/boot_stats.h b/include/soc/qcom/boot_stats.h index 426014b7dc06..8ccef8943da8 100644 --- a/include/soc/qcom/boot_stats.h +++ b/include/soc/qcom/boot_stats.h @@ -7,9 +7,9 @@ void place_marker(const char *name); void destroy_marker(const char *name); int boot_marker_enabled(void) { return 1; } #else -static int init_bootkpi(void) { return 0; } +static inline int init_bootkpi(void) { return 0; } static inline void exit_bootkpi(void) { }; static inline void place_marker(char *name) { }; static inline void destroy_marker(const char *name) { }; -static int boot_marker_enabled(void) { return 0; } +static inline int boot_marker_enabled(void) { return 0; } #endif