[PATCH] kvm : qemu: fix compilation error with old kernel

"Zhang, Yang" <[email protected]>
Newsgroups org.kernel.vger.kvm-ia64,org.kernel.vger.kvm
Message-ID <10C63FAD690C13458F0B32BCED571F1406DB0FCD@pdsmsx502.ccr.corp.intel.com>
The function hrtimer_start_expires() in the kvm-ia64.c is not supported before the kernel 2.6.28. 
So we need to hack it. 
please review it.  thanks


Signed-off-by: Yang Zhang <[email protected]>
---
 kernel/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/Makefile b/kernel/Makefile
index f8b341f..ebf31f8 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -30,7 +30,7 @@ unifdef = mv $1 $1.orig && cat unifdef.h $1.orig > $1 && rm $1.orig
 hack = $(call _hack,$T/$(strip $1))
 
 hack-files-x86 = kvm_main.c mmu.c vmx.c svm.c x86.c irq.h lapic.c i8254.c kvm_trace.c
-hack-files-ia64 = kvm_main.c kvm_fw.c kvm_lib.c
+hack-files-ia64 = kvm_main.c kvm_fw.c kvm_lib.c kvm-ia64.c
 
 hack-files = $(hack-files-$(ARCH_DIR))
 
-- 
1.6.0.rc1
0001-kvm-qemu-fix-compilation-error-with-old-kernel.patch (application/octet-stream, 970 B)
From f27e1ecbc5b86d43e551551c6bf96576383fb185 Mon Sep 17 00:00:00 2001
From: Yang Zhang <[email protected]>
Date: Thu, 5 Mar 2009 01:36:50 -0500
Subject: [PATCH] kvm : qemu: fix compilation error with old kernel

The function hrtimer_start_expires() in the kvm-ia64.c is
not supported before the kernel 2.6.28. So we need to hack
it.

Signed-off-by: Yang Zhang <[email protected]>
---
 kernel/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/Makefile b/kernel/Makefile
index f8b341f..ebf31f8 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -30,7 +30,7 @@ unifdef = mv $1 $1.orig && cat unifdef.h $1.orig > $1 && rm $1.orig
 hack = $(call _hack,$T/$(strip $1))
 
 hack-files-x86 = kvm_main.c mmu.c vmx.c svm.c x86.c irq.h lapic.c i8254.c kvm_trace.c
-hack-files-ia64 = kvm_main.c kvm_fw.c kvm_lib.c
+hack-files-ia64 = kvm_main.c kvm_fw.c kvm_lib.c kvm-ia64.c
 
 hack-files = $(hack-files-$(ARCH_DIR))
 
-- 
1.6.0.rc1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.