git: 8b60419b798a - main - usb(4): Fix build on 32-bit platforms after 0ec590d24e415dd36e38648630a0b963412ad87e.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 Dec 2021 20:32:37 UTC
The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=8b60419b798ae9049988c529e6af3f313a5cce55 commit 8b60419b798ae9049988c529e6af3f313a5cce55 Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2021-12-18 20:29:26 +0000 Commit: Hans Petter Selasky <hselasky@FreeBSD.org> CommitDate: 2021-12-18 20:31:58 +0000 usb(4): Fix build on 32-bit platforms after 0ec590d24e415dd36e38648630a0b963412ad87e. Cast pointer to "long" for now, to match the fueword() prototype. MFC after: 1 week Sponsored by: NVIDIA Networking --- sys/dev/usb/usb_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/usb/usb_generic.c b/sys/dev/usb/usb_generic.c index 5efab44d0efd..ab076d7234fb 100644 --- a/sys/dev/usb/usb_generic.c +++ b/sys/dev/usb/usb_generic.c @@ -1084,7 +1084,7 @@ ugen_fs_getbuffer(void **uptrp, struct usb_fifo *f, void *buffer, u.ppBuffer = buffer; switch (f->fs_ep_sz) { case sizeof(struct usb_fs_endpoint): - if (fueword(u.ppBuffer + n, (uintptr_t *)uptrp) != 0) + if (fueword(u.ppBuffer + n, (long *)uptrp) != 0) return (EFAULT); return (0); #ifdef COMPAT_FREEBSD32