Commit add9b1be authored by H. Peter Anvin's avatar H. Peter Anvin
Browse files

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: default avatarDinh Nguyen <dinguyen@kernel.org>
Signed-off-by: default avatarH. Peter Anvin (Intel) <hpa@zytor.com>
parent 75beb7ef
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -172,15 +172,15 @@ do { \

#define __put_user(x, ptr)						\
({									\
	__auto_type __pu_ptr = (ptr);					\
	typeof(*__pu_ptr) __pu_val = (typeof(*__pu_ptr))(x);		\
	auto __pu_ptr = (ptr);						\
	auto __pu_val = (typeof(*__pu_ptr))(x);				\
	__put_user_common(__pu_val, __pu_ptr);				\
})

#define put_user(x, ptr)						\
({									\
	__auto_type __pu_ptr = (ptr);					\
	typeof(*__pu_ptr) __pu_val = (typeof(*__pu_ptr))(x);		\
	auto __pu_ptr = (ptr);						\
	auto __pu_val = (typeof(*__pu_ptr))(x);				\
	access_ok(__pu_ptr, sizeof(*__pu_ptr)) ?			\
		__put_user_common(__pu_val, __pu_ptr) :			\
		-EFAULT;						\