X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=lib%2Ftest_hmm.c;h=c259842f6d443c0318eb931e72d585b034e33301;hb=c5e2bf0b4ae8ea1df6c352028459b1a415fe08dd;hp=8c55c47236929accb5f75f2313e8dfba6fdd043c;hpb=0cc2ea8cebe909203f994e9113dc1f1b3907d03c;p=linux-2.6-microblaze.git diff --git a/lib/test_hmm.c b/lib/test_hmm.c index 8c55c4723692..c259842f6d44 100644 --- a/lib/test_hmm.c +++ b/lib/test_hmm.c @@ -628,10 +628,8 @@ static int dmirror_check_atomic(struct dmirror *dmirror, unsigned long start, for (pfn = start >> PAGE_SHIFT; pfn < (end >> PAGE_SHIFT); pfn++) { void *entry; - struct page *page; entry = xa_load(&dmirror->pt, pfn); - page = xa_untag_pointer(entry); if (xa_pointer_tag(entry) == DPT_XA_TAG_ATOMIC) return -EPERM; }