Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2225800ybt; Mon, 15 Jun 2020 23:45:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5u1n/avVDxIn+PdIGlplzNoPpFGEqXJq4OzzR1jMFygb4slEsqH8NLCrxwBaqTwk4TiNz X-Received: by 2002:a17:906:6890:: with SMTP id n16mr1317219ejr.553.1592289957991; Mon, 15 Jun 2020 23:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592289957; cv=none; d=google.com; s=arc-20160816; b=tsYmz6mrX4lYlGKuPRK0IA3sLWNaCGshwWD0mvU3PMSINOJN/yDkm7sCLeUcvCtAgb 4KuqaL7D7hmLOpl10MQiEmYT+Wee3Iki7jVSakyB1QK8vxJds/rJ1EMXBIc9yonumafl z9gIPQlu44RD+qDoKBZGnz5soornC/hnk+xCnjRy+DFQZIKWB/92tx49J3bldOR1Zl7b 5F9Eef0/+82oIQqpfCCUhlLwk7aTcow+VUKPGDMPLACJmkocAm8Qe1bpMVavaNlrz2bx XNVDwE7QzeYbzylmVXxIuHWSyZfF9kKv34Gj9060ULHUa9qXZx6EerJjqxYQ4aijAVsK 7t4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=o6Sn7hj6BBHaWy0PO5OhL3s4Y8y3bAWsBLMy9d3l1ac=; b=L3SBq/dQDl/9MmXJSHapEzO6yhLRIqj6tRY/ZvtmMTCziXrnZu+UmpKcH7Yaegd6Wj VAFmE1EI7/Nulv9K0wuQM45eCMhfBI55BDoq2SGnMdTnhNolrILg1r7TYWqWQ7HVOtL3 hf3Jod8fzqBM8XVE+mmVSNNxN1jqOOuETctXcmW7Tj5zBOgqa9qmguIToiicDAfKMpcH TFDne8J/hFgh7XbPYzlNIh2OHzWk3tMh6fGTS7dxjyUiW1fNqkhtgR9gsruzuKOGPhrk UzW42YupqklBEwcwZ4L70z/2+IG3zxpWoSTL1a/4R0GhoWML4n8n9/lh44fl/LVV3i8w NF9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=PP1k5vKe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si10393015eje.267.2020.06.15.23.45.35; Mon, 15 Jun 2020 23:45:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=PP1k5vKe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726511AbgFPGlu (ORCPT + 99 others); Tue, 16 Jun 2020 02:41:50 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:35339 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbgFPGlt (ORCPT ); Tue, 16 Jun 2020 02:41:49 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 49mJWv0wSTz9sR4; Tue, 16 Jun 2020 16:41:46 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1592289707; bh=iJTDsS6ame+Ky3TXaa4W+AdR7BdwTxwCOXYjQwKjUxw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=PP1k5vKeHmTarCtWTnPIlWTyoP4sbjziolrzcisFbc0FLJK/kMjbWaSbiZtgHH71W 2pTR1bqJn8XypW74uR2vGT/bHXWbOzI86OCT/XsAIB7kH4/U4J9mR3ZP6wUPZlr+xY Z3eIn2qKMQaH7qDFixGsdcyIVeDg/Asd2usTO0D3+6XfAv3j2R4FYmPkLLWnGPGa2O NKZHjXEKEszNrl0ZtKDtaJrlwqnWbyqHkSntCJdQlAOXASQ/o/giP18VcAsFHjeKXl zV3TLFYPJV0pb+i9+AuCFxcXxbXpMEUzsqXwsjW8kHl1o+f8U5GuPhBiGCLxxSXXNe UGYhp1Von902g== From: Michael Ellerman To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc/ptdump: Fix build failure in hashpagetable.c In-Reply-To: <795158fc1d2b3dff3bf7347881947a887ea9391a.1592227105.git.christophe.leroy@csgroup.eu> References: <795158fc1d2b3dff3bf7347881947a887ea9391a.1592227105.git.christophe.leroy@csgroup.eu> Date: Tue, 16 Jun 2020 16:42:11 +1000 Message-ID: <87tuzbecl8.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe Leroy writes: > H_SUCCESS is only defined when CONFIG_PPC_PSERIES is defined. It's always defined in hvcall.h, but it doesn't always get included via plpar_wrappers.h. It looks to be CONFIG_SMP=n that causes that, for SMP=y we get a copy via asm/spinlock.h > != H_SUCCESS means != 0. Modify the test accordingly. I guess that's an OK solution. > Reported-by: kernel test robot > Fixes: 65e701b2d2a8 ("powerpc/ptdump: drop non vital #ifdefs") > Cc: stable@vger.kernel.org I don't think it needs to go to stable, none of the defconfigs hit it, we don't even really support SMP=n for 64-bit book3s. cheers > Signed-off-by: Christophe Leroy > --- > arch/powerpc/mm/ptdump/hashpagetable.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/powerpc/mm/ptdump/hashpagetable.c b/arch/powerpc/mm/ptdump/hashpagetable.c > index a2c33efc7ce8..5b8bd34cd3a1 100644 > --- a/arch/powerpc/mm/ptdump/hashpagetable.c > +++ b/arch/powerpc/mm/ptdump/hashpagetable.c > @@ -258,7 +258,7 @@ static int pseries_find(unsigned long ea, int psize, bool primary, u64 *v, u64 * > 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) && > -- > 2.25.0