From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 516CCC76186 for ; Thu, 18 Jul 2019 03:04:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C744F2173E for ; Thu, 18 Jul 2019 03:04:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563419067; bh=623kValpv34WsKFoygoDirXW4XUgbpNOmF1Aot+Nhw8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=CmhC+vqQ3srJC859gO0ybjEM7hFIb+hQssxQKuhqbH2UF+kaNX7k+N0Ogik51UxVK 4sqsTTiRPBFqE9y0jdG/TQ3Tc6zdB7iXfcawrIvWEl3gtBz+wd1mOiAIXGriHu621a omnuuCnU3nIV6EGoq505H/K26f+klB6pydXEMmco= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389711AbfGRDEZ (ORCPT ); Wed, 17 Jul 2019 23:04:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:35312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389686AbfGRDEV (ORCPT ); Wed, 17 Jul 2019 23:04:21 -0400 Received: from localhost (115.42.148.210.bf.2iij.net [210.148.42.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 03BED2173E; Thu, 18 Jul 2019 03:04:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563419061; bh=623kValpv34WsKFoygoDirXW4XUgbpNOmF1Aot+Nhw8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oR9opb8ulETRmacgTosFV44G3WcESpxWE/oLGvsU7Fd43Lg8JaXZyrRgGMm45KI1W P8vhHg6qpAUoM6CkqG8ympNuf9ltkxO2awKrkFd3tJ0ySViuCBCoWg7QEaZKeCCrkI Co5jtB+8QfyBM/yGwoXS/fEYRCJAxcqczxrRCIFM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Qian Cai , "Prakhya, Sai Praneeth" , Ard Biesheuvel , Sasha Levin Subject: [PATCH 5.1 19/54] x86/efi: fix a -Wtype-limits compilation warning Date: Thu, 18 Jul 2019 12:01:14 +0900 Message-Id: <20190718030054.892867977@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190718030053.287374640@linuxfoundation.org> References: <20190718030053.287374640@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 919aef44d73d5d0c04213cb1bc31149cc074e65e ] 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: 3425d934fc03 ("efi/x86: Handle page faults occurring while running ...") Signed-off-by: Qian Cai Acked-by: "Prakhya, Sai Praneeth" Signed-off-by: Ard Biesheuvel Signed-off-by: Sasha Levin --- arch/x86/platform/efi/quirks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/platform/efi/quirks.c b/arch/x86/platform/efi/quirks.c index a25a9fd987a9..529522c62d89 100644 --- a/arch/x86/platform/efi/quirks.c +++ b/arch/x86/platform/efi/quirks.c @@ -724,7 +724,7 @@ void efi_recover_from_page_fault(unsigned long phys_addr) * Address range 0x0000 - 0x0fff is always mapped in the efi_pgd, so * page faulting on these addresses isn't expected. */ - if (phys_addr >= 0x0000 && phys_addr <= 0x0fff) + if (phys_addr <= 0x0fff) return; /* -- 2.20.1