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

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>

+4 -4
+4 -4
arch/nios2/include/asm/uaccess.h
··· 172 172 173 173 #define __put_user(x, ptr) \ 174 174 ({ \ 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); \ 177 177 __put_user_common(__pu_val, __pu_ptr); \ 178 178 }) 179 179 180 180 #define put_user(x, ptr) \ 181 181 ({ \ 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); \ 184 184 access_ok(__pu_ptr, sizeof(*__pu_ptr)) ? \ 185 185 __put_user_common(__pu_val, __pu_ptr) : \ 186 186 -EFAULT; \