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.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 09795C04AB6 for ; Fri, 31 May 2019 16:05:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CFE2424A8B for ; Fri, 31 May 2019 16:05:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lca.pw header.i=@lca.pw header.b="J54mNqWn" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726840AbfEaQF4 (ORCPT ); Fri, 31 May 2019 12:05:56 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:44235 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726609AbfEaQFz (ORCPT ); Fri, 31 May 2019 12:05:55 -0400 Received: by mail-qt1-f194.google.com with SMTP id x47so1444603qtk.11 for ; Fri, 31 May 2019 09:05:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=from:to:cc:subject:date:message-id; bh=DjNhKHlzP4NpT4FppWGQqOUxDm61aLRXlbul/68FN0c=; b=J54mNqWnAsUqfoo6Snrd0nt6rHdZUZGVIA8h1HkrYROKwApJcsyUPHXuVo5D5vgDSN 2xThXTxduhEmpX4qIuiTxWqObBI6NZKlwtr4+3SrJwUsyTpI4qmLajgnuV+gluk6CFgd 4GE32in3vruyTdsOnFaG3X7w2AfbfBT4DTIpqN3YwXWOVlqG2bYCq7a9R5YDdmeEhXbf KR/pKt45RQg9OEQU3vGVzHDcc55L6nNpcwNPtrzeegxYSU5X46qevKISjhuUnWGW3DMW vt9GLPhehySPkevDVhDxPRMGAOqcr8E2ytELNUUcgEDw144kSwMN6BR7uu357Y1c0pBb cyPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=DjNhKHlzP4NpT4FppWGQqOUxDm61aLRXlbul/68FN0c=; b=VfH8l11xwU4D8D9OAGJAGaNU+6nWUSTrFPvQx7I/7U5Ua5vwYPI+2HKwy3y/G+rCKe U/pmhz0x4Fo6d+hV2QpPGzHZ1VFDIzN6X7iFZgrPLFYc8FJXqq08v2CEcucc6aoXwhtf fxXP1l2smhvbpEPYPj4aREbZf3rwpcIEvIjULVcmtVkDK5eAkfiRZhEVZNdb6VF5f4IG Foanzc7FknRy0WqGAZzGbMHTXApFKEQegLGzBUphML/yhuA6od5amppVtujXAYohyngy 82dqNh3Jl5+hKW//MIt5NxZcbqPOrUG6z3j7pNcZZiL9pJhmXawPBc0GH11IfDR3sh0V k/AA== X-Gm-Message-State: APjAAAVbwJv++wDSCSkj+XcakF0W+d2Bgxt2IRU6s09MuTWM8emNCEcZ JdlVkV46/gMoTYfe8W7O+yGj2g== X-Google-Smtp-Source: APXvYqxJNBD7sPuLzVYvt1sEsFPROMBtqLJuc+rTnHFxP1OxTaqffPfJkEIBKsX40tRmy60nV+Zomg== X-Received: by 2002:ac8:183a:: with SMTP id q55mr10085427qtj.23.1559318754496; Fri, 31 May 2019 09:05:54 -0700 (PDT) Received: from qcai.nay.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id o71sm5181164qke.18.2019.05.31.09.05.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 May 2019 09:05:53 -0700 (PDT) From: Qian Cai To: ard.biesheuvel@linaro.org Cc: dvhart@infradead.org, andy@infradead.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, linux-efi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Qian Cai Subject: [PATCH] x86/efi: fix a -Wtype-limits compilation warning Date: Fri, 31 May 2019 12:05:34 -0400 Message-Id: <1559318734-27591-1-git-send-email-cai@lca.pw> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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] Signed-off-by: Qian Cai --- 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 feb77777c8b8..ed88c95f9daf 100644 --- a/arch/x86/platform/efi/quirks.c +++ b/arch/x86/platform/efi/quirks.c @@ -725,7 +725,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; /* -- 1.8.3.1