]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tools/virtio: replace "__auto_type" with "auto"
authorH. Peter Anvin <hpa@zytor.com>
Sun, 20 Jul 2025 06:47:22 +0000 (23:47 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 8 Dec 2025 23:32:15 +0000 (15:32 -0800)
Replace one instance of "__auto_type" with "auto" in:

tools/virtio/linux/compiler.h

This file *does* include <linux/compiler_types.h> directly, so there
is no need to duplicate the definition.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
tools/virtio/linux/compiler.h

index 204ef0e9f54232fb4525c1be443f9140dfd56722..725b93bfeee1749cc4e6430b30bdb6feec7f28f4 100644 (file)
@@ -31,7 +31,7 @@
  */
 #define data_race(expr)                                                        \
 ({                                                                     \
-       __auto_type __v = (expr);                                       \
+       auto __v = (expr);                                              \
        __v;                                                            \
 })