Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5e0c47e authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

blackfin/uaccess: fix sparse errors



virtio wants to read bitwise types from userspace using get_user.  At the
moment this triggers sparse errors, since the value is passed through an
integer.

Fix that up using __force.

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Acked-by: default avatarSteven Miao <realmz6@gmail.com>
parent 7f0db2be
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -147,7 +147,7 @@ static inline int bad_user_access_length(void)
		}						\
	} else							\
		_err = -EFAULT;					\
	x = (typeof(*(ptr)))_val;				\
	x = (__force typeof(*(ptr)))_val;			\
	_err;							\
})