diff --git a/kernel/futex.c b/kernel/futex.c index d06641328b3..8dab1ab07c4 100644 --- a/kernel/futex.c +++ b/kernel/futex.c @@ -27,7 +27,7 @@ static struct z_futex_data *k_futex_find_data(struct k_futex *futex) int z_impl_k_futex_wake(struct k_futex *futex, bool wake_all) { k_spinlock_key_t key; - unsigned int woken = 0; + unsigned int woken = 0U; struct k_thread *thread; struct z_futex_data *futex_data; diff --git a/kernel/thread.c b/kernel/thread.c index f9e2f5b5cb0..1d6a7ec8373 100644 --- a/kernel/thread.c +++ b/kernel/thread.c @@ -540,7 +540,7 @@ char *z_setup_new_thread(struct k_thread *new_thread, Z_ASSERT_VALID_PRIO(prio, entry); #ifdef CONFIG_USERSPACE - __ASSERT((options & K_USER) == 0 || z_stack_is_user_capable(stack), + __ASSERT((options & K_USER) == 0U || z_stack_is_user_capable(stack), "user thread %p with kernel-only stack %p", new_thread, stack); z_object_init(new_thread);