Lines Matching refs:WARN_ON

93 	WARN_ON(pte_dirty(pte_wrprotect(pte)));  in pte_basic_tests()
95 WARN_ON(!pte_same(pte, pte)); in pte_basic_tests()
96 WARN_ON(!pte_young(pte_mkyoung(pte_mkold(pte)))); in pte_basic_tests()
97 WARN_ON(!pte_dirty(pte_mkdirty(pte_mkclean(pte)))); in pte_basic_tests()
98 WARN_ON(!pte_write(pte_mkwrite(pte_wrprotect(pte), args->vma))); in pte_basic_tests()
99 WARN_ON(pte_young(pte_mkold(pte_mkyoung(pte)))); in pte_basic_tests()
100 WARN_ON(pte_dirty(pte_mkclean(pte_mkdirty(pte)))); in pte_basic_tests()
101 WARN_ON(pte_write(pte_wrprotect(pte_mkwrite(pte, args->vma)))); in pte_basic_tests()
102 WARN_ON(pte_dirty(pte_wrprotect(pte_mkclean(pte)))); in pte_basic_tests()
103 WARN_ON(!pte_dirty(pte_wrprotect(pte_mkdirty(pte)))); in pte_basic_tests()
127 if (WARN_ON(!args->ptep)) in pte_advanced_tests()
135 WARN_ON(pte_write(pte)); in pte_advanced_tests()
138 WARN_ON(!pte_none(pte)); in pte_advanced_tests()
149 WARN_ON(!(pte_write(pte) && pte_dirty(pte))); in pte_advanced_tests()
152 WARN_ON(!pte_none(pte)); in pte_advanced_tests()
160 WARN_ON(pte_young(pte)); in pte_advanced_tests()
185 WARN_ON(pmd_dirty(pmd_wrprotect(pmd))); in pmd_basic_tests()
188 WARN_ON(!pmd_same(pmd, pmd)); in pmd_basic_tests()
189 WARN_ON(!pmd_young(pmd_mkyoung(pmd_mkold(pmd)))); in pmd_basic_tests()
190 WARN_ON(!pmd_dirty(pmd_mkdirty(pmd_mkclean(pmd)))); in pmd_basic_tests()
191 WARN_ON(!pmd_write(pmd_mkwrite(pmd_wrprotect(pmd), args->vma))); in pmd_basic_tests()
192 WARN_ON(pmd_young(pmd_mkold(pmd_mkyoung(pmd)))); in pmd_basic_tests()
193 WARN_ON(pmd_dirty(pmd_mkclean(pmd_mkdirty(pmd)))); in pmd_basic_tests()
194 WARN_ON(pmd_write(pmd_wrprotect(pmd_mkwrite(pmd, args->vma)))); in pmd_basic_tests()
195 WARN_ON(pmd_dirty(pmd_wrprotect(pmd_mkclean(pmd)))); in pmd_basic_tests()
196 WARN_ON(!pmd_dirty(pmd_wrprotect(pmd_mkdirty(pmd)))); in pmd_basic_tests()
201 WARN_ON(!pmd_bad(pmd_mkhuge(pmd))); in pmd_basic_tests()
235 WARN_ON(pmd_write(pmd)); in pmd_advanced_tests()
238 WARN_ON(!pmd_none(pmd)); in pmd_advanced_tests()
249 WARN_ON(!(pmd_write(pmd) && pmd_dirty(pmd))); in pmd_advanced_tests()
252 WARN_ON(!pmd_none(pmd)); in pmd_advanced_tests()
260 WARN_ON(pmd_young(pmd)); in pmd_advanced_tests()
281 WARN_ON(!pmd_leaf(pmd)); in pmd_leaf_tests()
304 WARN_ON(pud_dirty(pud_wrprotect(pud))); in pud_basic_tests()
306 WARN_ON(!pud_same(pud, pud)); in pud_basic_tests()
307 WARN_ON(!pud_young(pud_mkyoung(pud_mkold(pud)))); in pud_basic_tests()
308 WARN_ON(!pud_dirty(pud_mkdirty(pud_mkclean(pud)))); in pud_basic_tests()
309 WARN_ON(pud_dirty(pud_mkclean(pud_mkdirty(pud)))); in pud_basic_tests()
310 WARN_ON(!pud_write(pud_mkwrite(pud_wrprotect(pud)))); in pud_basic_tests()
311 WARN_ON(pud_write(pud_wrprotect(pud_mkwrite(pud)))); in pud_basic_tests()
312 WARN_ON(pud_young(pud_mkold(pud_mkyoung(pud)))); in pud_basic_tests()
313 WARN_ON(pud_dirty(pud_wrprotect(pud_mkclean(pud)))); in pud_basic_tests()
314 WARN_ON(!pud_dirty(pud_wrprotect(pud_mkdirty(pud)))); in pud_basic_tests()
323 WARN_ON(!pud_bad(pud_mkhuge(pud))); in pud_basic_tests()
361 WARN_ON(pud_write(pud)); in pud_advanced_tests()
366 WARN_ON(!pud_none(pud)); in pud_advanced_tests()
378 WARN_ON(!(pud_write(pud) && pud_dirty(pud))); in pud_advanced_tests()
383 WARN_ON(!pud_none(pud)); in pud_advanced_tests()
393 WARN_ON(pud_young(pud)); in pud_advanced_tests()
411 WARN_ON(!pud_leaf(pud)); in pud_leaf_tests()
442 WARN_ON(!pmd_set_huge(args->pmdp, __pfn_to_phys(args->fixed_pmd_pfn), args->page_prot)); in pmd_huge_tests()
443 WARN_ON(!pmd_clear_huge(args->pmdp)); in pmd_huge_tests()
445 WARN_ON(!pmd_none(pmd)); in pmd_huge_tests()
462 WARN_ON(!pud_set_huge(args->pudp, __pfn_to_phys(args->fixed_pud_pfn), args->page_prot)); in pud_huge_tests()
463 WARN_ON(!pud_clear_huge(args->pudp)); in pud_huge_tests()
465 WARN_ON(!pud_none(pud)); in pud_huge_tests()
478 WARN_ON(!p4d_same(p4d, p4d)); in p4d_basic_tests()
487 WARN_ON(!pgd_same(pgd, pgd)); in pgd_basic_tests()
499 WARN_ON(pud_none(pud)); in pud_clear_tests()
502 WARN_ON(!pud_none(pud)); in pud_clear_tests()
519 WARN_ON(pud_bad(pud)); in pud_populate_tests()
535 WARN_ON(p4d_none(p4d)); in p4d_clear_tests()
538 WARN_ON(!p4d_none(p4d)); in p4d_clear_tests()
557 WARN_ON(p4d_bad(p4d)); in p4d_populate_tests()
568 WARN_ON(pgd_none(pgd)); in pgd_clear_tests()
571 WARN_ON(!pgd_none(pgd)); in pgd_clear_tests()
590 WARN_ON(pgd_bad(pgd)); in pgd_populate_tests()
616 if (WARN_ON(!args->ptep)) in pte_clear_tests()
620 WARN_ON(pte_none(pte)); in pte_clear_tests()
625 WARN_ON(!pte_none(pte)); in pte_clear_tests()
633 WARN_ON(pmd_none(pmd)); in pmd_clear_tests()
636 WARN_ON(!pmd_none(pmd)); in pmd_clear_tests()
650 WARN_ON(pmd_bad(pmd)); in pmd_populate_tests()
661 WARN_ON(!pte_special(pte_mkspecial(pte))); in pte_special_tests()
672 WARN_ON(!pte_protnone(pte)); in pte_protnone_tests()
673 WARN_ON(!pte_present(pte)); in pte_protnone_tests()
689 WARN_ON(!pmd_protnone(pmd)); in pmd_protnone_tests()
690 WARN_ON(!pmd_present(pmd)); in pmd_protnone_tests()
702 WARN_ON(!pte_devmap(pte_mkdevmap(pte))); in pte_devmap_tests()
715 WARN_ON(!pmd_devmap(pmd_mkdevmap(pmd))); in pmd_devmap_tests()
728 WARN_ON(!pud_devmap(pud_mkdevmap(pud))); in pud_devmap_tests()
751 WARN_ON(!pte_soft_dirty(pte_mksoft_dirty(pte))); in pte_soft_dirty_tests()
752 WARN_ON(pte_soft_dirty(pte_clear_soft_dirty(pte))); in pte_soft_dirty_tests()
763 WARN_ON(!pte_swp_soft_dirty(pte_swp_mksoft_dirty(pte))); in pte_swap_soft_dirty_tests()
764 WARN_ON(pte_swp_soft_dirty(pte_swp_clear_soft_dirty(pte))); in pte_swap_soft_dirty_tests()
780 WARN_ON(!pmd_soft_dirty(pmd_mksoft_dirty(pmd))); in pmd_soft_dirty_tests()
781 WARN_ON(pmd_soft_dirty(pmd_clear_soft_dirty(pmd))); in pmd_soft_dirty_tests()
797 WARN_ON(!pmd_swp_soft_dirty(pmd_swp_mksoft_dirty(pmd))); in pmd_swap_soft_dirty_tests()
798 WARN_ON(pmd_swp_soft_dirty(pmd_swp_clear_soft_dirty(pmd))); in pmd_swap_soft_dirty_tests()
820 WARN_ON(pte_swp_exclusive(pte)); in pte_swap_exclusive_tests()
821 WARN_ON(!is_swap_pte(pte)); in pte_swap_exclusive_tests()
823 WARN_ON(memcmp(&entry, &entry2, sizeof(entry))); in pte_swap_exclusive_tests()
826 WARN_ON(!pte_swp_exclusive(pte)); in pte_swap_exclusive_tests()
827 WARN_ON(!is_swap_pte(pte)); in pte_swap_exclusive_tests()
828 WARN_ON(pte_swp_soft_dirty(pte)); in pte_swap_exclusive_tests()
830 WARN_ON(memcmp(&entry, &entry2, sizeof(entry))); in pte_swap_exclusive_tests()
833 WARN_ON(pte_swp_exclusive(pte)); in pte_swap_exclusive_tests()
834 WARN_ON(!is_swap_pte(pte)); in pte_swap_exclusive_tests()
836 WARN_ON(memcmp(&entry, &entry2, sizeof(entry))); in pte_swap_exclusive_tests()
848 WARN_ON(args->fixed_pte_pfn != pte_pfn(pte)); in pte_swap_tests()
864 WARN_ON(args->fixed_pmd_pfn != pmd_pfn(pmd)); in pmd_swap_tests()
897 WARN_ON(!is_migration_entry(swp)); in swap_migration_tests()
898 WARN_ON(!is_writable_migration_entry(swp)); in swap_migration_tests()
901 WARN_ON(!is_migration_entry(swp)); in swap_migration_tests()
902 WARN_ON(is_writable_migration_entry(swp)); in swap_migration_tests()
905 WARN_ON(!is_migration_entry(swp)); in swap_migration_tests()
906 WARN_ON(is_writable_migration_entry(swp)); in swap_migration_tests()
924 WARN_ON(!huge_pte_dirty(huge_pte_mkdirty(pte))); in hugetlb_basic_tests()
925 WARN_ON(!huge_pte_write(huge_pte_mkwrite(huge_pte_wrprotect(pte)))); in hugetlb_basic_tests()
926 WARN_ON(huge_pte_write(huge_pte_wrprotect(huge_pte_mkwrite(pte)))); in hugetlb_basic_tests()
931 WARN_ON(!pte_huge(arch_make_huge_pte(pte, PMD_SHIFT, VM_ACCESS_FLAGS))); in hugetlb_basic_tests()
959 WARN_ON(!pmd_trans_huge(pmd_mkhuge(pmd))); in pmd_thp_tests()
962 WARN_ON(!pmd_trans_huge(pmd_mkinvalid(pmd_mkhuge(pmd)))); in pmd_thp_tests()
963 WARN_ON(!pmd_present(pmd_mkinvalid(pmd_mkhuge(pmd)))); in pmd_thp_tests()
964 WARN_ON(!pmd_leaf(pmd_mkinvalid(pmd_mkhuge(pmd)))); in pmd_thp_tests()
978 WARN_ON(!pud_trans_huge(pud_mkhuge(pud))); in pud_thp_tests()
1171 WARN_ON(!pfn_valid(args->fixed_pte_pfn)); in init_fixed_pfns()
1229 WARN_ON(!args->start_p4dp); in init_args()
1238 WARN_ON(!args->start_pudp); in init_args()
1247 WARN_ON(!args->start_pmdp); in init_args()
1255 WARN_ON(!args->start_ptep); in init_args()