From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH] fix build when CONFIG_COMPAT disabled Date: Thu, 11 Jan 2007 15:47:25 +0000 Message-ID: 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: <45A668F1.76E4.0078.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , xen-devel@lists.xensource.com Cc: John Levon List-Id: xen-devel@lists.xenproject.org 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. -- Keir