From: Olaf Hering Subject: [PATCH] pv drivers: wrap xen_cpuid_base() Date: Mon, 23 Jan 2012 14:49:59 +0100 Message-ID: <88bddf1f0bafade64316.1327326599@probook.site> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Olaf Hering # Date 1327325262 -3600 # Node ID 88bddf1f0bafade6431651c5257bd02780596579 # Parent 80fdf2182bc62ca358ba2f1a3513b47a4f8d9dfd pv drivers: wrap xen_cpuid_base() Allow compilation of PVonHVM drivers with forward-ported xenlinux sources in openSuSE 12.1. xen_cpuid_base() is now in mainline, the copy in the xen tree leads to a compilation error. Signed-off-by: Olaf Hering diff -r 80fdf2182bc6 -r 88bddf1f0baf unmodified_drivers/linux-2.6/platform-pci/platform-pci.c --- a/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c +++ b/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c @@ -118,6 +118,7 @@ unsigned long alloc_xen_mmio(unsigned lo #ifndef __ia64__ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) static uint32_t xen_cpuid_base(void) { uint32_t base, eax, ebx, ecx, edx; @@ -136,6 +137,7 @@ static uint32_t xen_cpuid_base(void) return 0; } +#endif static int init_hypercall_stubs(void) {