From: Ian Campbell Subject: Re: [PATCH v6 3/5] xen: arm: include public/xen.h in foreign interface checking Date: Thu, 8 Aug 2013 15:44:57 +0100 Message-ID: <1375973097.14651.4.camel@kazak.uk.xensource.com> References: <1374234595.13645.59.camel@kazak.uk.xensource.com> <1374234671-6547-3-git-send-email-ian.campbell@citrix.com> <20994.27754.237516.509457@mariner.uk.xensource.com> <1375951127.619.68.camel@kazak.uk.xensource.com> <20995.31146.227555.510363@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20995.31146.227555.510363@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: keir@xen.org, stefano.stabellini@eu.citrix.com, tim@xen.org, xen-devel@lists.xen.org, julien.grall@citrix.com, Jan Beulich List-Id: xen-devel@lists.xenproject.org On Thu, 2013-08-08 at 11:57 +0100, Ian Jackson wrote: > Ian Campbell writes ("Re: [Xen-devel] [PATCH v6 3/5] xen: arm: include public/xen.h in foreign interface checking"): > > IIRC the magic in mkheader.py requires > > #ifdef FOO > > struct ... > > > > and cannot cope with > > > > #ifdef FOO > > #define BAR > > struct ... > > > > I could make the regex more complicated to cope with this case but just > > moving the #define next to its only usage seemed simpler. > > Urgh. Right. > > > I rewrote the final line of the changelog to be: > > > > Teach mkheader.py to cope with structs which are ifdef'd. This cannot cope > > with #defines between the #ifdef and the struct definitions, so move > > MAX_GUEST_CMDLINE to be next to its only usage. > > > > Does that suffice? > > Yes, thanks. I'll take this as an Ack unless you object. Although since it is 15:44 and I'm away on holiday tomorrow and Monday I shan't actually apply it until next week. Ian.