git: ec2e657d485a - main - x11/nvidia-driver: Use a valid function declaration for nvlink_allocLock.
Date: Thu, 25 May 2023 17:18:16 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/ports/commit/?id=ec2e657d485a1ae0cb1ad1224ccf6b6a7abf05bc commit ec2e657d485a1ae0cb1ad1224ccf6b6a7abf05bc Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2023-05-25 17:17:56 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-05-25 17:17:56 +0000 x11/nvidia-driver: Use a valid function declaration for nvlink_allocLock. Differential Revision: https://reviews.freebsd.org/D40172 --- x11/nvidia-driver/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile index 068fbcd54683..697c9ed82422 100644 --- a/x11/nvidia-driver/Makefile +++ b/x11/nvidia-driver/Makefile @@ -266,6 +266,9 @@ post-patch: .SILENT ${REINPLACE_CMD} -e '/vm_offset_t address;/s,vm_offset_t ,void *,' \ ${WRKSRC}/src/${NVSRC}/nvidia_subr.c .endif +# Fix a K&R prototype + ${REINPLACE_CMD} -e '/nvlink_allocLock/s,(),(void),' \ + ${WRKSRC}/src/${NVSRC}/nvlink_freebsd.c # Finally, process OPTIONS .if ${PORT_OPTIONS:MFREEBSD_AGP} ${REINPLACE_CMD} -E 's/undef (NV_SUPPORT_OS_AGP)/define \1/' \