Commit f9599127 authored by Hans de Goede's avatar Hans de Goede Committed by Mauro Carvalho Chehab

media: atomisp: drop HMM_BO_SHARE type

HMM_BO_SHARE is not supported by the hmm_bo code at all, drop it.

Link: https://lore.kernel.org/linux-media/20220615205037.16549-32-hdegoede@redhat.comReviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 975c343f
...@@ -76,7 +76,6 @@ ...@@ -76,7 +76,6 @@
enum hmm_bo_type { enum hmm_bo_type {
HMM_BO_PRIVATE, HMM_BO_PRIVATE,
HMM_BO_SHARE,
HMM_BO_USER, HMM_BO_USER,
HMM_BO_LAST, HMM_BO_LAST,
}; };
......
...@@ -875,13 +875,10 @@ static int alloc_user_pages(struct hmm_buffer_object *bo, ...@@ -875,13 +875,10 @@ static int alloc_user_pages(struct hmm_buffer_object *bo,
* allocate/free physical pages for the bo. * allocate/free physical pages for the bo.
* *
* type indicate where are the pages from. currently we have 3 types * type indicate where are the pages from. currently we have 3 types
* of memory: HMM_BO_PRIVATE, HMM_BO_USER, HMM_BO_SHARE. * of memory: HMM_BO_PRIVATE, HMM_BO_USER.
* *
* userptr is only valid when type is HMM_BO_USER, it indicates * userptr is only valid when type is HMM_BO_USER, it indicates
* the start address from user space task. * the start address from user space task.
*
* from_highmem and userptr will both be ignored when type is
* HMM_BO_SHARE.
*/ */
int hmm_bo_alloc_pages(struct hmm_buffer_object *bo, int hmm_bo_alloc_pages(struct hmm_buffer_object *bo,
enum hmm_bo_type type, enum hmm_bo_type type,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment