git: 0a68c91793cc - main - x11-drivers/xf86-video-nv: fix build on powerpc*
Piotr Kubaj <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.ports |
|---|---|
| Message-ID | <[email protected]> |
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=0a68c91793ccb7430de09e3fd85f9d17b95b488e commit 0a68c91793ccb7430de09e3fd85f9d17b95b488e Author: Piotr Kubaj <[email protected]> AuthorDate: 2026-08-12 09:53:21 +0000 Commit: Piotr Kubaj <[email protected]> CommitDate: 2026-08-12 12:54:29 +0000 x11-drivers/xf86-video-nv: fix build on powerpc* nv_driver.c:1387:40: error: incompatible integer to pointer conversion passing 'CARD32' (aka 'unsigned int') to parameter of type 'CARD8 *' (aka 'unsigned char *') [-Wint-conversion] 1387 | vgaHWSetMmioFuncs(VGAHWPTR(pScrn), pNv->IOAddress, 0); | ^~~~~~~~~~~~~~ /usr/local/include/xorg/vgaHW.h:180:62: note: passing argument to parameter 'base' here 180 | extern _X_EXPORT void vgaHWSetMmioFuncs(vgaHWPtr hwp, CARD8 *base, int offset); | ^ 1 error generated. It's fine to just pass NULL here because IOAddress is NULL at this line anyway. --- x11-drivers/xf86-video-nv/files/patch-src_nv__driver.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/x11-drivers/xf86-video-nv/files/patch-src_nv__driver.c b/x11-drivers/xf86-video-nv/files/patch-src_nv__driver.c new file mode 100644 index 000000000000..76c8e868fedd --- /dev/null +++ b/x11-drivers/xf86-video-nv/files/patch-src_nv__driver.c @@ -0,0 +1,11 @@ +--- src/nv_driver.c.orig 2026-08-12 09:42:22 UTC ++++ src/nv_driver.c +@@ -1559,7 +1559,7 @@ NVPreInit(ScrnInfoPtr pScrn, int flags) + return FALSE; + } + #ifdef __powerpc__ /* XXX probably MI */ +- vgaHWSetMmioFuncs(VGAHWPTR(pScrn), pNv->IOAddress, 0); ++ vgaHWSetMmioFuncs(VGAHWPTR(pScrn), NULL, 0); + #else + vgaHWSetStdFuncs(VGAHWPTR(pScrn)); + #endif