Commit 70c9f590 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

x86: remove set_fixmap() warning

set_fixmap()+clear_fixmap() is safe.
Signed-off-by: default avatarIngo Molnar <>
parent 82a355f5
......@@ -173,7 +173,7 @@ set_pte_phys(unsigned long vaddr, unsigned long phys, pgprot_t prot)
new_pte = pfn_pte(phys >> PAGE_SHIFT, prot);
pte = pte_offset_kernel(pmd, vaddr);
if (!pte_none(*pte) &&
if (!pte_none(*pte) && pte_val(new_pte) &&
pte_val(*pte) != (pte_val(new_pte) & __supported_pte_mask))
set_pte(pte, new_pte);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment