summaryrefslogtreecommitdiff
path: root/src/nouveau
diff options
context:
space:
mode:
authorSimon Zeni <simon.zeni@collabora.com>2023-10-05 10:09:55 -0400
committerMarge Bot <emma+marge@anholt.net>2023-10-06 03:39:14 +0000
commit2d09ae30e14bedb0f9d3429ca7764272551c07f8 (patch)
tree247fb68575fa5c8c37aa0d79e812c7366aec7089 /src/nouveau
parentdcb764b0f0ac620180b2ebfd8ca7d8843ebc0108 (diff)
downloadmesa-2d09ae30e14bedb0f9d3429ca7764272551c07f8.tar.gz
mesa-2d09ae30e14bedb0f9d3429ca7764272551c07f8.tar.bz2
mesa-2d09ae30e14bedb0f9d3429ca7764272551c07f8.zip
nouveau/winsys: use mmap instead of mmap64 in nouveau_bo
The function `mmap64` is part of the large file extension and should not be called directly. Instead `mmap` should be use and let the system use the correct interface. Signed-off-by: Simon Zeni <simon.zeni@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25569>
Diffstat (limited to 'src/nouveau')
-rw-r--r--src/nouveau/winsys/nouveau_bo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nouveau/winsys/nouveau_bo.c b/src/nouveau/winsys/nouveau_bo.c
index f2c698f8ec0..0d4cae9a0cf 100644
--- a/src/nouveau/winsys/nouveau_bo.c
+++ b/src/nouveau/winsys/nouveau_bo.c
@@ -304,7 +304,7 @@ nouveau_ws_bo_map(struct nouveau_ws_bo *bo, enum nouveau_ws_bo_map_flags flags)
if (flags & NOUVEAU_WS_BO_WR)
prot |= PROT_WRITE;
- void *res = mmap64(NULL, bo->size, prot, MAP_SHARED, bo->dev->fd, bo->map_handle);
+ void *res = mmap(NULL, bo->size, prot, MAP_SHARED, bo->dev->fd, bo->map_handle);
if (res == MAP_FAILED)
return NULL;