From: Carlo Marcelo Arenas Belon <carenas-kLeDWSohozoJb6fo7hG9ng@public.gmane.org>
To: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [PATCH] external module: include apicdef.h for kernel < 2.6.21
Date: Sun, 16 Dec 2007 17:17:45 -0600 [thread overview]
Message-ID: <20071216231745.GB27545@tapir> (raw)
In-Reply-To: <47651256.6050703-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
On Sun, Dec 16, 2007 at 01:56:06PM +0200, Avi Kivity wrote:
> Carlo Marcelo Arenas Belon wrote:
> > The following patch fixes building the kvm module for kernels older than
> > 2.6.21 and which were missing an include to <asm/apicdef.h> in <asm/io_apic.h>
> > resulting in the following error :
> >
> > include/asm/io_apic.h:61: error: 'MAX_IO_APICS' undeclared here (not in a function)
>
> Do all kernels/arches have this file?
apicdef.h has been around since 2.6.12 and was added to io_apic.h for 2.6.21
as can be seen in :
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=58a53b246b4aed95f3f93b45828c8d9f26b1cfcb
as for arches, it is only available in i386 and x86_64 (and in the merged x86
for 2.6.24) but the same is true for io_apic.h
> maybe a #ifndef/#define/#endif sequence is better here.
for 2.6.21 and 2.6.19 yes, but 2.6.16 needs also FIX_IO_APIC_BASE_0 and
__fix_to_virt to build and therefore <asm/fixmap.h> (which then includes
apicdef.h)
I agree though that and #if KV/#include/#endif is not good as it doesn't
stress the fact that this problem is only visible for CONFIG_SMP=no for old
kernels so don't commit this one just yet as it is missing context and is only
the first out of 5 patches that I'd been testing for supporting all stable
gentoo kernels and that lead to the realization that 2.6.16 wouldn't work as I
reported before.
Carlo
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
prev parent reply other threads:[~2007-12-16 23:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-15 2:45 [PATCH] external module: include apicdef.h for kernel < 2.6.21 Carlo Marcelo Arenas Belon
2007-12-16 11:56 ` Avi Kivity
[not found] ` <47651256.6050703-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-12-16 23:17 ` Carlo Marcelo Arenas Belon [this message]
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=20071216231745.GB27545@tapir \
--to=carenas-kledwsohozojb6fo7hg9ng@public.gmane.org \
--cc=avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/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.