summaryrefslogtreecommitdiffstats
path: root/vlib
diff options
context:
space:
mode:
Diffstat (limited to 'vlib')
-rw-r--r--vlib/vlib/pci/pci_config.h2
-rw-r--r--vlib/vlib/unix/pci.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/vlib/vlib/pci/pci_config.h b/vlib/vlib/pci/pci_config.h
index 38215d82e95..9cada51c3ef 100644
--- a/vlib/vlib/pci/pci_config.h
+++ b/vlib/vlib/pci/pci_config.h
@@ -417,7 +417,7 @@ pci_config_find_capability (pci_config_type0_regs_t * t, int cap_type)
while (ttl-- && next_offset >= 0x40)
{
c = (void *) t + (next_offset &~ 3);
- if (c->type == 0xff)
+ if ((u8) c->type == 0xff)
break;
if (c->type == cap_type)
return c;
diff --git a/vlib/vlib/unix/pci.c b/vlib/vlib/unix/pci.c
index 75241f3f1c6..b28b542b42e 100644
--- a/vlib/vlib/unix/pci.c
+++ b/vlib/vlib/unix/pci.c
@@ -420,7 +420,7 @@ u8 * format_os_pci_handle (u8 * s, va_list * va)
l->bus_address.slot, l->bus_address.function);
}
-static inline pci_device_registration_t *
+pci_device_registration_t * __attribute__((unused))
pci_device_next_registered (pci_device_registration_t * r)
{
uword i;