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>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user