kernel: Fix 10.4 violations

Both operands of an operator in which the usual arithmetic
conversions are performed shall have the same essential
type category.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2021-04-02 23:06:00 -07:00 committed by Anas Nashif
commit f6f951cc17
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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);