From d8f698703bdb60260f6063667f64f2737386a7e9 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sat, 27 Mar 2021 10:53:59 -0400 Subject: [PATCH] kernel: idle/z_sched_prio_cmp: match implementation to prototype The identifiers used in the declaration and definition of a function shall be identical [MISRAC2012-RULE_8_3-b] Signed-off-by: Anas Nashif --- kernel/include/ksched.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/include/ksched.h b/kernel/include/ksched.h index 464c9cd3f2b..3caf8f42715 100644 --- a/kernel/include/ksched.h +++ b/kernel/include/ksched.h @@ -54,7 +54,7 @@ int z_unpend_all(_wait_q_t *wait_q); void z_thread_priority_set(struct k_thread *thread, int prio); bool z_set_prio(struct k_thread *thread, int prio); void *z_get_next_switch_handle(void *interrupted); -void idle(void *a, void *b, void *c); +void idle(void *unused1, void *unused2, void *unused3); void z_time_slice(int ticks); void z_reset_time_slice(void); void z_sched_abort(struct k_thread *thread); @@ -216,7 +216,7 @@ static inline bool z_is_prio_lower_or_equal(int prio1, int prio2) return z_is_prio1_lower_than_or_equal_to_prio2(prio1, prio2); } -int32_t z_sched_prio_cmp(struct k_thread *t1, struct k_thread *t2); +int32_t z_sched_prio_cmp(struct k_thread *thread_1, struct k_thread *thread_2); static inline bool _is_valid_prio(int prio, void *entry_point) {