Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp506703lqp; Wed, 12 Jun 2024 08:04:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXo7v+BR7tdnH0xqbpRCmEsPgjrpkz/AgTq1gxntl6QEE2G/2iFZjF209tG9jn3K7FHt9YtqJWwtnIyTIWi/a/1hTjaOKxcPn/BSCmh7g== X-Google-Smtp-Source: AGHT+IGCJIXersI7BFgoLUrmr4psc81RF/AajLQDfD5ENh9YOe89qvzneHRaKaO14MP24oQuJB47 X-Received: by 2002:a50:c054:0:b0:57c:4db6:c0fc with SMTP id 4fb4d7f45d1cf-57ca9754761mr1352835a12.10.1718204666792; Wed, 12 Jun 2024 08:04:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718204666; cv=pass; d=google.com; s=arc-20160816; b=GBbHpxLSjd0gomDdjhxwiRwOuFsBovJfWJ0ljPudp1q1ePOvN+pgWL5/SYQ3gbwkcI ynL452SgjDYDNl7trvg3Y5ieLtbJBIuQoUG54kA0c3TjDDupLtwwaC5R2ZjOQRUDiPSK 8slDmMcQBk8DFMVJ9TL0fU9/cEMtujgFxOdgcV/kiMYs1lbYIyBCz9129vdQ6+iFT0ep nAeI9r/BqMdhbsauzV01NBGC6Jqx4UlnH4Xc4WYM+5tZJA+Pk65ZTqQCydUBjFVmgwbO nIOzOUqtmcyrg+QSpQn5Xa5aeMLNfe8ejZ7bXncZ0ewXU+Bro12KsLolLx8IAxIl+FDZ dT3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=21Mqweg9L+rw6xF1fqeXIdUVP3H0RYTV1BTiGDuOspo=; fh=CZAtMd0no7Y6YWSNex4+G9Zlk7OzT5vs9phuXZrNpkw=; b=s1t2vC/j/ma7C2amdzmeLCyrVA21EaNGfZIxDrq+u0+YMnzenP/uqAKshUBNcLpZ7F yTHgdvnU8y5NMOPFEk9/Q1pWHobCUnEHmeqXVR/QA0xknvx/o66EJ/VqxcM1c7M67YJv JJcgXq3WJv2ujAbU3PzcPwtnC6Ds6zLnCCWp2j7mn3EIPCjESVDmNTns13LFBfCyvoI9 rKnw1OoNCLohqtw22T/OLNyorgwQYLin1O3fYebOUZd+izBoqYuUzP1St2b4NtMQ06zA KKKBa7BGWdpwYn2Fjf2AeMQp1eK2Vo+12AM7lNM4tasbi5Ym+SRbGKo6esq5rDtn37Fl FQmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SQHWPMJ+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-211736-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211736-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57c7f2677bdsi3921390a12.352.2024.06.12.08.04.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 08:04:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211736-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SQHWPMJ+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-211736-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211736-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1418B1F25B93 for ; Wed, 12 Jun 2024 15:03:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5AC0A17F502; Wed, 12 Jun 2024 15:03:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SQHWPMJ+" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75CB217E453; Wed, 12 Jun 2024 15:03:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718204612; cv=none; b=AIgb9LUhJ8/q1Kr1ukp7g+Uf8904NIlEzuekHOx9a4DzB8j+ddTwkKDEIT0F0hwrQa2zH/j9YGZ0HNNw6+FvPba6K6wFBVHXEGr/ytOSZVOjao6x8Zl3icRJL5x1uy1zeRGH7eaktDTzj9yYhzzH4REaCRmYfzEn+zHxmlerKBQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718204612; c=relaxed/simple; bh=AMq+F3yP0qGn6PUexLUcixWqx9UsBEvmZ9R2Pl/8kHE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YNPKOXbUDqblUw7IaJpS6JRr154QXzPwg8z89RsdLwlMgb47JPKO5mxdMk7FPeRoP3ur+TbIl7De5KAC3thpOeTdBW4cIr/Wi7lCf2N5qbVmK4Ho0GtEljRtHda4zNlH9Jgv2U6QStAu++kCYvLUysa6V70+wsLxeUeHBMSkrC0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SQHWPMJ+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C183C4AF1C; Wed, 12 Jun 2024 15:03:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718204612; bh=AMq+F3yP0qGn6PUexLUcixWqx9UsBEvmZ9R2Pl/8kHE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SQHWPMJ+5hGMi0F461js4qxDtCy4IJCGyS8bEOqXjH/kAhYAfaVoDyLM6/Zm/q2Tn W5uP5rdZByPJB3TTvH08RBGP12xYSy/zkIDqI3IRktJMm7RI2SUngPGUvvChlsG40m Rz61i7IMuwWD70bxt9xXtK2Egqahp7JLlefBtw3tqB8Zfs46Zerh5NWBWFRsCzsNZL LlvQ40aT7fIWt1L3V/nQB+Okg7xsTqm9vYXo9iP1zYnwmtnKGZQ51pHqW4B3Ok1V5O d7LkxN4tn4d7ume7QOSSR+LA7KEt2IuRv98d8l7q+eIQB0rSgLA3tKyEDPYhc0T2yx DHHSXJ+L/57Fg== Date: Wed, 12 Jun 2024 16:03:26 +0100 From: Conor Dooley To: Alice Ryhl Cc: Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Peter Zijlstra , Josh Poimboeuf , Jason Baron , Ard Biesheuvel , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , linux-trace-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] rust: add static_key_false Message-ID: <20240612-cottage-revision-9842e7e22070@spud> References: <20240610-tracepoint-v2-0-faebad81b355@google.com> <20240610-tracepoint-v2-1-faebad81b355@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dUAfOGkLLXcIvSlP" Content-Disposition: inline In-Reply-To: <20240610-tracepoint-v2-1-faebad81b355@google.com> --dUAfOGkLLXcIvSlP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 10, 2024 at 02:01:04PM +0000, Alice Ryhl wrote: > Add just enough support for static key so that we can use it from > tracepoints. Tracepoints rely on `static_key_false` even though it is > deprecated, so we add the same functionality to Rust. >=20 > It is not possible to use the existing C implementation of > arch_static_branch because it passes the argument `key` to inline > assembly as an 'i' parameter, so any attempt to add a C helper for this > function will fail to compile because the value of `key` must be known > at compile-time. >=20 > Signed-off-by: Alice Ryhl > +#[cfg(target_arch =3D "x86_64")] > +#[cfg(target_arch =3D "aarch64")] This patch breaks the build on riscv (and I assume loongarch): error[E0432]: unresolved import `_static_key_false` --> /stuff/linux/rust/kernel/static_key.rs:87:10 | 87 | pub use {_static_key_false, static_key_false}; | ^^^^^^^^^^^^^^^^^ no external crate `_static_key_false` Cheers, Conor. --dUAfOGkLLXcIvSlP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZmm4vgAKCRB4tDGHoIJi 0pVkAP9EeMhX3Q/hwLb+de1F64FhI0DaOk0yQebsR9xD6ZE8VgEAlwzOITVeEvJ2 iMqajvY89XlzKAdwizJAOPQ+h/BZwQk= =xvXY -----END PGP SIGNATURE----- --dUAfOGkLLXcIvSlP--