From: Sasha Levin <sashal@kernel.org>
To: David Laight <david.laight.linux@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>,
Masami Hiramatsu <mhiramat@kernel.org>,
Beau Belgrave <beaub@linux.microsoft.com>,
linux-trace-kernel@vger.kernel.org, Shuah Khan <shuah@kernel.org>,
linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] selftests/user_events: cast pointers through uintptr_t
Date: Thu, 5 Nov 2026 07:48:17 -0500 [thread overview]
Message-ID: <20261105124817.1532094-1-sashal@kernel.org> (raw)
In-Reply-To: <20261105110333.0fa21741@pumpkin>
On Thu, Nov 05, 2026 at 11:03:33AM +0000, David Laight wrote:
>On Tue, 3 Nov 2026 11:39:13 -0500
>Sasha Levin <sashal@kernel.org> wrote:
>
>> 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
prev parent reply other threads:[~2026-11-05 12:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 16:39 [PATCH] selftests/user_events: cast pointers through uintptr_t Sasha Levin
2026-11-05 11:03 ` David Laight
2026-11-05 12:48 ` Sasha Levin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261105124817.1532094-1-sashal@kernel.org \
--to=sashal@kernel.org \
--cc=beaub@linux.microsoft.com \
--cc=david.laight.linux@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mhiramat@kernel.org \
--cc=rostedt@goodmis.org \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox