mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 17:24:17 +08:00
x86: remove set_fixmap() warning
set_fixmap()+clear_fixmap() is safe. Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
82a355f5a2
commit
70c9f590ff
@ -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))
|
||||
pte_ERROR(*pte);
|
||||
set_pte(pte, new_pte);
|
||||
|
Loading…
Reference in New Issue
Block a user