From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [PATCH] fix build when CONFIG_COMPAT disabled Date: Thu, 11 Jan 2007 16:31:28 +0000 Message-ID: <45A67470.76E4.0078.0@novell.com> References: <45A668F1.76E4.0078.0@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.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com, Keir Fraser Cc: John Levon List-Id: xen-devel@lists.xenproject.org >>> Keir Fraser 11.01.07 16:47 >>> >On 11/1/07 15:42, "Jan Beulich" wrote: > >> Properly conditionalize two places where compat-only structure fields get >> accessed, and avoid compiler warnings on unused variables in two other >> places. > >Should we bother to #ifdef where we don't need to? It's ugly and the >compiler should be able to remove dead code where a condition evaluates to >zero at compile time: we already have IS_COMPAT(d) hardcoded to zero if >!CONFIG_COMPAT, which is enough to give the compiler a fair chance. Generally no, but in the one case in the patch we have to, as the structure member (mm_arg_xlat_l3) doesn't exist without CONFIG_COMPAT. Jan