kvm-ia64.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Zhang, Yang" <yang.zhang@intel.com>
To: kvm-ia64@vger.kernel.org
Subject: [PATCH] kvm : qemu: fix compilation error with old kernel
Date: Thu, 05 Mar 2009 07:10:22 +0000	[thread overview]
Message-ID: <10C63FAD690C13458F0B32BCED571F1406DB0FCD@pdsmsx502.ccr.corp.intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 807 bytes --]

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 <yang.zhang@intel.com>
---
 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

[-- Attachment #2: 0001-kvm-qemu-fix-compilation-error-with-old-kernel.patch --]
[-- Type: application/octet-stream, Size: 970 bytes --]

From f27e1ecbc5b86d43e551551c6bf96576383fb185 Mon Sep 17 00:00:00 2001
From: Yang Zhang <yang.zhang@intel.com>
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 <yang.zhang@intel.com>
---
 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


             reply	other threads:[~2009-03-05  7:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-05  7:10 Zhang, Yang [this message]
2009-03-05 23:55 ` [PATCH] kvm : qemu: fix compilation error with old kernel Marcelo Tosatti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10C63FAD690C13458F0B32BCED571F1406DB0FCD@pdsmsx502.ccr.corp.intel.com \
    --to=yang.zhang@intel.com \
    --cc=kvm-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).