Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3724432pxb; Mon, 24 Jan 2022 16:23:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJznHSS/XUgwCzs74MPATS+rhJjPCXRxR0NMwQyeAa+8MKfBuWsVIieoXoTuR8vKlRfgEemS X-Received: by 2002:a17:90b:2385:: with SMTP id mr5mr801985pjb.186.1643070202726; Mon, 24 Jan 2022 16:23:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643070202; cv=none; d=google.com; s=arc-20160816; b=zP3IkjiIKE+VgpOd7eBUVlx9Yb8aJ4irHZpKZ2xfflp4MBIrjwZc36p1d6+jBgXAgs KZISwrVkc3e4wszXgQQt7sZaxg0RpQPkpk+YsODjJYWp+qeuP9ZD213JgznehqQWeXtc pp8gQlhcsai/IT+aDOxOFkE8ATM6YgVAJYdhoFPJQINyfMs17ZE7t8hOlKr9gBYO4zGe Ey3vT4CXaK4/IPkS0qtNSZD4Q4wMGcClFOnfQTGjzTOy8pA0CPzruMUjgi15kDxXLdPA LMeXLNrhI+ttVQu7ev24uvz0/08c1Ey7E+9+iDMeftLgiYRkHdM66V80/WytUkM/EfKY Xlgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=SLTv8/2C307QLsMdx1kWgdLjw/spfM/SJwwRuHGohb4=; b=PhBqIDOJ+oGJ/69XLCdRDgkyT16higtINko0SiiFyZip8Q/FF5PlgXIWetex6SIjnB VGa2FLmTDFNi5NKquPF9D0GTRVREF9TigUo4QLqIwyEy22hPunVotzXcETOTtSovDQrn Up4r2NMbjCt05s0/k1zAfxT7vXRHlZo3/sopO4nzgFfaIqFejv8zt4KqFplA3Ro4maaU W4PYhU6R5/Rw/EOh6GY+fujYqt/PootriSbP99n0VJF1Wgus+685Dx0UGyDEDfh8sFAj E0+yzr+auqET3f1jIG9Nn9oKV0ZXb7MhDp2LL0iJkbxbNiKKu4Uc2dMOcbzjjxa9LJl3 W35Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CeQyGaIS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e2si15349786pgp.559.2022.01.24.16.23.10; Mon, 24 Jan 2022 16:23:22 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=CeQyGaIS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2374273AbiAYAQk (ORCPT + 99 others); Mon, 24 Jan 2022 19:16:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383050AbiAXX2E (ORCPT ); Mon, 24 Jan 2022 18:28:04 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3B0DC01D7EC; Mon, 24 Jan 2022 13:31:01 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4AD71B8122A; Mon, 24 Jan 2022 21:31:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77A88C340E4; Mon, 24 Jan 2022 21:30:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059860; bh=9aUcXT3IAkm0wq9zoAJHhvROrGWTCBthzqq60iNgH8g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CeQyGaISh2khsOeIiZXuAz4/KnypXx++/PLwgmGMlommWrLPTIx4Lcv4vMCD/7vnJ urLBio6qi9tajkZ9g5IHsUCYJtbNbTOG4y8MNNcFsdUvFq/NfZIQGAdg3hnG+EtlLF N6AKNazmOKq83djYHnmsAqAKOHuAqdso0aahNdw4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ryutaroh Matsumoto , Nathan Chancellor , Thomas Bogendoerfer , Sasha Levin Subject: [PATCH 5.16 0757/1039] MIPS: Loongson64: Use three arguments for slti Date: Mon, 24 Jan 2022 19:42:26 +0100 Message-Id: <20220124184150.779947895@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor [ Upstream commit f2c6c22fa83ab2577619009057b3ebcb5305bb03 ] LLVM's integrated assembler does not support 'slti , ': :16:12: error: invalid operand for instruction slti $12, (0x6300 | 0x0008) ^ arch/mips/kernel/head.S:86:2: note: while in macro instantiation kernel_entry_setup # cpu specific setup ^ :16:12: error: invalid operand for instruction slti $12, (0x6300 | 0x0008) ^ arch/mips/kernel/head.S:150:2: note: while in macro instantiation smp_slave_setup ^ To increase compatibility with LLVM's integrated assembler, use the full form of 'slti , , ', which matches the rest of arch/mips/. This does not result in any change for GNU as. Link: https://github.com/ClangBuiltLinux/linux/issues/1526 Reported-by: Ryutaroh Matsumoto Signed-off-by: Nathan Chancellor Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/include/asm/mach-loongson64/kernel-entry-init.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/include/asm/mach-loongson64/kernel-entry-init.h b/arch/mips/include/asm/mach-loongson64/kernel-entry-init.h index 13373c5144f89..efb41b3519747 100644 --- a/arch/mips/include/asm/mach-loongson64/kernel-entry-init.h +++ b/arch/mips/include/asm/mach-loongson64/kernel-entry-init.h @@ -32,7 +32,7 @@ nop /* Loongson-3A R2/R3 */ andi t0, (PRID_IMP_MASK | PRID_REV_MASK) - slti t0, (PRID_IMP_LOONGSON_64C | PRID_REV_LOONGSON3A_R2_0) + slti t0, t0, (PRID_IMP_LOONGSON_64C | PRID_REV_LOONGSON3A_R2_0) bnez t0, 2f nop 1: @@ -63,7 +63,7 @@ nop /* Loongson-3A R2/R3 */ andi t0, (PRID_IMP_MASK | PRID_REV_MASK) - slti t0, (PRID_IMP_LOONGSON_64C | PRID_REV_LOONGSON3A_R2_0) + slti t0, t0, (PRID_IMP_LOONGSON_64C | PRID_REV_LOONGSON3A_R2_0) bnez t0, 2f nop 1: -- 2.34.1