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

Commit 876b2a00 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin Committed by Helge Deller
Browse files

parisc/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 avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent cf635f8d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -104,7 +104,7 @@ struct exception_data {
	    }                                           \
	    }                                           \
	}                                               \
	}                                               \
							\
							\
	(x) = (__typeof__(*(ptr))) __gu_val;            \
	(x) = (__force __typeof__(*(ptr))) __gu_val;	\
	__gu_err;                                       \
	__gu_err;                                       \
})
})