From 89430b33e9d7a44ee7e30b90661344548fa9b975 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Tue, 2 Jul 2019 16:33:40 -0700 Subject: [PATCH] include: gcov: fix compilation error These empty functions needed to be declared static inline or we get build errors if the header is included by more than one C file. Signed-off-by: Andrew Boie --- include/debug/gcov.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/debug/gcov.h b/include/debug/gcov.h index 83f2b8bc1ba..b14f4be0a61 100644 --- a/include/debug/gcov.h +++ b/include/debug/gcov.h @@ -11,8 +11,8 @@ void gcov_coverage_dump(void); void gcov_static_init(void); #else -void gcov_coverage_dump(void) { } -void gcov_static_init(void) { } +static inline void gcov_coverage_dump(void) { } +static inline void gcov_static_init(void) { } #endif /* CONFIG_COVERAGE */