linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/5] powerpc/kvm: Clarify __user annotations
@ 2016-07-12  0:54 Daniel Axtens
  2016-07-12  0:54 ` [PATCH v2 2/5] powerpc/xics: Fully qualify cast to silence sparse Daniel Axtens
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Daniel Axtens @ 2016-07-12  0:54 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: arnd, Daniel Axtens

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>
---
 arch/powerpc/kvm/book3s_64_vio.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/powerpc/kvm/book3s_64_vio.c b/arch/powerpc/kvm/book3s_64_vio.c
index 18cf6d1f8174..c379ff5a4438 100644
--- a/arch/powerpc/kvm/book3s_64_vio.c
+++ b/arch/powerpc/kvm/book3s_64_vio.c
@@ -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)
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-07-15 10:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-12  0:54 [PATCH v2 1/5] powerpc/kvm: Clarify __user annotations Daniel Axtens
2016-07-12  0:54 ` [PATCH v2 2/5] powerpc/xics: Fully qualify cast to silence sparse Daniel Axtens
2016-07-12  0:54 ` [PATCH v2 3/5] powerpc/kernel: Clean up some sparse warnings Daniel Axtens
2016-07-12  0:54 ` [PATCH v2 4/5] powerpc/sparse: Pass endianness to sparse Daniel Axtens
2016-07-15 10:53   ` [v2,4/5] " Michael Ellerman
2016-07-12  0:54 ` [PATCH v2 5/5] powerpc/sparse: Make ppc_md.{halt, restart} __noreturn Daniel Axtens
2016-07-15 10:53   ` [v2,5/5] " Michael Ellerman
2016-07-15 10:53 ` [v2,1/5] powerpc/kvm: Clarify __user annotations Michael Ellerman

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 NNTP newsgroup(s).