Skip to content
Permalink
Browse files

kernel: exclude stubs from code coverage

These are stub functions that do nothing. Exclude from
coverage reports.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information...
andrewboie committed Jun 28, 2019
1 parent 1db9f18 commit c3d4e6506c49da34f4bfca7becde73f5ecf57b1b
Showing with 4 additions and 1 deletion.
  1. +4 −1 include/kernel.h
@@ -207,7 +207,7 @@ struct _k_object_assignment {
*/
void z_object_init(void *obj);
#else

/* LCOV_EXCL_START */
#define K_THREAD_ACCESS_GRANT(thread, ...)

/**
@@ -250,6 +250,7 @@ static inline void k_object_access_all_grant(void *object)
{
ARG_UNUSED(object);
}
/* LCOV_EXCL_STOP */
#endif /* !CONFIG_USERSPACE */

/**
@@ -326,6 +327,7 @@ __syscall void *k_object_alloc(enum k_objects otype);
*/
void k_object_free(void *obj);
#else
/* LCOV_EXCL_START */
static inline void *z_impl_k_object_alloc(enum k_objects otype)
{
ARG_UNUSED(otype);
@@ -337,6 +339,7 @@ static inline void k_obj_free(void *obj)
{
ARG_UNUSED(obj);
}
/* LCOV_EXCL_STOP */
#endif /* CONFIG_DYNAMIC_OBJECTS */

/** @} */

0 comments on commit c3d4e65

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