On 22.10.20 19:58, Andrea Bastoni wrote:
> Signed-off-by: Andrea Bastoni <[email protected]>
> ---
>  hypervisor/arch/arm-common/gic-v2.c | 2 +-
>  hypervisor/arch/arm-common/gic-v3.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hypervisor/arch/arm-common/gic-v2.c 
> b/hypervisor/arch/arm-common/gic-v2.c
> index c5ad0607..6ca8cb0c 100644
> --- a/hypervisor/arch/arm-common/gic-v2.c
> +++ b/hypervisor/arch/arm-common/gic-v2.c
> @@ -277,7 +277,7 @@ static void gicv2_send_sgi(struct sgi *sgi)
>  
>  static int gicv2_inject_irq(u16 irq_id, u16 sender)
>  {
> -     int i;
> +     unsigned int i;
>       int first_free = -1;
>       u32 lr;
>       unsigned long elsr[2];
> diff --git a/hypervisor/arch/arm-common/gic-v3.c 
> b/hypervisor/arch/arm-common/gic-v3.c
> index 949c4598..152b07e4 100644
> --- a/hypervisor/arch/arm-common/gic-v3.c
> +++ b/hypervisor/arch/arm-common/gic-v3.c
> @@ -529,7 +529,7 @@ static void gicv3_eoi_irq(u32 irq_id, bool deactivate)
>  
>  static int gicv3_inject_irq(u16 irq_id, u16 sender)
>  {
> -     int i;
> +     unsigned int i;
>       int free_lr = -1;
>       u32 elsr;
>       u64 lr;
> 

Let's rename to 'n'. 'i' suggests 'integer'.

Jan

-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/b89f427b-67e7-7264-57de-d86819c5d53c%40siemens.com.

Reply via email to