Skip to content

Commit 4b55ee2

Browse files
Flavio Ceolinnashif
authored andcommitted
arch: arc: 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 <[email protected]>
1 parent 03544f0 commit 4b55ee2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arch/arc/core/arc_smp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void arch_start_cpu(int cpu_num, k_thread_stack_t *stack, int sz,
6161
arc_cpu_wake_flag = cpu_num;
6262

6363
/* wait slave cpu to start */
64-
while (arc_cpu_wake_flag != 0) {
64+
while (arc_cpu_wake_flag != 0U) {
6565
;
6666
}
6767
}
@@ -102,7 +102,7 @@ void arch_sched_ipi(void)
102102
/* broadcast sched_ipi request to other cores
103103
* if the target is current core, hardware will ignore it
104104
*/
105-
for (i = 0; i < CONFIG_MP_NUM_CPUS; i++) {
105+
for (i = 0U; i < CONFIG_MP_NUM_CPUS; i++) {
106106
z_arc_connect_ici_generate(i);
107107
}
108108
}

arch/arc/core/mpu/arc_mpu_v4_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ static int arc_mpu_init(const struct device *arg)
830830
return -EINVAL;
831831
}
832832

833-
static_regions_num = 0;
833+
static_regions_num = 0U;
834834

835835
/* Disable MPU */
836836
arc_core_mpu_disable();

0 commit comments

Comments
 (0)