From deace35dca07d923906b79df4cf265e34a49fef2 Mon Sep 17 00:00:00 2001 From: Eduardo Habkost <ehabkost@redhat.com> Date: Wed, 20 May 2009 13:32:02 -0300 Subject: [PATCH] external module: don't redefined get_user_pages_fast() on RHEL-5.4 This is needed to build kvm on newer RHEL-5.4 kernels. We need this acked ASAP, otherwise I won't be able to build a new kvm package for RHEL-5.4 in time before freeze. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-ID: <20090520163202.GP4254@blackpad> Bugzilla: 501777 RH-Upstream-status: pending Acked-by: Markus Armbruster <armbru@redhat.com> Acked-by: john cooper <john.cooper@redhat.com> Acked-by: Luiz Capitulino <lcapitul@redhat.com> --- kernel/external-module-compat-comm.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/external-module-compat-comm.h b/kernel/external-module-compat-comm.h index 5649d33..2eaace3 100644 --- a/kernel/external-module-compat-comm.h +++ b/kernel/external-module-compat-comm.h @@ -560,7 +560,7 @@ struct rchan *kvm_relay_open(const char *base_filename, #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27) && !defined(CONFIG_HAVE_GET_USER_PAGES_FAST) static inline int get_user_pages_fast(unsigned long start, int nr_pages, int write, struct page **pages) -- 1.6.3.rc4.29.g8146