summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2025-12-16 17:21:53 -0800
committerYury Norov (NVIDIA) <yury.norov@gmail.com>2026-01-06 12:14:10 -0500
commitfa188edc671d4e2b9d88c1b48d2f4e577d6e6983 (patch)
treeaea77709ec505891487384fcc5bab6a7256544f8 /include/linux
parent3609fa95fb0f2c1b099e69e56634edb8fc03f87c (diff)
linux/bitfield.h: replace __auto_type with auto
Replace "__auto_type" as described in commit: 2fb6915fa22d compiler_types.h: add "auto" as a macro for "__auto_type" [Yury: keep inclusions alphabetically ordered] Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk> (reviewer:BITMAP API) Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com> Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/bitfield.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/bitfield.h b/include/linux/bitfield.h
index 126dc5b380af..54aeeef1f0ec 100644
--- a/include/linux/bitfield.h
+++ b/include/linux/bitfield.h
@@ -8,6 +8,7 @@
#define _LINUX_BITFIELD_H
#include <linux/build_bug.h>
+#include <linux/compiler.h>
#include <linux/typecheck.h>
#include <asm/byteorder.h>
@@ -243,7 +244,7 @@ __MAKE_OP(64)
#define __field_prep(mask, val) \
({ \
- __auto_type __mask = (mask); \
+ auto __mask = (mask); \
typeof(__mask) __val = (val); \
unsigned int __shift = BITS_PER_TYPE(__mask) <= 32 ? \
__ffs(__mask) : __ffs64(__mask); \
@@ -252,7 +253,7 @@ __MAKE_OP(64)
#define __field_get(mask, reg) \
({ \
- __auto_type __mask = (mask); \
+ auto __mask = (mask); \
typeof(__mask) __reg = (reg); \
unsigned int __shift = BITS_PER_TYPE(__mask) <= 32 ? \
__ffs(__mask) : __ffs64(__mask); \