From: John Levon Subject: Re: [PATCH] fix build when CONFIG_COMPAT disabled Date: Thu, 11 Jan 2007 16:17:51 +0000 Message-ID: <20070111161751.GA25768@totally.trollied.org.uk> References: <45A668F1.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com, Jan Beulich List-Id: xen-devel@lists.xenproject.org On Thu, Jan 11, 2007 at 03:47:25PM +0000, Keir Fraser 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. > > -- Keir The problem is the COMPAT_ARG_XLAT_VIRT_BASE used in that chunk. regards john