From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlo Marcelo Arenas Belon Subject: [PATCH] external module: define MAX_IO_APICS if missing Date: Wed, 19 Dec 2007 06:20:49 -0600 Message-ID: <20071219122049.GB28788@tapir> References: <20071218130023.GA19231@tapir> <4767F63A.9020701@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Avi Kivity Return-path: Content-Disposition: inline In-Reply-To: <4767F63A.9020701-atKUWr5tajBWk0Htik3J/w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Defines MAX_IO_APICS if not defined already with the same value used in and which wasn't loaded for non-smp kernels before 2.6.21 Signed-off-by: Carlo Marcelo Arenas Belon --- kernel/external-module-compat.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/kernel/external-module-compat.h b/kernel/external-module-compat.h index acd7ea5..3794a99 100644 --- a/kernel/external-module-compat.h +++ b/kernel/external-module-compat.h @@ -558,6 +558,11 @@ static inline void blahblah(void) #endif +/* apicdef.h doesn't get included before 2.6.21 if non-smp */ +#ifndef MAX_IO_APICS +#define MAX_IO_APICS 64 +#endif + /* X86_FEATURE_NX is missing in some x86_64 kernels */ #include -- 1.5.2.5 ------------------------------------------------------------------------- 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