From: "Jan Beulich" Subject: Re: [PATCH 1/5] xen: improve changes to xen_add_to_physmap Date: Wed, 08 Aug 2012 08:14:35 +0100 Message-ID: <50222DFB0200007800093746@nat28.tlf.novell.com> References: <1344262325-26598-1-git-send-email-stefano.stabellini@eu.citrix.com> <501FFFB50200007800092FC7@nat28.tlf.novell.com> <502004BE0200007800093028@nat28.tlf.novell.com> <502131E202000078000933F9@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Jean Guyader , xen-devel , Ian Campbell , "JeanGuyader (3P)" , "Tim Deegan (3P)" List-Id: xen-devel@lists.xenproject.org >>> On 07.08.12 at 19:07, Stefano Stabellini wrote: > Regarding the name, maybe it should be XEN_ADD_TO_PHYSMAP_FIELD? Sounds fine (and I like this better than the ..._ARG one you used below. > #if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || (__STDC_VERSION__ >= 201112L) #if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || \ (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) avoiding compilers to warn about the use of the possibly undefined __STDC_VERSION__, which only got introduced after C89 was already published (and which e.g. gcc indeed doesn't define if the value would end up being below 199409L). > # define XEN_ADD_TO_PHYSMAP_ARG > #else > # define XEN_ADD_TO_PHYSMAP_ARG u > #endif Also, please don't forget to #undef it after use. Jan