media: atomisp: drop HMM_BO_SHARE type
authorHans de Goede <hdegoede@redhat.com>
Wed, 15 Jun 2022 20:50:28 +0000 (21:50 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 15:33:21 +0000 (16:33 +0100)
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.com
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/include/hmm/hmm_bo.h
drivers/staging/media/atomisp/pci/hmm/hmm_bo.c

index 5ed83e1aaa79e734b604e1fc82d4d7a3295d3c28..a4b193c35127b298eb6d40b9acac01fc99da4db5 100644 (file)
@@ -76,7 +76,6 @@
 
 enum hmm_bo_type {
        HMM_BO_PRIVATE,
-       HMM_BO_SHARE,
        HMM_BO_USER,
        HMM_BO_LAST,
 };
index a6b7f2b6247f517aa675ad6c7aea78c5ac099895..e5796ab7dbcfd2648882f22ba333e6c830b0e955 100644 (file)
@@ -875,13 +875,10 @@ out_of_mem:
  * allocate/free physical pages for the bo.
  *
  * 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
  * 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,
                       enum hmm_bo_type type,