Module: Mesa
Branch: main
Commit: 2d09ae30e14bedb0f9d3429ca7764272551c07f8
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2d09ae30e14bedb0f9d3429ca7764272551c07f8

Author: Simon Zeni <[email protected]>
Date:   Thu Oct  5 10:09:55 2023 -0400

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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25569>

---

 src/nouveau/winsys/nouveau_bo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 

Reply via email to