mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-04-27 14:20:42 +02:00
remove do munmap 4 args
This commit is contained in:
parent
7458909bea
commit
bc4c835731
2 changed files with 2 additions and 14 deletions
|
|
@ -39,12 +39,6 @@
|
|||
#include "i810_drm.h"
|
||||
#include "i810_drv.h"
|
||||
|
||||
#ifdef DO_MUNMAP_4_ARGS
|
||||
#define DO_MUNMAP(m, a, l) do_munmap(m, a, l, 1)
|
||||
#else
|
||||
#define DO_MUNMAP(m, a, l) do_munmap(m, a, l)
|
||||
#endif
|
||||
|
||||
#define I810_BUF_FREE 2
|
||||
#define I810_BUF_CLIENT 1
|
||||
#define I810_BUF_HARDWARE 0
|
||||
|
|
@ -186,7 +180,7 @@ static int i810_unmap_buffer(drm_buf_t * buf)
|
|||
return -EINVAL;
|
||||
|
||||
down_write(¤t->mm->mmap_sem);
|
||||
retcode = DO_MUNMAP(current->mm,
|
||||
retcode = do_munmap(current->mm,
|
||||
(unsigned long)buf_priv->virtual,
|
||||
(size_t) buf->total);
|
||||
up_write(¤t->mm->mmap_sem);
|
||||
|
|
|
|||
|
|
@ -41,12 +41,6 @@
|
|||
#include "i830_drm.h"
|
||||
#include "i830_drv.h"
|
||||
|
||||
#ifdef DO_MUNMAP_4_ARGS
|
||||
#define DO_MUNMAP(m, a, l) do_munmap(m, a, l, 1)
|
||||
#else
|
||||
#define DO_MUNMAP(m, a, l) do_munmap(m, a, l)
|
||||
#endif
|
||||
|
||||
#define I830_BUF_FREE 2
|
||||
#define I830_BUF_CLIENT 1
|
||||
#define I830_BUF_HARDWARE 0
|
||||
|
|
@ -174,7 +168,7 @@ static int i830_unmap_buffer(drm_buf_t * buf)
|
|||
return -EINVAL;
|
||||
|
||||
down_write(¤t->mm->mmap_sem);
|
||||
retcode = DO_MUNMAP(current->mm,
|
||||
retcode = do_munmap(current->mm,
|
||||
(unsigned long)buf_priv->virtual,
|
||||
(size_t) buf->total);
|
||||
up_write(¤t->mm->mmap_sem);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue