Lines Matching refs:WARN_ON

95 	WARN_ON(pte_dirty(pte_wrprotect(pte)));  in pte_basic_tests()
97 WARN_ON(!pte_same(pte, pte)); in pte_basic_tests()
98 WARN_ON(!pte_young(pte_mkyoung(pte_mkold(pte)))); in pte_basic_tests()
99 WARN_ON(!pte_dirty(pte_mkdirty(pte_mkclean(pte)))); in pte_basic_tests()
100 WARN_ON(!pte_write(pte_mkwrite(pte_wrprotect(pte), args->vma))); in pte_basic_tests()
101 WARN_ON(pte_young(pte_mkold(pte_mkyoung(pte)))); in pte_basic_tests()
102 WARN_ON(pte_dirty(pte_mkclean(pte_mkdirty(pte)))); in pte_basic_tests()
103 WARN_ON(pte_write(pte_wrprotect(pte_mkwrite(pte, args->vma)))); in pte_basic_tests()
104 WARN_ON(pte_dirty(pte_wrprotect(pte_mkclean(pte)))); in pte_basic_tests()
105 WARN_ON(!pte_dirty(pte_wrprotect(pte_mkdirty(pte)))); in pte_basic_tests()
107 WARN_ON(!pte_dirty(pte_mkwrite_novma(pte_mkdirty(pte)))); in pte_basic_tests()
108 WARN_ON(pte_dirty(pte_mkwrite_novma(pte_mkclean(pte)))); in pte_basic_tests()
109 WARN_ON(!pte_write(pte_mkdirty(pte_mkwrite_novma(pte)))); in pte_basic_tests()
110 WARN_ON(!pte_write(pte_mkwrite_novma(pte_wrprotect(pte)))); in pte_basic_tests()
111 WARN_ON(pte_write(pte_wrprotect(pte_mkwrite_novma(pte)))); in pte_basic_tests()
135 if (WARN_ON(!args->ptep)) in pte_advanced_tests()
143 WARN_ON(pte_write(pte)); in pte_advanced_tests()
146 WARN_ON(!pte_none(pte)); in pte_advanced_tests()
157 WARN_ON(!(pte_write(pte) && pte_dirty(pte))); in pte_advanced_tests()
160 WARN_ON(!pte_none(pte)); in pte_advanced_tests()
168 WARN_ON(pte_young(pte)); in pte_advanced_tests()
193 WARN_ON(pmd_dirty(pmd_wrprotect(pmd))); in pmd_basic_tests()
196 WARN_ON(!pmd_same(pmd, pmd)); in pmd_basic_tests()
197 WARN_ON(!pmd_young(pmd_mkyoung(pmd_mkold(pmd)))); in pmd_basic_tests()
198 WARN_ON(!pmd_dirty(pmd_mkdirty(pmd_mkclean(pmd)))); in pmd_basic_tests()
199 WARN_ON(!pmd_write(pmd_mkwrite(pmd_wrprotect(pmd), args->vma))); in pmd_basic_tests()
200 WARN_ON(pmd_young(pmd_mkold(pmd_mkyoung(pmd)))); in pmd_basic_tests()
201 WARN_ON(pmd_dirty(pmd_mkclean(pmd_mkdirty(pmd)))); in pmd_basic_tests()
202 WARN_ON(pmd_write(pmd_wrprotect(pmd_mkwrite(pmd, args->vma)))); in pmd_basic_tests()
203 WARN_ON(pmd_dirty(pmd_wrprotect(pmd_mkclean(pmd)))); in pmd_basic_tests()
204 WARN_ON(!pmd_dirty(pmd_wrprotect(pmd_mkdirty(pmd)))); in pmd_basic_tests()
206 WARN_ON(!pmd_dirty(pmd_mkwrite_novma(pmd_mkdirty(pmd)))); in pmd_basic_tests()
207 WARN_ON(pmd_dirty(pmd_mkwrite_novma(pmd_mkclean(pmd)))); in pmd_basic_tests()
208 WARN_ON(!pmd_write(pmd_mkdirty(pmd_mkwrite_novma(pmd)))); in pmd_basic_tests()
209 WARN_ON(!pmd_write(pmd_mkwrite_novma(pmd_wrprotect(pmd)))); in pmd_basic_tests()
210 WARN_ON(pmd_write(pmd_wrprotect(pmd_mkwrite_novma(pmd)))); in pmd_basic_tests()
216 WARN_ON(!pmd_bad(pmd_mkhuge(pmd))); in pmd_basic_tests()
250 WARN_ON(pmd_write(pmd)); in pmd_advanced_tests()
253 WARN_ON(!pmd_none(pmd)); in pmd_advanced_tests()
264 WARN_ON(!(pmd_write(pmd) && pmd_dirty(pmd))); in pmd_advanced_tests()
267 WARN_ON(!pmd_none(pmd)); in pmd_advanced_tests()
275 WARN_ON(pmd_young(pmd)); in pmd_advanced_tests()
296 WARN_ON(!pmd_leaf(pmd)); in pmd_leaf_tests()
319 WARN_ON(pud_dirty(pud_wrprotect(pud))); in pud_basic_tests()
321 WARN_ON(!pud_same(pud, pud)); in pud_basic_tests()
322 WARN_ON(!pud_young(pud_mkyoung(pud_mkold(pud)))); in pud_basic_tests()
323 WARN_ON(!pud_dirty(pud_mkdirty(pud_mkclean(pud)))); in pud_basic_tests()
324 WARN_ON(pud_dirty(pud_mkclean(pud_mkdirty(pud)))); in pud_basic_tests()
325 WARN_ON(!pud_write(pud_mkwrite(pud_wrprotect(pud)))); in pud_basic_tests()
326 WARN_ON(pud_write(pud_wrprotect(pud_mkwrite(pud)))); in pud_basic_tests()
327 WARN_ON(pud_young(pud_mkold(pud_mkyoung(pud)))); in pud_basic_tests()
328 WARN_ON(pud_dirty(pud_wrprotect(pud_mkclean(pud)))); in pud_basic_tests()
329 WARN_ON(!pud_dirty(pud_wrprotect(pud_mkdirty(pud)))); in pud_basic_tests()
338 WARN_ON(!pud_bad(pud_mkhuge(pud))); in pud_basic_tests()
370 WARN_ON(pud_write(pud)); in pud_advanced_tests()
375 WARN_ON(!pud_none(pud)); in pud_advanced_tests()
386 WARN_ON(!(pud_write(pud) && pud_dirty(pud))); in pud_advanced_tests()
391 WARN_ON(!pud_none(pud)); in pud_advanced_tests()
400 WARN_ON(pud_young(pud)); in pud_advanced_tests()
418 WARN_ON(!pud_leaf(pud)); in pud_leaf_tests()
449 WARN_ON(!pmd_set_huge(args->pmdp, __pfn_to_phys(args->fixed_pmd_pfn), args->page_prot)); in pmd_huge_tests()
450 WARN_ON(!pmd_clear_huge(args->pmdp)); in pmd_huge_tests()
452 WARN_ON(!pmd_none(pmd)); in pmd_huge_tests()
469 WARN_ON(!pud_set_huge(args->pudp, __pfn_to_phys(args->fixed_pud_pfn), args->page_prot)); in pud_huge_tests()
470 WARN_ON(!pud_clear_huge(args->pudp)); in pud_huge_tests()
472 WARN_ON(!pud_none(pud)); in pud_huge_tests()
485 WARN_ON(!p4d_same(p4d, p4d)); in p4d_basic_tests()
494 WARN_ON(!pgd_same(pgd, pgd)); in pgd_basic_tests()
506 WARN_ON(pud_none(pud)); in pud_clear_tests()
509 WARN_ON(!pud_none(pud)); in pud_clear_tests()
526 WARN_ON(pud_bad(pud)); in pud_populate_tests()
542 WARN_ON(p4d_none(p4d)); in p4d_clear_tests()
545 WARN_ON(!p4d_none(p4d)); in p4d_clear_tests()
564 WARN_ON(p4d_bad(p4d)); in p4d_populate_tests()
575 WARN_ON(pgd_none(pgd)); in pgd_clear_tests()
578 WARN_ON(!pgd_none(pgd)); in pgd_clear_tests()
597 WARN_ON(pgd_bad(pgd)); in pgd_populate_tests()
623 if (WARN_ON(!args->ptep)) in pte_clear_tests()
627 WARN_ON(pte_none(pte)); in pte_clear_tests()
632 WARN_ON(!pte_none(pte)); in pte_clear_tests()
640 WARN_ON(pmd_none(pmd)); in pmd_clear_tests()
643 WARN_ON(!pmd_none(pmd)); in pmd_clear_tests()
657 WARN_ON(pmd_bad(pmd)); in pmd_populate_tests()
668 WARN_ON(!pte_special(pte_mkspecial(pte))); in pte_special_tests()
679 WARN_ON(!pte_protnone(pte)); in pte_protnone_tests()
680 WARN_ON(!pte_present(pte)); in pte_protnone_tests()
696 WARN_ON(!pmd_protnone(pmd)); in pmd_protnone_tests()
697 WARN_ON(!pmd_present(pmd)); in pmd_protnone_tests()
711 WARN_ON(!pte_soft_dirty(pte_mksoft_dirty(pte))); in pte_soft_dirty_tests()
712 WARN_ON(pte_soft_dirty(pte_clear_soft_dirty(pte))); in pte_soft_dirty_tests()
727 WARN_ON(!softleaf_is_swap(entry)); in pte_swap_soft_dirty_tests()
728 WARN_ON(!pte_swp_soft_dirty(pte_swp_mksoft_dirty(pte))); in pte_swap_soft_dirty_tests()
729 WARN_ON(pte_swp_soft_dirty(pte_swp_clear_soft_dirty(pte))); in pte_swap_soft_dirty_tests()
745 WARN_ON(!pmd_soft_dirty(pmd_mksoft_dirty(pmd))); in pmd_soft_dirty_tests()
746 WARN_ON(pmd_soft_dirty(pmd_clear_soft_dirty(pmd))); in pmd_soft_dirty_tests()
762 WARN_ON(!pmd_is_huge(pmd)); in pmd_leaf_soft_dirty_tests()
763 WARN_ON(!pmd_is_valid_softleaf(pmd)); in pmd_leaf_soft_dirty_tests()
765 WARN_ON(!pmd_swp_soft_dirty(pmd_swp_mksoft_dirty(pmd))); in pmd_leaf_soft_dirty_tests()
766 WARN_ON(pmd_swp_soft_dirty(pmd_swp_clear_soft_dirty(pmd))); in pmd_leaf_soft_dirty_tests()
785 WARN_ON(pte_swp_exclusive(pte)); in pte_swap_exclusive_tests()
786 WARN_ON(!softleaf_is_swap(softleaf)); in pte_swap_exclusive_tests()
787 WARN_ON(memcmp(&entry, &softleaf, sizeof(entry))); in pte_swap_exclusive_tests()
792 WARN_ON(!pte_swp_exclusive(pte)); in pte_swap_exclusive_tests()
793 WARN_ON(!softleaf_is_swap(softleaf)); in pte_swap_exclusive_tests()
794 WARN_ON(pte_swp_soft_dirty(pte)); in pte_swap_exclusive_tests()
795 WARN_ON(memcmp(&entry, &softleaf, sizeof(entry))); in pte_swap_exclusive_tests()
800 WARN_ON(pte_swp_exclusive(pte)); in pte_swap_exclusive_tests()
801 WARN_ON(!softleaf_is_swap(softleaf)); in pte_swap_exclusive_tests()
802 WARN_ON(memcmp(&entry, &softleaf, sizeof(entry))); in pte_swap_exclusive_tests()
815 WARN_ON(!softleaf_is_swap(entry)); in pte_swap_tests()
819 WARN_ON(memcmp(&pte1, &pte2, sizeof(pte1))); in pte_swap_tests()
833 WARN_ON(!pmd_is_huge(pmd1)); in pmd_softleaf_tests()
834 WARN_ON(!pmd_is_valid_softleaf(pmd1)); in pmd_softleaf_tests()
838 WARN_ON(memcmp(&pmd1, &pmd2, sizeof(pmd1))); in pmd_softleaf_tests()
871 WARN_ON(!softleaf_is_migration(entry)); in swap_migration_tests()
872 WARN_ON(!softleaf_is_migration_write(entry)); in swap_migration_tests()
875 WARN_ON(!softleaf_is_migration(entry)); in swap_migration_tests()
876 WARN_ON(softleaf_is_migration_write(entry)); in swap_migration_tests()
879 WARN_ON(!softleaf_is_migration(entry)); in swap_migration_tests()
880 WARN_ON(softleaf_is_migration_write(entry)); in swap_migration_tests()
894 WARN_ON(!pte_huge(pte)); in hugetlb_basic_tests()
896 WARN_ON(!huge_pte_dirty(huge_pte_mkdirty(pte))); in hugetlb_basic_tests()
897 WARN_ON(!huge_pte_write(huge_pte_mkwrite(huge_pte_wrprotect(pte)))); in hugetlb_basic_tests()
898 WARN_ON(huge_pte_write(huge_pte_wrprotect(huge_pte_mkwrite(pte)))); in hugetlb_basic_tests()
925 WARN_ON(!pmd_trans_huge(pmd_mkhuge(pmd))); in pmd_thp_tests()
928 WARN_ON(!pmd_trans_huge(pmd_mkinvalid(pmd_mkhuge(pmd)))); in pmd_thp_tests()
929 WARN_ON(!pmd_present(pmd_mkinvalid(pmd_mkhuge(pmd)))); in pmd_thp_tests()
930 WARN_ON(!pmd_leaf(pmd_mkinvalid(pmd_mkhuge(pmd)))); in pmd_thp_tests()
944 WARN_ON(!pud_trans_huge(pud_mkhuge(pud))); in pud_thp_tests()
1139 WARN_ON(!pfn_valid(args->fixed_pte_pfn)); in init_fixed_pfns()
1198 WARN_ON(!args->start_p4dp); in init_args()
1207 WARN_ON(!args->start_pudp); in init_args()
1216 WARN_ON(!args->start_pmdp); in init_args()
1224 WARN_ON(!args->start_ptep); in init_args()