Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

H. Peter Anvin and committed by
Yury Norov (NVIDIA)
fa188edc 3609fa95

+3 -2
+3 -2
include/linux/bitfield.h
··· 8 8 #define _LINUX_BITFIELD_H 9 9 10 10 #include <linux/build_bug.h> 11 + #include <linux/compiler.h> 11 12 #include <linux/typecheck.h> 12 13 #include <asm/byteorder.h> 13 14 ··· 244 243 245 244 #define __field_prep(mask, val) \ 246 245 ({ \ 247 - __auto_type __mask = (mask); \ 246 + auto __mask = (mask); \ 248 247 typeof(__mask) __val = (val); \ 249 248 unsigned int __shift = BITS_PER_TYPE(__mask) <= 32 ? \ 250 249 __ffs(__mask) : __ffs64(__mask); \ ··· 253 252 254 253 #define __field_get(mask, reg) \ 255 254 ({ \ 256 - __auto_type __mask = (mask); \ 255 + auto __mask = (mask); \ 257 256 typeof(__mask) __reg = (reg); \ 258 257 unsigned int __shift = BITS_PER_TYPE(__mask) <= 32 ? \ 259 258 __ffs(__mask) : __ffs64(__mask); \