提交 70c9f590 编写于 作者: I Ingo Molnar

x86: remove set_fixmap() warning

set_fixmap()+clear_fixmap() is safe.
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 82a355f5
...@@ -173,7 +173,7 @@ set_pte_phys(unsigned long vaddr, unsigned long phys, pgprot_t prot) ...@@ -173,7 +173,7 @@ set_pte_phys(unsigned long vaddr, unsigned long phys, pgprot_t prot)
new_pte = pfn_pte(phys >> PAGE_SHIFT, prot); new_pte = pfn_pte(phys >> PAGE_SHIFT, prot);
pte = pte_offset_kernel(pmd, vaddr); 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)) pte_val(*pte) != (pte_val(new_pte) & __supported_pte_mask))
pte_ERROR(*pte); pte_ERROR(*pte);
set_pte(pte, new_pte); set_pte(pte, new_pte);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册