Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp84023lqs; Thu, 13 Jun 2024 04:46:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWmb2h6t6/hXO5R3L5bvWB+HR5jbadxnmgZN+kJ2dpcrbYu0TQl6fE7uGOAfRg763CosKG1InIIVlGsBl/gBJ4qq/upCG70hQSGtSNCWg== X-Google-Smtp-Source: AGHT+IE5uQGDdto6X/fF2afk55Sa2ByhOSIjTMpL5IA9nqTGPRgEuaVclPfe0EMe+H6QJfFGihgJ X-Received: by 2002:a05:6a20:12c7:b0:1b7:577c:717a with SMTP id adf61e73a8af0-1b8a9bfb7b8mr5183161637.10.1718279209346; Thu, 13 Jun 2024 04:46:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718279209; cv=pass; d=google.com; s=arc-20160816; b=U4DEhUNEW8zLN+OlppdmaAnOfgA0HFm8KMhBXuru1gbfKY/8buGbRtuI+MCN4EJYBE EGTnnE4fVm2EbX4nqeLUSwA0XZUKziyGxAX0ZnygkhxdKOvjBDc9oI8EYI6LUlMQpm1D eWbRG22lFbaTvFrm0UH8dvE8gbWJ4u1w10y5Gx99MLUEInMj1OypoJjO5581DCQnoTW9 d/L92hiWHP3yIXwg10GdjBR5IE6+GdrqoOk3x+sizZ6OZropURS5ZFXWmfxx+ZL3xtmi oOWnb6fGlUFAgYv6sZO95KXXHnQNsyPSX+8wk1rlvAgf+uBjC5bcHUm+PtQFXwu6lNNG LqdA== 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=p0dnDPDEIYuJ2y75CbrgMsy67e1FESlmVsvTOPepdeA=; fh=TC4SGHuYzY7eaDngBe10139Q4F3egYJPRw7v3xry3s0=; b=JLlInjpmJrEsezQxsA7XYU90cCRC7AVIE+qP9c0CjUhQWsRuCdEDWBa5cVwqXuNroM 254JhNXtg6YEZ5nr2YnqV2q9e9Rt76wwQugCJtn4mRJpajRFwr0aOQR6Fp4iF35iMJsg xKwB4+8/kAVV/Gkkges4NgGf9rzAmMbvmU4+Ls1SV1ccEztar5v75helgH0iAqtqv79x ltnueTseAjw/G7ij9/d9FYg3YImlIDvgbPz7tiLdjQlJyvFu9b4m1uhd1egIWEGKYsFq lJdqQWuuPjqrX4wezh6eiOaLxaEIVX+H+HWW9b4YXkXpgaQgd3xhwE9qf7b1MAqpNLIW xqJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b="A0TLT7/3"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-212933-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212933-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4c4601e2bsi1301980a91.34.2024.06.13.04.46.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 04:46:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212933-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=@infradead.org header.s=desiato.20200630 header.b="A0TLT7/3"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-212933-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212933-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D4AC6283D80 for ; Thu, 13 Jun 2024 09:18:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 09A1B140383; Thu, 13 Jun 2024 09:18:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="A0TLT7/3" Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 6531513E8A7; Thu, 13 Jun 2024 09:18:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.92.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718270294; cv=none; b=OKfdBTLOYaoM6ETT12uRUlEz0LvhVleSfWrUh75/EGq2p/w4tpji+1hS9bBwBPFzf9nofVZoS8enbIzEC59iWoTdl+Fdg+DDR9FHHgRXsioHRFdUiVYuYQm8qwAwt23kPK2TB/rReBJrDhOjFaObGAJkwMvR8AmQvjL2yJpnMVc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718270294; c=relaxed/simple; bh=j57AjH7vWOzLYS8GEi6N0Sm4lqhf9PnfiNNs+BWRZvc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ub9Sul6WhfiOSoZL6TupcoJSA6XFzYzfR9cPjZrtZ6TQmCVJEQeYm8tdR8QfzIui21jcwfDOqK0/dJGkfyjdzjZuxFuWtcZmv47TKSob4R0Bnt9NEVGB7Y3b7sbZEDHBfzWrmXnkS9HbstOpLSq1R58Li/BRmjQ2Or+TLt9EZP8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=A0TLT7/3; arc=none smtp.client-ip=90.155.92.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=p0dnDPDEIYuJ2y75CbrgMsy67e1FESlmVsvTOPepdeA=; b=A0TLT7/3PW8jq4FG22ssotSS0g zPEMM2uzluilJ2tNOjM9f5NZ6KZM2OQshkLdPgKv+9qmi+fIk9ccNkgp82a7JoC9sCGKPOG1eN6ZK fLtadKbtssSZyz+uAin1jf6o+EDnhCxsprUnKhbmaxCAdSCtSINGkMzMb9Sa8yQr+d8UJrIW4e37c Z7NIv6OC2+S2ZHiBSzwmuYy9biFMMC+KNad4ogL57b1BoNyAUNeuFmNTetACp01Gh8YYGucXUvY1w 8ZL4IUDpKPtuypRva/qqBvfWB1zmtJIqc6lwu58UdEw3eYOIvsTlkddi7wZMC0I1YWt8D1tkXCRk/ fWpzxxjQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHgaW-00000003Uvs-2WWA; Thu, 13 Jun 2024 09:17:48 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 4C42E300B40; Thu, 13 Jun 2024 11:17:47 +0200 (CEST) Date: Thu, 13 Jun 2024 11:17:47 +0200 From: Peter Zijlstra To: Greg Kroah-Hartman Cc: Boqun Feng , 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 , 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 1/2] rust: Introduce atomic API helpers Message-ID: <20240613091747.GB17707@noisy.programming.kicks-ass.net> References: <20240612223025.1158537-1-boqun.feng@gmail.com> <20240612223025.1158537-2-boqun.feng@gmail.com> <2024061341-whole-snowfall-89a6@gregkh> 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: <2024061341-whole-snowfall-89a6@gregkh> On Thu, Jun 13, 2024 at 07:38:51AM +0200, Greg Kroah-Hartman wrote: > On Wed, Jun 12, 2024 at 03:30:24PM -0700, Boqun Feng wrote: > > +// Generated by scripts/atomic/gen-rust-atomic-helpers.sh > > +// DO NOT MODIFY THIS FILE DIRECTLY > > Why not just build this at build time and not check the file into the > tree if it is always automatically generated? That way it never gets > out of sync. We do this for other types of auto-generated files in the > kernel today already. Part of the problem is, is that a *TON* of files depend on the atomic.h headers. If we'd generate it on every build, you'd basically get to rebuild the whole kernel every single time. Also, these files don't change too often. And if you look, there's a hash in those files which is used to check if things somehow got stale.