aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-11 19:37:54 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-11 19:37:54 +0000
commitad46db9add5bb5d8190f8d0eba4372f1fe6faa8a (patch)
treef0098ed56c953c65c116714335a03400785a7f9a /hw/virtio.c
parent807d517027d22869a3470b721a6c270f726d25e0 (diff)
Rename fls to qemu_fls
Fix compiler warning on OSX, reported by Andreas Faerber. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5982 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/virtio.c')
-rw-r--r--hw/virtio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio.c b/hw/virtio.c
index 24a4b26718..dba80f81c0 100644
--- a/hw/virtio.c
+++ b/hw/virtio.c
@@ -858,7 +858,7 @@ VirtIODevice *virtio_init_pci(PCIBus *bus, const char *name,
size = 20 + config_size;
if (size & (size-1))
- size = 1 << fls(size);
+ size = 1 << qemu_fls(size);
pci_register_io_region(pci_dev, 0, size, PCI_ADDRESS_SPACE_IO,
virtio_map);