Skip to content

Commit add9b1b

Browse files
author
H. Peter Anvin
committed
arch/nios2: replace "__auto_type" and adjacent equivalent with "auto"
Replace uses of "__auto_type" in arch/nios2/include/asm/uaccess.h with "auto", and equivalently convert an adjacent cast to the analogous form. Acked-by: Dinh Nguyen <dinguyen@kernel.org> Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
1 parent 75beb7e commit add9b1b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

arch/nios2/include/asm/uaccess.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,15 @@ do { \
172172

173173
#define __put_user(x, ptr) \
174174
({ \
175-
__auto_type __pu_ptr = (ptr); \
176-
typeof(*__pu_ptr) __pu_val = (typeof(*__pu_ptr))(x); \
175+
auto __pu_ptr = (ptr); \
176+
auto __pu_val = (typeof(*__pu_ptr))(x); \
177177
__put_user_common(__pu_val, __pu_ptr); \
178178
})
179179

180180
#define put_user(x, ptr) \
181181
({ \
182-
__auto_type __pu_ptr = (ptr); \
183-
typeof(*__pu_ptr) __pu_val = (typeof(*__pu_ptr))(x); \
182+
auto __pu_ptr = (ptr); \
183+
auto __pu_val = (typeof(*__pu_ptr))(x); \
184184
access_ok(__pu_ptr, sizeof(*__pu_ptr)) ? \
185185
__put_user_common(__pu_val, __pu_ptr) : \
186186
-EFAULT; \

0 commit comments

Comments
 (0)