From owner-freebsd-bugs@freebsd.org Thu Aug 23 16:06:08 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7CFC810915A7 for ; Thu, 23 Aug 2018 16:06:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 183C677DDF for ; Thu, 23 Aug 2018 16:06:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id D10AD10915A6; Thu, 23 Aug 2018 16:06:07 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AF15210915A5 for ; Thu, 23 Aug 2018 16:06:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 500B777DDE for ; Thu, 23 Aug 2018 16:06:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id AC91523243 for ; Thu, 23 Aug 2018 16:06:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w7NG668K078632 for ; Thu, 23 Aug 2018 16:06:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w7NG66Zj078614 for bugs@FreeBSD.org; Thu, 23 Aug 2018 16:06:06 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 230847] mm: vm_map.h prevents QEMU compilation Date: Thu, 23 Aug 2018 16:06:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: royger@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2018 16:06:08 -0000 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.=