From: vivekyadav1207731111@gmail.com
To: catalin.marinas@arm.com, will@kernel.org, shuah@kernel.org
Cc: linux-arm-kernel@lists.infradead.org,
linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org,
Vivek Yadav <vivekyadav1207731111@gmail.com>
Subject: [PATCH 3/3] kselftest/arm64: Add parentheses around sizeof for clarity
Date: Sat, 16 Aug 2025 22:25:52 -0700 [thread overview]
Message-ID: <20250817052552.8953-4-vivekyadav1207731111@gmail.com> (raw)
In-Reply-To: <20250817052552.8953-1-vivekyadav1207731111@gmail.com>
From: Vivek Yadav <vivekyadav1207731111@gmail.com>
Added parentheses around sizeof to make the expression clearer
and improve readability. This change has no functional impact.
```
[command]
./scripts/checkpatch.pl tools/testing/selftests/arm64/fp/sve-ptrace.c
[output]
WARNING: sizeof *sve should be sizeof(*sve)
```
Fixes: 0dca276ac4d20 : selftests: arm64: Add test for the SVE ptrace interface
Signed-off-by: Vivek Yadav <vivekyadav1207731111@gmail.com>
---
tools/testing/selftests/arm64/fp/sve-ptrace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/arm64/fp/sve-ptrace.c b/tools/testing/selftests/arm64/fp/sve-ptrace.c
index b22303778fb0..90c56b38dabf 100644
--- a/tools/testing/selftests/arm64/fp/sve-ptrace.c
+++ b/tools/testing/selftests/arm64/fp/sve-ptrace.c
@@ -115,7 +115,7 @@ static struct user_sve_header *get_sve(pid_t pid, const struct vec_type *type,
{
struct user_sve_header *sve;
void *p;
- size_t sz = sizeof *sve;
+ size_t sz = sizeof(*sve);
struct iovec iov;
while (1) {
--
2.25.1
next prev parent reply other threads:[~2025-08-17 5:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-17 5:25 [PATCH 0/3] kselftest/arm64: Cleanups and readability fixes vivekyadav1207731111
2025-08-17 5:25 ` [PATCH 1/3] kselftest/arm64: Remove extra blank line vivekyadav1207731111
2025-08-17 5:25 ` [PATCH 2/3] kselftest/arm64: Supress warning and improve readability vivekyadav1207731111
2025-08-17 5:25 ` vivekyadav1207731111 [this message]
2025-08-24 6:13 [PATCH 0/3] kselftest/arm64: Cleanups and readability fixes vivekyadav1207731111
2025-08-24 6:14 ` [PATCH 3/3] kselftest/arm64: Add parentheses around sizeof for clarity vivekyadav1207731111
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=20250817052552.8953-4-vivekyadav1207731111@gmail.com \
--to=vivekyadav1207731111@gmail.com \
--cc=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=shuah@kernel.org \
--cc=will@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
all inboxes | Powered by JetHome®