RE: [PATCH]Export the symbol ia64_patch_imm64.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Luck, Tony wrote:
> Why does this need to be exported?  I'm assuming
> that kvm is involved ... but you should provide
> some details in the patch so that the GIT commit
> will have some descriptive value.

Okay, added in the updated version. 
 
> Is it a legacy case?  If not, then we should use
> EXPORT_SYMBOL_GPL.
Since kvm is only merged into linux-2.6.26 and newer version, we don't
need to consider legacy cases. So EXPORT_SYMBOL_GPL is better, Thanks!
Xiantao

>From 15760b3bf350de562f7138fc84d128369543f17f Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <xiantao.zhang@xxxxxxxxx>
Date: Tue, 9 Sep 2008 09:52:07 +0800
Subject: [PATCH] ia64: Export the symbol ia64_patch_imm64.

In kvm module, it uses ia64_patch_imm64 to patch some instructions of
itself
to reduce cost, when it calls PAL virtualization services.

Signed-off-by: Xiantao Zhang <xiantao.zhang@xxxxxxxxx>
---
 arch/ia64/kernel/ia64_ksyms.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/ia64/kernel/ia64_ksyms.c
b/arch/ia64/kernel/ia64_ksyms.c
index 6da1f20..b872f54 100644
--- a/arch/ia64/kernel/ia64_ksyms.c
+++ b/arch/ia64/kernel/ia64_ksyms.c
@@ -86,6 +86,9 @@ EXPORT_SYMBOL(ia64_save_scratch_fpregs);
 #include <asm/unwind.h>
 EXPORT_SYMBOL(unw_init_running);
 
+#include <asm/patch.h>
+EXPORT_SYMBOL_GPL(ia64_patch_imm64);
+
 #ifdef ASM_SUPPORTED
 # ifdef CONFIG_SMP
 #  if (__GNUC__ == 3 && __GNUC_MINOR__ < 3)
-- 
1.5.1

Attachment: 0001-ia64-Export-the-symbol-ia64_patch_imm64.patch
Description: 0001-ia64-Export-the-symbol-ia64_patch_imm64.patch


[Index of Archives]     [Linux KVM Devel]     [Linux Virtualization]     [Big List of Linux Books]     [Linux SCSI]     [Yosemite Forum]

  Powered by Linux