Only part of the problem, Wconversion / Wpointer-arith will probably
complain as well.

Signed-off-by: Andrea Bastoni <[email protected]>
---
 hypervisor/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hypervisor/pci.c b/hypervisor/pci.c
index 553c8588..79b6f920 100644
--- a/hypervisor/pci.c
+++ b/hypervisor/pci.c
@@ -24,7 +24,7 @@
 
 #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)                            \
-- 
2.28.0

-- 
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/20201021145404.100463-23-andrea.bastoni%40tum.de.

Reply via email to