From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlo Marcelo Arenas Belon Subject: [PATCH] external module: needed for kernel<=2.6.16 to define strcmp and memcpy Date: Wed, 19 Dec 2007 06:26:56 -0600 Message-ID: <20071219122656.GC28788@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 Fixes the following compilation error : in file included from kernel/include/linux/kvm_para.h:19, from kernel/external-module-compat.h:13, from :1: kernel/include/asm/kvm_para.h: In function 'kvm_para_available': kernel/include/asm/kvm_para.h:87: warning: implicit declaration of function 'memcpy' kernel/include/asm/kvm_para.h:92: warning: implicit declaration of function 'strcmp' In file included from include/linux/string.h:24, from include/linux/bitmap.h:8, from include/linux/cpumask.h:86, from include/linux/node.h:23, from include/linux/cpu.h:23, from kernel/external-module-compat.h:14, from :1: include/asm/string.h: At top level: include/asm/string.h:104: error: static declaration of 'strcmp' follows non-static declaration Signed-off-by: Carlo Marcelo Arenas Belon --- kernel/external-module-compat.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/kernel/external-module-compat.h b/kernel/external-module-compat.h index 3794a99..c6a7d03 100644 --- a/kernel/external-module-compat.h +++ b/kernel/external-module-compat.h @@ -9,6 +9,7 @@ #include #include +#include #include "include/linux/kvm.h" #include "include/linux/kvm_para.h" #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