diff options
author | Matias Elo <matias.elo@nokia.com> | 2021-05-26 11:23:11 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2021-05-26 15:56:32 +0300 |
commit | ce0f58291aa87b856c7df2501c8e7de9a16a9b5d (patch) | |
tree | ec8f42fce582fb0400074c34cdf1aa2a4f070cf7 /platform | |
parent | 41d9834fa8a8b2f340b4858d021a276e1b74d8df (diff) |
linux-dpdk: comment empty functions
Static code checker complains about empty functions. Add a line of code or
a comment into each function.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'platform')
-rw-r--r-- | platform/linux-dpdk/odp_schedule_eventdev.c | 26 | ||||
-rw-r--r-- | platform/linux-dpdk/odp_timer.c | 1 |
2 files changed, 19 insertions, 8 deletions
diff --git a/platform/linux-dpdk/odp_schedule_eventdev.c b/platform/linux-dpdk/odp_schedule_eventdev.c index 8dc5470f9..f7b6bbb8f 100644 --- a/platform/linux-dpdk/odp_schedule_eventdev.c +++ b/platform/linux-dpdk/odp_schedule_eventdev.c @@ -726,10 +726,12 @@ static void schedule_resume(void) static void schedule_release_atomic(void) { + /* Nothing to do */ } static void schedule_release_ordered(void) { + /* Nothing to do */ } static uint64_t schedule_wait_time(uint64_t ns) @@ -788,9 +790,9 @@ static int schedule_thr_rem(odp_schedule_group_t group, int thr) return 0; } -/* This function is a no-op */ -static void schedule_prefetch(int num ODP_UNUSED) +static void schedule_prefetch(int num) { + (void)num; } static int schedule_num_prio(void) @@ -972,33 +974,41 @@ static int schedule_group_info(odp_schedule_group_t group, return ret; } -static void schedule_order_lock(uint32_t lock_index ODP_UNUSED) +static void schedule_order_lock(uint32_t lock_index) { + (void)lock_index; } -static void schedule_order_unlock(uint32_t lock_index ODP_UNUSED) +static void schedule_order_unlock(uint32_t lock_index) { + (void)lock_index; } -static void schedule_order_unlock_lock(uint32_t unlock_index ODP_UNUSED, - uint32_t lock_index ODP_UNUSED) +static void schedule_order_unlock_lock(uint32_t unlock_index, + uint32_t lock_index) { + (void)unlock_index; + (void)lock_index; } -static void schedule_order_lock_start(uint32_t lock_index ODP_UNUSED) +static void schedule_order_lock_start(uint32_t lock_index) { + (void)lock_index; } -static void schedule_order_lock_wait(uint32_t lock_index ODP_UNUSED) +static void schedule_order_lock_wait(uint32_t lock_index) { + (void)lock_index; } static void order_lock(void) { + /* Nothing to do */ } static void order_unlock(void) { + /* Nothing to do */ } static int schedule_capability(odp_schedule_capability_t *capa) diff --git a/platform/linux-dpdk/odp_timer.c b/platform/linux-dpdk/odp_timer.c index f024086a8..28b4b17a9 100644 --- a/platform/linux-dpdk/odp_timer.c +++ b/platform/linux-dpdk/odp_timer.c @@ -428,6 +428,7 @@ odp_timer_pool_t odp_timer_pool_create(const char *name, void odp_timer_pool_start(void) { + /* Nothing to do */ } void odp_timer_pool_destroy(odp_timer_pool_t tp) |