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=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,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 C6662C433E3 for ; Thu, 20 Aug 2020 13:13:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9B34222BEA for ; Thu, 20 Aug 2020 13:13:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597929239; bh=ML6MeKfHJFdmd/j6R4VH8tkXe+Fr/873m/BBU9B4WKY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=pIxcWjIpqjZeEekbO9dygRXwXdRvAI+oL8hohsK7tPhtPuvdFhf75Ynmv3as+TRNv DGS/+uERGNXPp9gkA8TchUWvsksRUdLb1nEHsAkJjOZQCx5IuW7AG30DQ8S8j/L54m lW8QkQ7ByXy9eYDOz6xl3Oz0MgIvMj1gqGWRHYUM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728724AbgHTNN5 (ORCPT ); Thu, 20 Aug 2020 09:13:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:51472 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728327AbgHTJgg (ORCPT ); Thu, 20 Aug 2020 05:36:36 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 A8FFD2075E; Thu, 20 Aug 2020 09:36:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597916196; bh=ML6MeKfHJFdmd/j6R4VH8tkXe+Fr/873m/BBU9B4WKY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rRArUzZOyQJA/awx/acRdB7fdhJEztc7KMFyERCuZAVlGPBgUGuJ6gWhDyUwPcnuT BzQZSBNlqN3Gxq82/zPxgjtnNk5LkVrRCFniBuBOE5efQCld5hVMOAeIsaanna/+uV 2dLF7pmmTYsZDD7y/h0UAHcfDSqgIYtQzUacuwqQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Christophe Leroy , Michael Ellerman Subject: [PATCH 5.7 044/204] powerpc/ptdump: Fix build failure in hashpagetable.c Date: Thu, 20 Aug 2020 11:19:01 +0200 Message-Id: <20200820091608.474078716@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200820091606.194320503@linuxfoundation.org> References: <20200820091606.194320503@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Christophe Leroy commit 7c466b0807960edc13e4b855be85ea765df9a6cd upstream. H_SUCCESS is only defined when CONFIG_PPC_PSERIES is defined. != H_SUCCESS means != 0. Modify the test accordingly. Fixes: 65e701b2d2a8 ("powerpc/ptdump: drop non vital #ifdefs") Cc: stable@vger.kernel.org Reported-by: kernel test robot Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/795158fc1d2b3dff3bf7347881947a887ea9391a.1592227105.git.christophe.leroy@csgroup.eu Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/mm/ptdump/hashpagetable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/powerpc/mm/ptdump/hashpagetable.c +++ b/arch/powerpc/mm/ptdump/hashpagetable.c @@ -259,7 +259,7 @@ static int pseries_find(unsigned long ea for (i = 0; i < HPTES_PER_GROUP; i += 4, hpte_group += 4) { lpar_rc = plpar_pte_read_4(0, hpte_group, (void *)ptes); - if (lpar_rc != H_SUCCESS) + if (lpar_rc) continue; for (j = 0; j < 4; j++) { if (HPTE_V_COMPARE(ptes[j].v, want_v) &&