From patchwork Mon Feb 12 02:55:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 199572 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp2204630dyd; Sun, 11 Feb 2024 18:58:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IGawzgWKA9c6cR8UyWbdaZRIefl9vl+7ZJKmqmQuvDsgtUcvkjiYO4HgIr2rSGlCACrCgX/ X-Received: by 2002:a05:6358:428e:b0:179:20bb:d0b6 with SMTP id s14-20020a056358428e00b0017920bbd0b6mr8113095rwc.6.1707706724395; Sun, 11 Feb 2024 18:58:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707706724; cv=pass; d=google.com; s=arc-20160816; b=ge2Z6dj6rNyAmfCD5d0HsPcbk3EAUvx8d5KFUVH32uDNHCY7GD5IT+nOWYu3aVgqXz 4VmovMcCtlZaw9TPYtZCChTlDEStR4gWQwHycc0FrS9b9bW2/W5sFwRZLZZcLkgDlvHy L2KfQpABAvOoTwhEO5O44UnIQGoVBOdVY8Rv0UCXF0WWB7EaDqWMso7okngx3CyPf/Lz qPiptpdOxzxBczhqc2T+xK+oW0K3JvshUGhPSWtpC23nwW8r8Q73HCZKtsrHoEkOM4Cj O2JwyJrOFTZV+A/wZzq8zJpy5TAoroiDuawgEu1uS05evxbYxBp7+TBzMDlKgCRMv+2R Nslw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Sgb+qYVoGLQC+1tIvOKXrFPvpE4GtMMkuDMIpMcBDRo=; fh=tnpOyJ9R/m/kaHe8FMrbAxeeKyfaK2QEhFDXFfTi02U=; b=MhT/ZN0r1cn7Rjo14L7sn8yDO0LA0knoqYOgUUq/xl7chSmFotmYzKJA+RsPv0s+ba 1lK9TAJ2oSiAs60PNkK9E3YWh3Gi9OiIHIf26BTuQdoCjaDNcYJ1aVu0Ew1BADLfugYI IladBHvOMgnaJ9ZMXKmDXUkuBimE3ECAGpoi/DycA9V1KS098f2Lf8FEEz4tdmQE0EhZ BlmMiJvOkMgL9FAhQpOTi50tJP5TT7q7b7nIjP7MZDjNIPaflqfs06E1uCogPXD+v/a4 lPivyPgkPyzP1EsJ2Oaylu+s8lhbLLzh4Q/EwX9ed1nmxsWsYY66Na3QhvezIC2atJlI ZMnw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=NGBdhqY5; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-61076-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61076-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com X-Forwarded-Encrypted: i=2; AJvYcCVr0/t2ugoYvdjO7ONCPCbgLMsBfKzWiiYbiRG4JDxn9Y2YLFZcKq6n7iYmepsA2Vg4Bh6mihyJvziqxsj+Wj4HNNx7/w== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id e27-20020a63745b000000b005be09b723b7si5593090pgn.636.2024.02.11.18.58.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 18:58:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61076-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=NGBdhqY5; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-61076-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61076-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 823A0B24885 for ; Mon, 12 Feb 2024 02:56:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 987D4FC03; Mon, 12 Feb 2024 02:55:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="NGBdhqY5" Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 775C879C3 for ; Mon, 12 Feb 2024 02:55:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707706534; cv=none; b=bsXpsBZbdPWFihsfADrc1pO63KjZof9wloBZgnaKnFLU9gfD8iTXboyfikPADSizyRsj1AwDCUs2trifbwmUkO1FDxdZyu2+5Pg+XujQtv6LzXXkJKf47tGvHz3wwnIAIl8hkMczhrNxImPBaPJu278obb8z7xcBRk/jXwIwp/Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707706534; c=relaxed/simple; bh=n3r4IK6ZdfJZ49ePBivk4JOiueXOYcZlaqlhYNq/7s8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=i6rFnLwY6AKh3OCdqRWIOzm6I5P3MAIWYs8fwS6Pf0rHii9IrElRfdufvdM7cfAe5pZI7fp4DcZ5c93R8RoUQQMiqoX8ENXq6OuY1eYUyOh+Ozv5MqPoWUh/AxLZeZJ8THz+RQvLE19BWRHo4s1DRHgmcssBKQcEX2a38hmixjQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com; spf=pass smtp.mailfrom=sifive.com; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b=NGBdhqY5; arc=none smtp.client-ip=209.85.216.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-296c58a11d0so2047993a91.3 for ; Sun, 11 Feb 2024 18:55:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1707706533; x=1708311333; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Sgb+qYVoGLQC+1tIvOKXrFPvpE4GtMMkuDMIpMcBDRo=; b=NGBdhqY5Zm4fwJUdWKqcdylMeJGosVeVEy8p4/9cRwlgcK9iXgyaHvxbyNa+kmc1Si bysc8S/vp3j1DdCD2NpuJlc4zqaIHsv6FQKa6z6cAU+Tcme/uy48+dJTPI0SVJ12NKfr OY5GhSTJyK4+OIZRPM8VP6XUXl0uSOB+FptxpqnM5viAH6zz6SUUjOG5a0E9+3g61t1g AMwZr0nxZPF5lReR9gRQyne5Lk3VxR7xEc4vn5NIN4DtuiHfO+3HZ8DSRV/eMWC1Edld eXxJNY+BQk3GexBOcpv8CgcISfoITJLi4iIvkAiR5wToheuPiUJnByVB8sWkhVSUjrPZ 5XSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707706533; x=1708311333; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Sgb+qYVoGLQC+1tIvOKXrFPvpE4GtMMkuDMIpMcBDRo=; b=NDdu95L/jmxdv7G8CFd3ZzRmyu9RYYRZHjUtJLszhrnFa09xhrpdED9w0KBBKmQ9IO zgTuFre8myjp9o+E6fLVimZHBJVbu3AkcnWJBrOHLu9NiOqYBek5nJ8nRm9PMUjDXWUn Zy04mgmviyzK4wXJn6J++XZ89VCDZ6/Zdwoo1P2FzXLM6FoH/Ni3rCjIfKUs2+0vdyIK 3mGSDa/xYZpHdii740ipW/4Jwjy6q9KbrmuR8qZFFdkfXXWbzvMGeJnOdzycENDurE+B UTi0nu+IJC8L4ZI3H5XY4bxSL4er7ooIA0AdF+h1At05bl9TfE93UUevoxva4fcxQjNH GoVg== X-Gm-Message-State: AOJu0YxasUWDTpFzd8KrhwAAvTx2853AHoRT1cDC3ECtjGjYJip40bBq w9N1jwEWrODOp8tLKhoKEiTxb74nB0NzWqPHXc1BjNnqAGnU/r7/LMBxiy0gIeA= X-Received: by 2002:a17:902:da87:b0:1da:2216:f1f8 with SMTP id j7-20020a170902da8700b001da2216f1f8mr6131279plx.39.1707706532745; Sun, 11 Feb 2024 18:55:32 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWltAXxT4Z5I23HaZAeyreKKr5A6zwnhZx747qv+QqQBOZ2ZZtcTpQ4qqJvcBK3aCnVPXPXY4cKY2s6M2O3dDjODm7lW2CSHWdxxVXcnzqZm36pZpUdtXgFNxzdUykLDhghcMVP9m15 Received: from sw06.internal.sifive.com ([4.53.31.132]) by smtp.gmail.com with ESMTPSA id lb3-20020a170902fa4300b001d9af77893esm4906443plb.58.2024.02.11.18.55.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 18:55:32 -0800 (PST) From: Samuel Holland To: Palmer Dabbelt Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Samuel Holland Subject: [PATCH 2/7] riscv: jump_label: Simplify assembly syntax Date: Sun, 11 Feb 2024 18:55:13 -0800 Message-ID: <20240212025529.1971876-3-samuel.holland@sifive.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240212025529.1971876-1-samuel.holland@sifive.com> References: <20240212025529.1971876-1-samuel.holland@sifive.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790660286539057969 X-GMAIL-MSGID: 1790660286539057969 The idiomatic way to write "jal zero" is "j". Signed-off-by: Samuel Holland Reviewed-by: Björn Töpel --- arch/riscv/include/asm/jump_label.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/include/asm/jump_label.h b/arch/riscv/include/asm/jump_label.h index 6290b26f4a14..1c768d02bd0c 100644 --- a/arch/riscv/include/asm/jump_label.h +++ b/arch/riscv/include/asm/jump_label.h @@ -46,7 +46,7 @@ static __always_inline bool arch_static_branch_jump(struct static_key * const ke " .option push \n\t" " .option norelax \n\t" " .option norvc \n\t" - "1: jal zero, %l[label] \n\t" + "1: j %l[label] \n\t" " .option pop \n\t" " .pushsection __jump_table, \"aw\" \n\t" " .align " RISCV_LGPTR " \n\t"