summaryrefslogtreecommitdiffstats
path: root/arch/arm/kvm/mmio.c
diff options
context:
space:
mode:
authorMarc Zyngier2012-10-03 12:17:02 +0200
committerChristoffer Dall2013-03-07 00:48:42 +0100
commitdb730d8d623a0826f7fb6b74e890d3eb97a1b7a3 (patch)
treef70fd526d947afd6c3d43fc36e4ededef78e9788 /arch/arm/kvm/mmio.c
parentKVM: ARM: Fix wrong address in comment (diff)
downloadkernel-qcow2-linux-db730d8d623a0826f7fb6b74e890d3eb97a1b7a3.tar.gz
kernel-qcow2-linux-db730d8d623a0826f7fb6b74e890d3eb97a1b7a3.tar.xz
kernel-qcow2-linux-db730d8d623a0826f7fb6b74e890d3eb97a1b7a3.zip
ARM: KVM: convert GP registers from u32 to unsigned long
On 32bit ARM, unsigned long is guaranteed to be a 32bit quantity. On 64bit ARM, it is a 64bit quantity. In order to be able to share code between the two architectures, convert the registers to be unsigned long, so the core code can be oblivious of the change. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm/kvm/mmio.c')
-rw-r--r--arch/arm/kvm/mmio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kvm/mmio.c b/arch/arm/kvm/mmio.c
index 98a870ff1a5c..c186bc910715 100644
--- a/arch/arm/kvm/mmio.c
+++ b/arch/arm/kvm/mmio.c
@@ -33,7 +33,7 @@
*/
int kvm_handle_mmio_return(struct kvm_vcpu *vcpu, struct kvm_run *run)
{
- __u32 *dest;
+ unsigned long *dest;
unsigned int len;
int mask;