Skip to content

Commit 919aef4

Browse files
Qian CaiArd Biesheuvel
authored andcommitted
x86/efi: fix a -Wtype-limits compilation warning
Compiling a kernel with W=1 generates this warning, arch/x86/platform/efi/quirks.c:731:16: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] Fixes: 3425d93 ("efi/x86: Handle page faults occurring while running ...") Signed-off-by: Qian Cai <[email protected]> Acked-by: "Prakhya, Sai Praneeth" <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]>
1 parent a483fca commit 919aef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/platform/efi/quirks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ void efi_recover_from_page_fault(unsigned long phys_addr)
728728
* Address range 0x0000 - 0x0fff is always mapped in the efi_pgd, so
729729
* page faulting on these addresses isn't expected.
730730
*/
731-
if (phys_addr >= 0x0000 && phys_addr <= 0x0fff)
731+
if (phys_addr <= 0x0fff)
732732
return;
733733

734734
/*

0 commit comments

Comments
 (0)