linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] selftests/filesystems: replace typeof() with __auto_type
@ 2025-08-06 10:11 Pranav Tyagi
  0 siblings, 0 replies; only message in thread
From: Pranav Tyagi @ 2025-08-06 10:11 UTC (permalink / raw)
  To: shuah
  Cc: brauner, amir73il, jhubbard, linux-kselftest, linux-kernel,
	Pranav Tyagi

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-08-06 10:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-06 10:11 [PATCH] selftests/filesystems: replace typeof() with __auto_type Pranav Tyagi

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).