mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
video/rockchip: rga: fix compile error on 4.19
Change-Id: I1ad9c87a7401788a691cae6844807aaca5348cfc Signed-off-by: Li Huang <putin.li@rock-chips.com>
This commit is contained in:
@@ -329,15 +329,14 @@ static int rga_MapUserMemory(struct page **pages,
|
||||
|
||||
do {
|
||||
down_read(¤t->mm->mmap_sem);
|
||||
result = get_user_pages(current,
|
||||
current->mm,
|
||||
Memory << PAGE_SHIFT,
|
||||
pageCount,
|
||||
1,
|
||||
0,
|
||||
pages,
|
||||
NULL
|
||||
);
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 6, 0)
|
||||
result = get_user_pages(current, current->mm,
|
||||
Memory << PAGE_SHIFT, pageCount, 1, 0,
|
||||
pages, NULL);
|
||||
#else
|
||||
result = get_user_pages_remote(current, current->mm,
|
||||
Memory << PAGE_SHIFT, pageCount, 1, pages, NULL, NULL);
|
||||
#endif
|
||||
up_read(¤t->mm->mmap_sem);
|
||||
|
||||
#if 0
|
||||
|
||||
Reference in New Issue
Block a user