Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1873920lqp; Sat, 23 Mar 2024 12:31:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVZC3udJoOrNVtOoCMCDpPOAQTbela1SJ+izFLVVQMgtgg/pPUftetd4PjME8+Z2ldSHnpZiVY8lbhtiQjxd9VD5QYMem8ywwhtQGcLyQ== X-Google-Smtp-Source: AGHT+IGdRZKOMiCBL7Vbk8u+PPBszSLEZzSU4mKi4+e8ih3yl08sWAjQYFBlT04mxBVAXUInXRZ0 X-Received: by 2002:a05:6358:789:b0:17d:daa2:740e with SMTP id n9-20020a056358078900b0017ddaa2740emr3492771rwj.17.1711222304561; Sat, 23 Mar 2024 12:31:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711222304; cv=pass; d=google.com; s=arc-20160816; b=hqA3lGVX246/ujtZ3zzUrLxLiIcmI1ZtMdbl0vC2TsIoonbntnUdzrnMMmbQxdZkuY NtZUVO7WLPlm/A+JEGPUafQsKFtZCbh2CVGLMFqLxQefdhjvNdzKDNs+im5kdzukLzjj 5J231nopgT2KXjZ2vxwPu4VQbO2KGZ2mqpt5m5ZqPfqJpLJI1LRu3cTU7XY54GSYurBO Kgg8XEFlNknRKa5lwMM6lJYKNZ5cIf71WsAFLP50oRUJB5AhdUr1dOnWWtSRpMWwxc6X 9NHmM08hxuXYNeFA4b4BGnJlc1dij87Z85FKBljupExsbf33MVn0Hg7BBtfAL5Pgidn2 le/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature; bh=UzfTGrntJOeM+olDkQ47lkfVfDGWdlHTbh5Cg8H89NA=; fh=XFJ/M15BQElPLKaII45EZsYMZjOWW0uQ7bgbKjU066Q=; b=zMwHA8cgtwNMxjfpM/heV7M55iLTm0j0H0oSipsO9X447I2AlPwfLG23vk7SP8+VLw d/eXyy7aw+egJrsE3Q7M30FEomrbt1hq8Jejm4mpeFd39O2LAcnayB0ytGRsyH8mbB8Z zRQbZEZlyL6vLFta5N671yl8EatV0R1GxrIzVCvMh4+2sss4hDH4Tq9IuUIrUOFb7P1F w0JIdWZEGeuCT6ygYuFJwQRstSY7w2mjvQm5a2+m/tO7LUHCFX0QH5sX5I2wHqzMhrE2 eLEjDHLacJNyZgv57OKOfw4vAJnx8e92HOjYvh/M4e1snuiVCLTlReZ33qaN2Mh5S1LE 6GKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NhZ07YBg; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-112465-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112465-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d12-20020a631d4c000000b005cdad153d85si4483613pgm.651.2024.03.23.12.31.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 12:31:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112465-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NhZ07YBg; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-112465-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112465-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 28B72282131 for ; Sat, 23 Mar 2024 19:31:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 552045A0F7; Sat, 23 Mar 2024 19:31:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NhZ07YBg" Received: from mail-ua1-f47.google.com (mail-ua1-f47.google.com [209.85.222.47]) (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 0193E224ED; Sat, 23 Mar 2024 19:31:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711222290; cv=none; b=Kh/Bnd9VUBBbNtYD0lxEsCpzDK6H41NPLfKgdO6SmgYEpAgLDZA9qs2aYF41Eqyfku2rbmLAh8XWJx75yTKWwVQNZhnXc9wWOTqH9jKH9nbc6Bm6KQc+gfyYbHQjh25J8Ve43UbaXFjbTpHtZvUcUPAO+eQsqP3IQpipIHOnyJc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711222290; c=relaxed/simple; bh=eKx1Rl5msAf9l6TkuqBNrvlWhUbPcQ4w9uh9Tv4DoR4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=p31d4a6Mmf+T7NnsQg+Oq7DqtUzlD+zaied7d3cKaoD7yhvCil3HqSskjz2fCy8fwdTuQe40wlKO8weao5KtVAteJREFCJI0ZI1ddlWkCBDXhHCM+sQfTYtbRyViWQreppe7WkwBNRKgmLxB+jMYBOIocmyxb2iAoiFzc6P5fsk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NhZ07YBg; arc=none smtp.client-ip=209.85.222.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ua1-f47.google.com with SMTP id a1e0cc1a2514c-7dec16fc4b2so881701241.3; Sat, 23 Mar 2024 12:31:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711222288; x=1711827088; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :feedback-id:from:to:cc:subject:date:message-id:reply-to; bh=UzfTGrntJOeM+olDkQ47lkfVfDGWdlHTbh5Cg8H89NA=; b=NhZ07YBgt5/D+awsDAW57bWuDVr8/nOmtuGqVGfTPljjU3KEICgj81yX2TuYxoKTCE 9I2ePN4eoGexGp+tCnsYSR2qOI5+WmvWYRPIEUQzUQSwifiaGYNXGgr46X3bSn5trymn iGZXSGKVLYhYjCPibkBJUpK8eMY2RCY4+lOI97lAic8Nr05KZR4vC0ljXL2KloZcV3Ot MiS3BkJ1/1c89U9TXmcbPiFY5EFqDP9rkj+mfWRxYTeb4rcoQSoLWgF7AXYdILuzD+Wx MZG/sFIPQo5kYIgtUQ3rX9kD8skLzxg+uQE57IrU9wRTmH/UIXVK+30GsWX/T3fai7KM UgyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711222288; x=1711827088; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :feedback-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UzfTGrntJOeM+olDkQ47lkfVfDGWdlHTbh5Cg8H89NA=; b=fB24XeRLJcZ6FjCrrwXiV6CemuKBud+Tw3W7lyIdJNe7NHrcuYaYn6NEl0PZTt3Gux A9h8yajh3qF2wC7FElJAabX+69wN/LpjHowQU0bGPJlHjxuZIe+3AxSuvzqpJSyxsPLj x3K4JZPblYKbX/1ZuDiUro3taAst0Wih8/6dhk6fUv5VUJFuArZMWgoUjZ7OwPxUUj+K +twkP1z07tVVlqPo/CVOK+ICxOP37YPC5Gn6AJ4XG2pL9wpOIj5qtkC8W3GU/kwsU8Gf 1ZTMTU2bvpIJ+mFzQzpJZo86vzD5vQVL5QHmatvoXbDlpVbpoGDJbpYtib08xzTdMaVf A2TA== X-Forwarded-Encrypted: i=1; AJvYcCWeQt+mO9cmp1ZiYL/7ekr7Rhkm+mILF/6cASD0z1g0Aa7BbFO8aE7xFllBgP99D0t4PcEuvfkpsc+hKNMuMeWjPtUknwsGdT6dwdYDoC5cd7po3taTuCh1A72QnuW4SZzD9ums88XTEwffD1ilxOPkiBGj3g9ZJhKrCY1oqsmVI2fbX7m4jo+UGpudK+n5SxwDXFcfDuDbULYWh/J3pwRj3wA3VM63ig== X-Gm-Message-State: AOJu0Yywese50ATrMyiUtP0dqYRvbK31JJJLECBcAvrpKf+ZTyosLiSL v287SDG2BdQaREvl29nd+mX9WN+jELbz9OHB0DJVu4BWC6hYF9Dn X-Received: by 2002:a05:6122:2783:b0:4d4:20fa:eb0c with SMTP id el3-20020a056122278300b004d420faeb0cmr2350169vkb.5.1711222287814; Sat, 23 Mar 2024 12:31:27 -0700 (PDT) Received: from fauth1-smtp.messagingengine.com (fauth1-smtp.messagingengine.com. [103.168.172.200]) by smtp.gmail.com with ESMTPSA id e12-20020a0562141d0c00b0069155a36f67sm2352194qvd.9.2024.03.23.12.31.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 12:31:27 -0700 (PDT) Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfauth.nyi.internal (Postfix) with ESMTP id 50B751200032; Sat, 23 Mar 2024 15:31:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Sat, 23 Mar 2024 15:31:26 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledruddtgedguddvjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtugfgjgesthekredttddtjeenucfhrhhomhepueho qhhunhcuhfgvnhhguceosghoqhhunhdrfhgvnhhgsehgmhgrihhlrdgtohhmqeenucggtf frrghtthgvrhhnpeevgffhueevkedutefgveduuedujeefledthffgheegkeekiefgudek hffggeelfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegsohhquhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdeiledvgeeh tdeigedqudejjeekheehhedvqdgsohhquhhnrdhfvghngheppehgmhgrihhlrdgtohhmse hfihigmhgvrdhnrghmvg X-ME-Proxy: Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 23 Mar 2024 15:31:23 -0400 (EDT) Date: Sat, 23 Mar 2024 12:30:58 -0700 From: Boqun Feng To: Miguel Ojeda Cc: Andrew Lunn , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, llvm@lists.linux.dev, Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Alan Stern , Andrea Parri , Will Deacon , Peter Zijlstra , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , "Paul E. McKenney" , Akira Yokosawa , Daniel Lustig , Joel Fernandes , Nathan Chancellor , Nick Desaulniers , kent.overstreet@gmail.com, Greg Kroah-Hartman , elver@google.com, Mark Rutland , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Catalin Marinas , torvalds@linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-fsdevel@vger.kernel.org Subject: Re: [WIP 1/3] rust: Introduce atomic module Message-ID: References: <20240322233838.868874-1-boqun.feng@gmail.com> <20240322233838.868874-2-boqun.feng@gmail.com> <068a5983-8216-48a5-9eb5-784a42026836@lunn.ch> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Sat, Mar 23, 2024 at 08:13:56PM +0100, Miguel Ojeda wrote: > On Sat, Mar 23, 2024 at 1:03 AM Boqun Feng wrote: > > > > I can continue to look an elegant way, now since we compile our own > > `core` crate (where Rust atomic library locates), we can certain do a > > sed trick to exclude the atomic code from Rust. It's pretty hacky, but > > maybe others know how to teach linter to help. > > Yeah, but it requires copying the source and so on, like we did for > `rusttest`. I would prefer to avoid another hack like that though (and > the plan is to get rid of the existing hack anyway). Agreed! The problem is better resolved via modularization of `core`. Regards, Boqun > > Cheers, > Miguel