From: Keir Fraser <keir@xensource.com>
To: Jan Beulich <jbeulich@novell.com>,
xen-devel@lists.xensource.com, Keir Fraser <keir@xensource.com>
Cc: John Levon <levon@movementarian.org>
Subject: Re: [PATCH] fix build when CONFIG_COMPAT disabled
Date: Thu, 11 Jan 2007 17:57:45 +0000 [thread overview]
Message-ID: <C1CC2B19.77F9%keir@xensource.com> (raw)
In-Reply-To: <45A67470.76E4.0078.0@novell.com>
On 11/1/07 16:31, "Jan Beulich" <jbeulich@novell.com> wrote:
>> 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.
CONFIG_COMPAT isn't a real config option though. It's a function of the
architecture we're building for. So we don't need ifdef CONFIG_COMPAT in any
x86/64-specific code.
I'm very keen to get rid of CONFIG_* where possible. In x86 code we can
variously remove ifdefs or turn them into CONFIG_X86_64. We probably need to
keep CONFIG_COMPAT in some common code I guess.
This really follows my view that much of this new code should simply be
viewed as an always-on x86/64 extension, and that code should be propagated
down into arch/x86 and arch/x86/x86_64 as much as possible to reflect that.
-- Keir
next prev parent reply other threads:[~2007-01-11 17:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-11 15:42 [PATCH] fix build when CONFIG_COMPAT disabled Jan Beulich
2007-01-11 15:47 ` Keir Fraser
2007-01-11 16:17 ` John Levon
2007-01-11 16:31 ` Jan Beulich
2007-01-11 17:57 ` Keir Fraser [this message]
2007-01-12 0:10 ` John Levon
2007-01-12 7:49 ` Jan Beulich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C1CC2B19.77F9%keir@xensource.com \
--to=keir@xensource.com \
--cc=jbeulich@novell.com \
--cc=levon@movementarian.org \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.