Browse Source

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>
pull/34194/head
Flavio Ceolin 4 years ago committed by Anas Nashif
parent
commit
f6f951cc17
  1. 2
      kernel/futex.c
  2. 2
      kernel/thread.c

2
kernel/futex.c

@ -27,7 +27,7 @@ static struct z_futex_data *k_futex_find_data(struct k_futex *futex) @@ -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;

2
kernel/thread.c

@ -540,7 +540,7 @@ char *z_setup_new_thread(struct k_thread *new_thread, @@ -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);

Loading…
Cancel
Save