Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1868112lqp; Sat, 23 Mar 2024 12:14:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXj3xt9tUVKblQFr5Y8pQyJFxE6GaC4mswCagueBEmygnL+9uRV8R4Zm7DlHI1i9pfICdIkJjkSDX89LtoAmwLk2Os89aHqpcfp50NkDQ== X-Google-Smtp-Source: AGHT+IG7VRLZ8DQ9+Sm6TnqGIChcbIk+9+5rylF1hi+szcAGtHdi70x4XP0wd/NDd0LFVN1WpLrR X-Received: by 2002:a17:906:c00f:b0:a47:20a1:5a4a with SMTP id e15-20020a170906c00f00b00a4720a15a4amr1885921ejz.23.1711221275942; Sat, 23 Mar 2024 12:14:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711221275; cv=pass; d=google.com; s=arc-20160816; b=ZC5b7E9uELixxVIOdfiKQC592lULvIUqBs8dm15znxBiNkWpAmScnu0RkPQI8aRK5q 3ZVwvgar4mZdWGnCIL7+N0x2mRA6AKrlroYlvy9qlj5brLKvoHjYlvbxeY4RXou88EMV 4LroWHtrKrvTHR010hIoru2v+H1ZCOZtysLKwBljFaXC4dklE62cNeD5MishcYS07p2v tmV0QW2N0ODbCy5WdgB5euV6RIjK1MjIZRc9EUK5iJl4ela5XtQca1bG3TEZSy/LxDlD npsNhXYaIDKHGt8xCd1gD7rQ3f6bloit60PdN23LeqybqmtCF874ZzfXh7GJ9ozsn34Q m8tA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=m18NgGo2FWorgOirXh/+wwWWyKLlg/fRucbQqieOhHM=; fh=luByEiyHv+hbuQBvClHQs5BYCzBzRt5Taqec5zkyvjI=; b=fXOshWMGOI25equJSk+ZZcd/7Fwsd5xBxRKHYQfrm79e3lx4PdqJ3ewzQyWziTZFW7 RlijHJv5SWT5nx5eoA8n6uon7olGSEHerXuEtEFjMIOPp9BICzHMuZQh6Aq9MM1uHE1J qSxaXMDFJccmAbSUKdkz81K9VF6kLapnIkyBtqSAIHpBDF0uXai3Jn13FgWPG17iLhgL 8jFIQf4RftGgM+sXMlCmXBy3YJyEEhW0qi5REzGWyAo2REeK5i6ar7rpmaHuKNIvtesB 6dSwjfW5coBqbnFTDia/z8CDq1fpR8/UApRPZk9qnF/gc7QWI9HNpUc4JQXh0v4xl4c2 +2FQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZaB99T0h; 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-112463-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112463-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d19-20020a170906c21300b00a4659bf5922si981556ejz.208.2024.03.23.12.14.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 12:14:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112463-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=@gmail.com header.s=20230601 header.b=ZaB99T0h; 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-112463-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112463-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A67E71F21850 for ; Sat, 23 Mar 2024 19:14:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 97C945A10F; Sat, 23 Mar 2024 19:14:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZaB99T0h" Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) (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 620FE59149; Sat, 23 Mar 2024 19:14:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711221261; cv=none; b=ZprRYzRQ5oFvJbHIMcHSLnXq3vsdCaX+Lq12H8Z2o+uveS+c1M3TPlP9j6ssrYb0Ta8djhFBPmPKPsJx6VO134wL0TTz7w7ej2K4gylpxzObUHsCF1v0aY/hM1sEC6fL7VU/Ckuz7uuiYgBDpqWG2ANhm7/s3eVOKA64RxZ+pZE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711221261; c=relaxed/simple; bh=m18NgGo2FWorgOirXh/+wwWWyKLlg/fRucbQqieOhHM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=TZMMYyFugpUtb8toW7/G/6WpIQEeV/fgJwGG84gE9PKVKKWZTTDb1tmyPM3NrgDPMjelq7APFX9qMaOkml2FS0bwlWt2EhyGR7Z+w7+Ozf8WeBg6zcNM+EyiZYE8DGCGzvnKMkn2FFreTwyIcbKAO+dJKXQl4CWXpgczjSa09+0= 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=ZaB99T0h; arc=none smtp.client-ip=209.85.216.49 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-pj1-f49.google.com with SMTP id 98e67ed59e1d1-29c5f8bc830so2105219a91.2; Sat, 23 Mar 2024 12:14:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711221260; x=1711826060; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=m18NgGo2FWorgOirXh/+wwWWyKLlg/fRucbQqieOhHM=; b=ZaB99T0h2cPk2KUFKw3bwld9suchWaPYpC92a96/GwDE/IfFt1x9wrI96NR3100Imm vAyEhnZkRM9aLdMWWbjIYqHBHSObMAd/hLD2HzVn+DMGA/PD4S5oTXNqIL1np9uDjNge pbW9z2i6YRfs8+BznA74SJaAYlKbPO3xtTuswRLnFsb1HABIU6JYOuRyvs3Gi0mE8+Tr V1KopbfnaaFwTcsW5qmXwRIWvIMWgs1I9lmUARbk5I2CZSbLdOpEHHt6zcJMhFGyIfUd XJAVDk5eVFIcxRt/2TK7wUM2tLB0F7EwNNN5nAaYROkcSdtSP7STi++oAqiUuvQEMgmJ H+fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711221260; x=1711826060; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=m18NgGo2FWorgOirXh/+wwWWyKLlg/fRucbQqieOhHM=; b=r6OimSkqzVVV4F+eiZHxhvNkFKYW/UrB/ys0bzdk7So5euto7lUeRV711uf7xfa5mb mWEs2254RRE9tJaYngK+Xms2G04I7bmITB9x3e4D/xOqRNyr7EGDscKkDU4TV05A/63Y GT6w/ejzrozPHvLfrsZhaP1xxUhYWg++LGHO87Om+GNkmdcHE1aPRpsgU4/A6yvbiAcL nIXtHu1FrpY2fgook5kH27ed/zMB8WpJM4iFSYOU/pJ2DHzCv0SkCLY5hXqQkiuEOfUY xqmJxaUdC5dLcILM7njUnmZzgH00JTwOXBEcdSo/n+hatcTmoq6ahw8nl6a+lLkPFVCg Hgkg== X-Forwarded-Encrypted: i=1; AJvYcCU7qbL8Xr5qcg1fn3RByH1yFUuswJMw/112tjZC3dZxQQgm33uyE7EOR34Os+K5kQkPvZ4a13k24jGvDf30l5ClckN8zBhamsWQCLTcBwwV3Q45iGMXpfxYgZ3YHz+OhZo1jyTs+0Rng0dUJ4TA6goBcD3Ko8ZrC7eMed4icPWs7Yqfo7HjWdTeKfc1P0RWN630/9YE5CrHcASJs1CoMbEU9VVIJ111yw== X-Gm-Message-State: AOJu0Yz7jREwOnL1qx7y9vBTMWjknviq6O/MSN1jkUOWztpY3IUEnolK 97MPiufYb1ZQPPQsZ8voVOcOGdBRLOmEbno68Bbz8ntT/dGjF3RdxfDXi/JsikrRw+4fc1FPrIo JTERyTDJcAyjphNqEHmb7clwacsw+F5buSmc= X-Received: by 2002:a17:90b:190f:b0:2a0:40df:fa37 with SMTP id mp15-20020a17090b190f00b002a040dffa37mr2297623pjb.39.1711221259633; Sat, 23 Mar 2024 12:14:19 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240322233838.868874-1-boqun.feng@gmail.com> <20240322233838.868874-2-boqun.feng@gmail.com> <068a5983-8216-48a5-9eb5-784a42026836@lunn.ch> In-Reply-To: From: Miguel Ojeda Date: Sat, 23 Mar 2024 20:13:56 +0100 Message-ID: Subject: Re: [WIP 1/3] rust: Introduce atomic module To: Boqun Feng 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 , =?UTF-8?Q?Bj=C3=B6rn_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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Mar 23, 2024 at 1:03=E2=80=AFAM Boqun Feng w= rote: > > 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). Cheers, Miguel