From: Pranav Tyagi <pranav.tyagi03@gmail.com>
To: shuah@kernel.org
Cc: brauner@kernel.org, amir73il@gmail.com, jhubbard@nvidia.com,
linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org,
Pranav Tyagi <pranav.tyagi03@gmail.com>
Subject: [PATCH] selftests/filesystems: replace typeof() with __auto_type
Date: Wed, 6 Aug 2025 15:41:23 +0530 [thread overview]
Message-ID: <20250806101123.20478-1-pranav.tyagi03@gmail.com> (raw)
Replace typeof() with __auto_type in utils.c.
__auto_type was introduced in GCC 4.9 and reduces the compile time for
all compilers. No functional changes intended.
Signed-off-by: Pranav Tyagi <pranav.tyagi03@gmail.com>
---
tools/testing/selftests/filesystems/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/filesystems/utils.c b/tools/testing/selftests/filesystems/utils.c
index c43a69dffd83..95f202e2bfb7 100644
--- a/tools/testing/selftests/filesystems/utils.c
+++ b/tools/testing/selftests/filesystems/utils.c
@@ -34,7 +34,7 @@
#define syserror_set(__ret__, format, ...) \
({ \
- typeof(__ret__) __internal_ret__ = (__ret__); \
+ __auto_type __internal_ret__ = (__ret__); \
errno = labs(__ret__); \
fprintf(stderr, "%m - " format "\n", ##__VA_ARGS__); \
__internal_ret__; \
--
2.49.0
reply other threads:[~2025-08-06 10:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20250806101123.20478-1-pranav.tyagi03@gmail.com \
--to=pranav.tyagi03@gmail.com \
--cc=amir73il@gmail.com \
--cc=brauner@kernel.org \
--cc=jhubbard@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.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
all inboxes | Powered by JetHome®