Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3323611imu; Sun, 11 Nov 2018 12:22:27 -0800 (PST) X-Google-Smtp-Source: AJdET5c08LWIhjXTRujxcdT76MCth/RkIuFsmJtI7Y6iEcEuL6gxAWCbfbXNvgCp2EXNb6HtvbTS X-Received: by 2002:a63:cf56:: with SMTP id b22mr14339254pgj.336.1541967747744; Sun, 11 Nov 2018 12:22:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541967747; cv=none; d=google.com; s=arc-20160816; b=Z/H8KonbhU51jcd8KVw6QUYFEwTzj6F0phh79THKTSzcbUlxWqtEZpSVuJDJgcZvls jjkGiuXle5AtIdLdV2yEjktEYLn9vwJeiSTRAH9WBCwFTR64qtlBuIzip6y6mstKI1zm kpbDLhJJ6kV51y7Uo1dZ2FNSCwu0WvsM4UxDyoZLAkWYfkMBvsUqS+AC2QffrafrY81J oS90nrb94amwlh7loE6wwRXXoqTOLd56R2mNyffXeOx1sxmhF35SvzGxpu0qlibZ48wy U2sNFTkQLToWIAJer8FTskg75cCXsTqJbY7XymLHw5HdMGXSR28mlxI4x/vAn09cA6c8 3Rlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=KpnMIH3AE+HkEno5UaRdEdwt71S8PhDilQ3tDgI07oA=; b=NRhMh4KcNKjqi0B8ddS5GEBkoaDUp6UChmyuIKhAmnx3wYA+qSJamj/8pNS5pE7n1+ utspkassqa2JcWFVasKfs3Uf8AfC56+f3jATroI4PsYQFie+pS3i7ULdbq26mY0Gvq3E dvOa/HmvirjFEheorcVYlaks2eR/zowXzJCUzzDEkYtGaPaA97zAEB1Ls/6V+kIBa8KB qYYCMrG2VLlIVtOfmH7rX1b/g7/GscIX/YunFl+i6AkgoWT22gDP74a00yPYG8DRC34B HkPo/YAk5oOH3vX99HGxl+n2UERaUETdJTsleUCW6TRaymNWm4Jg9fplS0eygMBXm2U6 Gcaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d30-v6si16091654pla.257.2018.11.11.12.22.13; Sun, 11 Nov 2018 12:22:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731565AbeKLGJk (ORCPT + 99 others); Mon, 12 Nov 2018 01:09:40 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:53448 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726652AbeKLGJj (ORCPT ); Mon, 12 Nov 2018 01:09:39 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvtC-0000oU-KQ; Sun, 11 Nov 2018 19:59:22 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsO-0001PF-Hy; Sun, 11 Nov 2018 19:58:32 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Michael Ellerman" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 040/366] powerpc/lib: Fix feature fixup test of external branch In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Michael Ellerman commit 32810d91325ec76b8ef4df463f8a0e9baf353322 upstream. The expected case for this test was wrong, the source of the alternate code sequence is: FTR_SECTION_ELSE 2: or 2,2,2 PPC_LCMPI r3,1 beq 3f blt 2b b 3f b 1b ALT_FTR_SECTION_END(0, 1) 3: or 1,1,1 or 2,2,2 4: or 3,3,3 So when it's patched the '3' label should still be on the 'or 1,1,1', and the 4 label is irrelevant and can be removed. Fixes: 362e7701fd18 ("powerpc: Add self-tests of the feature fixup code") Signed-off-by: Michael Ellerman Signed-off-by: Ben Hutchings --- arch/powerpc/lib/feature-fixups-test.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/powerpc/lib/feature-fixups-test.S +++ b/arch/powerpc/lib/feature-fixups-test.S @@ -167,9 +167,9 @@ globl(ftr_fixup_test6_expected) blt 2b b 3f b 1b -2: or 1,1,1 +3: or 1,1,1 or 2,2,2 -3: or 3,3,3 + or 3,3,3 #if 0