From: H. Peter Anvin Date: Wed, 17 Dec 2025 01:21:53 +0000 (-0800) Subject: linux/bitfield.h: replace __auto_type with auto X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa188edc671d4e2b9d88c1b48d2f4e577d6e6983;p=thirdparty%2Fkernel%2Flinux.git 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 (reviewer:BITMAP API) Signed-off-by: H. Peter Anvin (Intel) Signed-off-by: Yury Norov (NVIDIA) --- diff --git a/include/linux/bitfield.h b/include/linux/bitfield.h index 126dc5b380afa..54aeeef1f0ec7 100644 --- a/include/linux/bitfield.h +++ b/include/linux/bitfield.h @@ -8,6 +8,7 @@ #define _LINUX_BITFIELD_H #include +#include #include #include @@ -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); \