@@ -5636,23 +5636,6 @@ compile_test() {
56365636 compile_check_conftest " $CODE " " NV_GPIO_TO_IRQ_PRESENT" " " " functions"
56375637 ;;
56385638
5639- migrate_vma_setup)
5640- #
5641- # Determine if migrate_vma_setup() function is present
5642- #
5643- # migrate_vma_setup() function was added by commit
5644- # a7d1f22bb74f32cf3cd93f52776007e161f1a738 ("mm: turn migrate_vma
5645- # upside down) in v5.4.
5646- # (2019-08-20).
5647- CODE="
5648- #include <linux/migrate.h>
5649- int conftest_migrate_vma_setup(void) {
5650- migrate_vma_setup();
5651- }"
5652-
5653- compile_check_conftest " $CODE " " NV_MIGRATE_VMA_SETUP_PRESENT" " " " functions"
5654- ;;
5655-
56565639 migrate_vma_added_flags)
56575640 #
56585641 # Determine if migrate_vma structure has flags
@@ -5743,23 +5726,25 @@ compile_test() {
57435726 compile_check_conftest " $CODE " " NV_IOASID_GET_PRESENT" " " " functions"
57445727 ;;
57455728
5746- mm_pasid_set )
5729+ mm_pasid_drop )
57475730 #
5748- # Determine if mm_pasid_set() function is present
5731+ # Determine if mm_pasid_drop() function is present
5732+ #
5733+ # Added by commit 701fac40384f ("iommu/sva: Assign a PASID to mm
5734+ # on PASID allocation and free it on mm exit") in v5.18.
5735+ # Moved to linux/iommu.h in commit cd3891158a77 ("iommu/sva: Move
5736+ # PASID helpers to sva code") in v6.4.
57495737 #
5750- # mm_pasid_set() function was added by commit
5751- # 701fac40384f07197b106136012804c3cae0b3de (iommu/sva: Assign a
5752- # PASID to mm on PASID allocation and free it on mm exit) in v5.18.
5753- # (2022-02-15).
57545738 CODE="
57555739 #if defined(NV_LINUX_SCHED_MM_H_PRESENT)
57565740 #include <linux/sched/mm.h>
57575741 #endif
5758- void conftest_mm_pasid_set(void) {
5759- mm_pasid_set();
5742+ #include <linux/iommu.h>
5743+ void conftest_mm_pasid_drop(void) {
5744+ mm_pasid_drop();
57605745 }"
57615746
5762- compile_check_conftest " $CODE " " NV_MM_PASID_SET_PRESENT " " " " functions"
5747+ compile_check_conftest " $CODE " " NV_MM_PASID_DROP_PRESENT " " " " functions"
57635748 ;;
57645749
57655750 drm_crtc_state_has_no_vblank)
@@ -6341,6 +6326,22 @@ compile_test() {
63416326 compile_check_conftest " $CODE " " NV_MEMPOLICY_HAS_HOME_NODE" " " " types"
63426327 ;;
63436328
6329+ mpol_preferred_many_present)
6330+ #
6331+ # Determine if MPOL_PREFERRED_MANY enum is present or not
6332+ #
6333+ # Added by commit b27abaccf8e8b ("mm/mempolicy: add
6334+ # MPOL_PREFERRED_MANY for multiple preferred nodes") in
6335+ # v5.15
6336+ #
6337+ CODE="
6338+ #include <linux/mempolicy.h>
6339+ int mpol_preferred_many = MPOL_PREFERRED_MANY;
6340+ "
6341+
6342+ compile_check_conftest " $CODE " " NV_MPOL_PREFERRED_MANY_PRESENT" " " " types"
6343+ ;;
6344+
63446345 mmu_interval_notifier)
63456346 #
63466347 # Determine if mmu_interval_notifier struct is present or not
0 commit comments