Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.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>

authored by

Hans de Goede and committed by
Mauro Carvalho Chehab
f9599127 975c343f

+1 -5
-1
drivers/staging/media/atomisp/include/hmm/hmm_bo.h
··· 76 76 77 77 enum hmm_bo_type { 78 78 HMM_BO_PRIVATE, 79 - HMM_BO_SHARE, 80 79 HMM_BO_USER, 81 80 HMM_BO_LAST, 82 81 };
+1 -4
drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
··· 875 875 * allocate/free physical pages for the bo. 876 876 * 877 877 * type indicate where are the pages from. currently we have 3 types 878 - * of memory: HMM_BO_PRIVATE, HMM_BO_USER, HMM_BO_SHARE. 878 + * of memory: HMM_BO_PRIVATE, HMM_BO_USER. 879 879 * 880 880 * userptr is only valid when type is HMM_BO_USER, it indicates 881 881 * the start address from user space task. 882 - * 883 - * from_highmem and userptr will both be ignored when type is 884 - * HMM_BO_SHARE. 885 882 */ 886 883 int hmm_bo_alloc_pages(struct hmm_buffer_object *bo, 887 884 enum hmm_bo_type type,