powerpc/kvm: Clarify __user annotations
authorDaniel Axtens <dja@axtens.net>
Tue, 12 Jul 2016 00:54:48 +0000 (10:54 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 14 Jul 2016 10:43:50 +0000 (20:43 +1000)
kvmppc_h_put_tce_indirect labels a u64 pointer as __user. It also
labelled the u64 where get_user puts the result as __user. This isn't
a pointer and so doesn't need to be labelled __user.

Split the u64 value definition onto a new line to make it clear that
it doesn't get the annotation.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kvm/book3s_64_vio.c

index 18cf6d1..c379ff5 100644 (file)
@@ -242,7 +242,8 @@ long kvmppc_h_put_tce_indirect(struct kvm_vcpu *vcpu,
        struct kvmppc_spapr_tce_table *stt;
        long i, ret = H_SUCCESS, idx;
        unsigned long entry, ua = 0;
-       u64 __user *tces, tce;
+       u64 __user *tces;
+       u64 tce;
 
        stt = kvmppc_find_table(vcpu, liobn);
        if (!stt)