Skip to content
Permalink
Browse files

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 <andrew.p.boie@intel.com>
  • Loading branch information...
andrewboie committed Jul 2, 2019
1 parent 2f95f4a commit 89430b33e9d7a44ee7e30b90661344548fa9b975
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 */

0 comments on commit 89430b3

Please sign in to comment.
You can’t perform that action at this time.