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:
parent
d0dac69fa9
commit
f6f951cc17
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
int z_impl_k_futex_wake(struct k_futex *futex, bool wake_all)
|
||||||
{
|
{
|
||||||
k_spinlock_key_t key;
|
k_spinlock_key_t key;
|
||||||
unsigned int woken = 0;
|
unsigned int woken = 0U;
|
||||||
struct k_thread *thread;
|
struct k_thread *thread;
|
||||||
struct z_futex_data *futex_data;
|
struct z_futex_data *futex_data;
|
||||||
|
|
||||||
|
|
|
@ -540,7 +540,7 @@ char *z_setup_new_thread(struct k_thread *new_thread,
|
||||||
Z_ASSERT_VALID_PRIO(prio, entry);
|
Z_ASSERT_VALID_PRIO(prio, entry);
|
||||||
|
|
||||||
#ifdef CONFIG_USERSPACE
|
#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",
|
"user thread %p with kernel-only stack %p",
|
||||||
new_thread, stack);
|
new_thread, stack);
|
||||||
z_object_init(new_thread);
|
z_object_init(new_thread);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue