From: "Kirk Allan" Subject: [PATCH] Add redundant '&' to the __RING_SIZE macro for Windows. Date: Thu, 26 Oct 2006 12:23:39 -0600 Message-ID: <4540A8CB.39DB.0076.0@novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartAB8FA33B.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --=__PartAB8FA33B.0__= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline When building PV drivers for Windows guests using the Window's DDK, = without the '&' you get the compiler error, =93error C2057: expected = constant expression=94, when using the macro for array sizes. Applies to xen-3.0.3 and xen-unstable. signed-off-by Kirk Allan --=__PartAB8FA33B.0__= Content-Type: application/octet-stream; name="ring.h.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="ring.h.diff" LS0tIGEveGVuL2luY2x1ZGUvcHVibGljL2lvL3JpbmcuaAkyMDA2LTEwLTIwIDE0OjE1OjU5LjAw MDAwMDAwMCAtMDYwMAorKysgYi94ZW4vaW5jbHVkZS9wdWJsaWMvaW8vcmluZy5oCTIwMDYtMTAt MjYgMTE6NDM6MzUuMDAwMDAwMDAwIC0wNjAwCkBAIC0yNCw4ICsyNCwxMyBAQAogICogQSByaW5n IGNvbnRhaW5zIGFzIG1hbnkgZW50cmllcyBhcyB3aWxsIGZpdCwgcm91bmRlZCBkb3duIHRvIHRo ZSBuZWFyZXN0IAogICogcG93ZXIgb2YgdHdvIChzbyB3ZSBjYW4gbWFzayB3aXRoIChzaXplLTEp IHRvIGxvb3AgYXJvdW5kKS4KICAqLworI2lmZGVmIF9NU0NfVkVSCisjZGVmaW5lIF9fUklOR19T SVpFKF9zLCBfc3opIFwKKyAgICAoX19SRDMyKCgoX3N6KSAtIChsb25nKSYoX3MpLT5yaW5nICsg KGxvbmcpKF9zKSkgLyBzaXplb2YoKF9zKS0+cmluZ1swXSkpKQorI2Vsc2UKICNkZWZpbmUgX19S SU5HX1NJWkUoX3MsIF9zeikgXAogICAgIChfX1JEMzIoKChfc3opIC0gKGxvbmcpKF9zKS0+cmlu ZyArIChsb25nKShfcykpIC8gc2l6ZW9mKChfcyktPnJpbmdbMF0pKSkKKyNlbmRpZgogCiAvKgog ICogTWFjcm9zIHRvIG1ha2UgdGhlIGNvcnJlY3QgQyBkYXRhdHlwZXMgZm9yIGEgbmV3IGtpbmQg b2YgcmluZy4K --=__PartAB8FA33B.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__PartAB8FA33B.0__=--