On 28.10.20 22:09, Andrea Bastoni wrote:
> Only part of the problem, Wconversion would complain as well.
> 
> Signed-off-by: Andrea Bastoni <[email protected]>
> ---
>  hypervisor/pci.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/hypervisor/pci.c b/hypervisor/pci.c
> index 9274a0b1..6bf5e254 100644
> --- a/hypervisor/pci.c
> +++ b/hypervisor/pci.c
> @@ -24,7 +24,8 @@
>  
>  #define for_each_configured_pci_device(dev, cell)                    \
>       for ((dev) = (cell)->pci_devices;                               \
> -          (dev) - (cell)->pci_devices < (cell)->config->num_pci_devices; \
> +          ((dev) - (cell)->pci_devices) <                            \
> +                             (int)((cell)->config->num_pci_devices); \
>            (dev)++)
>  
>  #define for_each_pci_cap(cap, dev, counter)                          \
> 

Should be casted on the other end because is always dev >= pci_devices.
Fixed up on merge.

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/0669653f-b3a0-d098-5d10-a30a8affcb81%40siemens.com.

Reply via email to