Date: Thu, 23 Aug 2018 16:06:03 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 230847] mm: vm_map.h prevents QEMU compilation Message-ID: <bug-230847-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230847 Bug ID: 230847 Summary: mm: vm_map.h prevents QEMU compilation Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: royger@freebsd.org Hello, While trying to compile the current version of QEMU I've got the following error: CC hw/usb/dev-bluetooth.o CC hw/usb/dev-smartcard-reader.o CC hw/usb/dev-mtp.o CC hw/usb/host-libusb.o CC hw/usb/host-stub.o CC hw/usb/xen-usb.o CC hw/virtio/virtio-bus.o CC hw/virtio/virtio-rng.o CC hw/virtio/virtio-pci.o CC hw/virtio/vhost-stub.o CC hw/watchdog/watchdog.o CC hw/watchdog/wdt_i6300esb.o CC hw/watchdog/wdt_ib700.o CC hw/xen/xen_backend.o CC hw/xen/xen_devconfig.o CC hw/xen/xen_pvdev.o In file included from /root/src/xen/tools/qemu-xen-dir/hw/usb/xen-usb.c:30: In file included from /root/src/xen/tools/qemu-xen-dir/include/hw/xen/xen_backend.h:4: In file included from /root/src/xen/tools/qemu-xen-dir/include/hw/xen/xen_common.h:19: In file included from /root/src/xen/tools/qemu-xen-dir/include/hw/pci/pci.h= :6: In file included from /root/src/xen/tools/qemu-xen-dir/include/sysemu/dma.h= :16: In file included from /root/src/xen/tools/qemu-xen-dir/include/block/block.h:10: /root/src/xen/tools/qemu-xen-dir/include/block/dirty-bitmap.h:86:68: error: expected ')' bool bdrv_dirty_iter_next_area(BdrvDirtyBitmapIter *iter, uint64_t max_offs= et, ^ /usr/include/vm/vm_map.h:188:26: note: expanded from macro 'max_offset' #define max_offset header.start /* (c) */ ^ /root/src/xen/tools/qemu-xen-dir/include/block/dirty-bitmap.h:86:31: note: = to match this '(' bool bdrv_dirty_iter_next_area(BdrvDirtyBitmapIter *iter, uint64_t max_offs= et, ^ CC hw/xen/xen-common.o CC migration/migration.o 1 error generated. CC migration/socket.o I'm not sure why vm_map.h gets included there, but in any case having macro names like max_offset is asking for trouble. I would like to ask for feedba= ck, but IMO the easier way to solve this is to rename the macro to VM_MAX_OFFSET (and VM_MIN_OFFSET). --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230847-227>