Re: [PATCH] selftests/user_events: cast pointers through uintptr_t

From
Sasha Levin <sashal@kernel.org>
Date
2026-11-05 12:48:19
Also in
linux-kselftest, lkml
Reply to
David Laight, 2026-11-05
On Thu, Nov 05, 2026 at 11:03:33AM +0000, David Laight wrote:
On Tue,  3 Nov 2026 11:39:13 -0500
Sasha Levin [off-list ref] wrote:
quoted
 	reg.size = sizeof(reg);
-	reg.name_args = (__u64)full_args;
+	reg.name_args = (__u64)(uintptr_t)full_args;
I'm sure you can't need both casts.
It works as is, but you're right, the assignment widens the uintptr_t on its
own and the (__u64) isn't needed. Happy to respin without it if the maintainers
prefer.

-- 
Thanks,
Sasha
Thread (3 messages) 3 messages, 2 authors, last reply 7d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help