From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlo Marcelo Arenas Belon Subject: [PATCH] external module: include apicdef.h for kernel < 2.6.21 Date: Fri, 14 Dec 2007 20:45:09 -0600 Message-ID: <20071215024509.GA24378@tapir> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: Content-Disposition: inline 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 The following patch fixes building the kvm module for kernels older than 2.6.21 and which were missing an include to in resulting in the following error : include/asm/io_apic.h:61: error: 'MAX_IO_APICS' undeclared here (not in a function) Signed-off-by: Carlo Marcelo Arenas Belon --- kernel/external-module-compat.h | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/kernel/external-module-compat.h b/kernel/external-module-compat.h index 1dc5a96..510bca4 100644 --- a/kernel/external-module-compat.h +++ b/kernel/external-module-compat.h @@ -537,8 +537,12 @@ out: #define CONFIG_HAS_IOMEM 1 #endif -/* Some kernels don't make dest_* available with some configs. */ +/* io_apic.h was missing this include in old versions of the headers */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21) +#include +#endif +/* Some kernels don't make dest_* available with some configs. */ #include #ifndef dest_Fixed -- 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