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.

include/linux: change "__auto_type" to "auto"

Replace instances of "__auto_type" with "auto" in include/linux.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>

+7 -7
+3 -3
include/linux/cleanup.h
··· 212 212 213 213 #define __free(_name) __cleanup(__free_##_name) 214 214 215 - #define __get_and_null(p, nullvalue) \ 215 + #define __get_and_null(p, nullvalue) \ 216 216 ({ \ 217 - __auto_type __ptr = &(p); \ 218 - __auto_type __val = *__ptr; \ 217 + auto __ptr = &(p); \ 218 + auto __val = *__ptr; \ 219 219 *__ptr = nullvalue; \ 220 220 __val; \ 221 221 })
+1 -1
include/linux/compiler.h
··· 190 190 #define data_race(expr) \ 191 191 ({ \ 192 192 __kcsan_disable_current(); \ 193 - __auto_type __v = (expr); \ 193 + auto __v = (expr); \ 194 194 __kcsan_enable_current(); \ 195 195 __v; \ 196 196 })
+3 -3
include/linux/minmax.h
··· 89 89 __cmp_once_unique(op, type, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_)) 90 90 91 91 #define __careful_cmp_once(op, x, y, ux, uy) ({ \ 92 - __auto_type ux = (x); __auto_type uy = (y); \ 92 + auto ux = (x); auto uy = (y); \ 93 93 BUILD_BUG_ON_MSG(!__types_ok(ux, uy), \ 94 94 #op"("#x", "#y") signedness error"); \ 95 95 __cmp(op, ux, uy); }) ··· 129 129 __careful_cmp(max, (x) + 0u + 0ul + 0ull, (y) + 0u + 0ul + 0ull) 130 130 131 131 #define __careful_op3(op, x, y, z, ux, uy, uz) ({ \ 132 - __auto_type ux = (x); __auto_type uy = (y);__auto_type uz = (z);\ 132 + auto ux = (x); auto uy = (y); auto uz = (z); \ 133 133 BUILD_BUG_ON_MSG(!__types_ok3(ux, uy, uz), \ 134 134 #op"3("#x", "#y", "#z") signedness error"); \ 135 135 __cmp(op, ux, __cmp(op, uy, uz)); }) ··· 203 203 * This macro checks @val/@lo/@hi to make sure they have compatible 204 204 * signedness. 205 205 */ 206 - #define clamp(val, lo, hi) __careful_clamp(__auto_type, val, lo, hi) 206 + #define clamp(val, lo, hi) __careful_clamp(auto, val, lo, hi) 207 207 208 208 /** 209 209 * clamp_t - return a value clamped to a given range using a given type