]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/mm: use __auto_type in swap() macro
authorPranav Tyagi <pranav.tyagi03@gmail.com>
Wed, 30 Jul 2025 14:23:01 +0000 (19:53 +0530)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 13 Sep 2025 23:54:44 +0000 (16:54 -0700)
commit6de1ef1ca39a07fe1c17f3f73a74106543eae127
tree5e8624880672d3388dfffda22f4a5b9b0bbc3801
parent9a42aed48421390155037460a3f2fd510fa6df76
selftests/mm: use __auto_type in swap() macro

Replace typeof() with __auto_type in the swap() macro in uffd-stress.c.
__auto_type was introduced in GCC 4.9 and reduces the compile time for all
compilers.  No functional changes intended.

Link: https://lkml.kernel.org/r/20250730142301.6754-1-pranav.tyagi03@gmail.com
Signed-off-by: Pranav Tyagi <pranav.tyagi03@gmail.com>
Reviewed-by: Joshua Hahn <joshua.hahnjy@gmail.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/uffd-stress.c