Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp179988lqq; Wed, 12 Jun 2024 22:40:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUN0l6hw184G9t1h6issDRlGEC7p4cly8DirBMOUxCXTUBGkC/Vo3whhyLoQ7qeRFKxN9XB1Hh70KgaxpyxYf8OiztU1+Op7ltJKVJC0w== X-Google-Smtp-Source: AGHT+IG16Y0bs+QPLXnoCfhss4rT9KLuzSGgCNfO3jN9RqUS9QDiifTzA3Ucpo2xctiREc3UYWIe X-Received: by 2002:a17:906:3199:b0:a6f:5698:ab5b with SMTP id a640c23a62f3a-a6f5698acdfmr44490466b.8.1718257222445; Wed, 12 Jun 2024 22:40:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718257222; cv=pass; d=google.com; s=arc-20160816; b=C9VTO13W8laVPrLl/ECYmNJEdgoNI6WpOUmMI/p7Xck1c4j2x4tZd/4wJOgxe5o+/F EOhwrVz6cXBxvKvbBBvWnWoEF3njCRXHefhrPM1d+HzfQGl1lqz2503vG1pKie2MTT2K vIoNFIVtTmCYG6yYCa64IA86vikMzKSNepbXmf1Atp3ZkPCJ2mtKPnLUIvxvYtXi0Dtw HM9ufQbmZC0hQb1Uqqon5OuHun/Hn2KDx1ZtWHE+no67DYAvQkej4+i+2jtEfSY0LQJz xpbGPGmAu7E5Sj9oPXHdiAGe4a6Iwa3P72bwBhGFWoPUD1TlpmHkYBeVQKsGS2QQ53vT ZqLg== 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=ZcYTQFWs5+97Y49ShyJGWZXOwlDhMY34Jftimf0oxws=; fh=8CE15ZSEAqjKXtGh3PF7uv7CErD7G3gD9dXBq7QyrSI=; b=ApueE5q3Sf4IcpkL2U3oU9C7FbCWwcxKicC9Z0GXVcdhyrw1UnLBl0OfouOJ3ouCmP 94hrTqSd+iyF0Tdkm2qHX9bdgi5ltpQdrw9M4xQ3a8xyaGj3/suNpTeH6Rmx5k1XE4tI kjUV5hi3UDZd0FvMZv1RkYoZFZaBvVl/IoeL6+3UToF30Are30r3+jj4h48U+LIC8spB teraXIhTshOZ0Xohee0l3EdnEMfXrdKusJD8yVFWuPzC9K9t3Ip2h4cxB+JT+2mSrXzw IqQwuFGZ+BAq5g78ruw0XKcbHf/8lxqGMM2P7EbWB9P+JJu8svJQ9Yymkyh0B9H9Pp6/ OVLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=W0eg7I6U; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-212575-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212575-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 a640c23a62f3a-a6f56e3cbfasi31649566b.858.2024.06.12.22.40.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 22:40:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212575-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=@linuxfoundation.org header.s=korg header.b=W0eg7I6U; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-212575-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212575-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 2C7821F23284 for ; Thu, 13 Jun 2024 05:40:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E448C1369A4; Thu, 13 Jun 2024 05:40:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="W0eg7I6U" 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 045FA44C86; Thu, 13 Jun 2024 05:40:07 +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=1718257208; cv=none; b=RX9hUzBDdLKT/TemmJ10UR0Nd26csLosVY2thcJF3jzxW84HU0dgdM3IbvuCNsSwqwNwBpjH7JiW9Z58yaDW3BeJpymEZzrhEbGGwcWL5SNzM9dUoMhsJs8bLmkqNyAEfpTwmi76b2G0L3pBw5Q7TTz8zpzetzW0KiBK4DDiQj0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718257208; c=relaxed/simple; bh=ZcYTQFWs5+97Y49ShyJGWZXOwlDhMY34Jftimf0oxws=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=euhnJQjeuwMD7rvqCMSD5pqx+sAAKnyh9rvmTK7lT+MBg6YxJr49d35LdAfeatgJscn2i1qcu8g6WjQrqzhr8ma8rJuqRddjzq3kcBo9Tf8fjxpsffKfp6yDoxP2chUta23pH9vR0My9dtJ5gWeKqt16M46TPkrEHxm6a98xf7I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=W0eg7I6U; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC6CDC2BBFC; Thu, 13 Jun 2024 05:40:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718257207; bh=ZcYTQFWs5+97Y49ShyJGWZXOwlDhMY34Jftimf0oxws=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W0eg7I6UwZWJCF3Nborq1V0QGwtPnyFwcJ6uuPowJNY0HJJLn4RRmb2/DWPN5RnbA Y/VLxnIUqobXvf5llPnQTCA+dUKbpFSIJ0LMLkRthOl3edJhorS8D2zG/clLROt6J6 FIjGgs2OgvYPjQmpukp5A2JMX0tpZuTOy406nH9U= Date: Thu, 13 Jun 2024 07:40:04 +0200 From: Greg Kroah-Hartman To: Boqun Feng Cc: 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, 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, Trevor Gross , dakr@redhat.com Subject: Re: [RFC 2/2] rust: sync: Add atomic support Message-ID: <2024061340-charger-discourse-f077@gregkh> References: <20240612223025.1158537-1-boqun.feng@gmail.com> <20240612223025.1158537-3-boqun.feng@gmail.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240612223025.1158537-3-boqun.feng@gmail.com> On Wed, Jun 12, 2024 at 03:30:25PM -0700, Boqun Feng wrote: > --- /dev/null > +++ b/rust/kernel/sync/atomic/impl.rs > @@ -0,0 +1,1375 @@ > +// SPDX-License-Identifier: GPL-2.0 > + > +//! Generated by scripts/atomic/gen-rust-atomic.sh > +//! DO NOT MODIFY THIS FILE DIRECTLY Again, why not generate at build time? thanks, greg k-h