* [PATCH] KVM: IA64: fix struct redefinition
@ 2011-11-24 10:09 Xiao Guangrong
2011-11-27 12:22 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Xiao Guangrong @ 2011-11-24 10:09 UTC (permalink / raw)
To: Avi Kivity; +Cc: Marcelo Tosatti, Xiao Guangrong, LKML, KVM
From: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
There is the same struct definition in ia64 and kvm common code:
arch/ia64/kvm//kvm-ia64.c: At top level:
arch/ia64/kvm//kvm-ia64.c:777:8: error: redefinition of ‘struct kvm_io_range’
include/linux/kvm_host.h:62:8: note: originally defined here
So, rename kvm_io_range to kvm_ia64_io_range in ia64 code
Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
---
arch/ia64/kvm/kvm-ia64.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c
index 92d9f1e..4050520 100644
--- a/arch/ia64/kvm/kvm-ia64.c
+++ b/arch/ia64/kvm/kvm-ia64.c
@@ -774,13 +774,13 @@ struct kvm *kvm_arch_alloc_vm(void)
return kvm;
}
-struct kvm_io_range {
+struct kvm_ia64_io_range {
unsigned long start;
unsigned long size;
unsigned long type;
};
-static const struct kvm_io_range io_ranges[] = {
+static const struct kvm_ia64_io_range io_ranges[] = {
{VGA_IO_START, VGA_IO_SIZE, GPFN_FRAME_BUFFER},
{MMIO_START, MMIO_SIZE, GPFN_LOW_MMIO},
{LEGACY_IO_START, LEGACY_IO_SIZE, GPFN_LEGACY_IO},
--
1.7.7.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] KVM: IA64: fix struct redefinition
2011-11-24 10:09 [PATCH] KVM: IA64: fix struct redefinition Xiao Guangrong
@ 2011-11-27 12:22 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2011-11-27 12:22 UTC (permalink / raw)
To: Xiao Guangrong; +Cc: Marcelo Tosatti, Xiao Guangrong, LKML, KVM
On 11/24/2011 12:09 PM, Xiao Guangrong wrote:
> From: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
>
> There is the same struct definition in ia64 and kvm common code:
> arch/ia64/kvm//kvm-ia64.c: At top level:
> arch/ia64/kvm//kvm-ia64.c:777:8: error: redefinition of ‘struct kvm_io_range’
> include/linux/kvm_host.h:62:8: note: originally defined here
>
> So, rename kvm_io_range to kvm_ia64_io_range in ia64 code
>
Thanks, applied.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-27 12:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-24 10:09 [PATCH] KVM: IA64: fix struct redefinition Xiao Guangrong
2011-11-27 12:22 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox