Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp34968lqs; Thu, 13 Jun 2024 03:03:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX+UoYYvnToVxR6Ink14A5+zDDZZeWnzvjjpHO4/fshC7TH5muuUVNdXlwt3Fni3uZ3zJ9Qj9gw9exwTcY9U+dpEj3G9SVflJYKaimtvw== X-Google-Smtp-Source: AGHT+IFUDm+0ZpBxSanXfLT6YJnbqrIARqjBwaT/vSyG2C9U2V6qXhWSI9kwJ3G+5+Kv9//HdX7f X-Received: by 2002:a05:6214:1922:b0:6b1:e371:99c5 with SMTP id 6a1803df08f44-6b1e3719ab3mr32297526d6.7.1718272998462; Thu, 13 Jun 2024 03:03:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718272998; cv=pass; d=google.com; s=arc-20160816; b=oV6dRzQ0+aHvnhTaot/OQDxOE+77I7QeU29RkRjmsplboBObw2YcVOzmM4Vj3YGAOm 49k/Pb8OE7x92il/hgvjiatAY65eyLuqYI97/qZ7hmFqnOaFvU+JdSzY0csp2zaZ5qZG FWm3Av9urt/+OoBqxcrhx197KdGzQ88i/D+FiwRpsvyDuKbjAvPde+JNlrQI/T6MObDb tLzxEZeYQjtvOn5HrTI0J/VjrFFZLFcIeYrG5T17o7ZxHGJ/JgV+WQiv71YqeX0uVIAt IbcSexoU2vgCs+wlnBnA0nff3DOmmDQ9yYe4F67Vc3SKh5TscqgVWPMzHmPa8fb0xWmU 2ffg== 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=G8t/dnyOSvvCj7CMC4JsxPThuNOee3PY/Ww/fnwxEpA=; fh=Br1Wzctqc0k6QnGCTa7rZjnSDShE3tx288j9MMlwii0=; b=ad8BTbXFdj5wgW3MP5s411tg21s8MD4NJ0YKzOJVkS61j5XvrqwNeMzYt2G778BNWg 3lZLyYJVLImc/e9AUS+W0R/kltebIO85E7hZ6lvgEV9HJgwS1g4eSOwXnDLJmgFnSaWY U1wIF2IjRtVTKBa6/B6EE2aidVuDmJYQZHTU6Al+xomb93AljotcNJw7yc+9rRgI8lJt Y3MIEbMHpQb8MMiUmH+nr87d3AXDtqk8lE/Sz0kxCH7g/jDAXmnRauKUL9SNwlOQkjPW YvP1APjyIEA1jlTvMx29zCGdg1M2dKNMnztqBEIvGblHeppzThAckozwXqJjAS8HV65w ayMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NqNPZhTJ; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-212995-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212995-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6b2a5b57752si10909536d6.421.2024.06.13.03.03.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 03:03:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212995-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NqNPZhTJ; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-212995-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212995-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 33A3E1C2313C for ; Thu, 13 Jun 2024 10:03:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1598E14199C; Thu, 13 Jun 2024 10:03:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="NqNPZhTJ" 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 20BCF134409; Thu, 13 Jun 2024 10:03:06 +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=1718272987; cv=none; b=tC7jmHQ9xKhItrBQXQmYz3FNHLKDQNA0/x0CHLf9TVenGVNn4eNR4TcU+00DL7Sm9HaKSjipj1LZizmpsgkEwqggt6xygjDcKKX0z4PFYt5QVB0Y+b0ixzCXi2vkzdT11MbzgukLnXhFWUqry13PeW52lraB/drG9bw09kCCeHI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718272987; c=relaxed/simple; bh=CqHO2/KK7eIKe3EFoA4TtHPEMTMPdLClBxAJ4UmrvLg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KXEbRwvpUv0yDre/bda07f9U93V5poLFzW8WRCqXVi3juaBI/RjmH5CmvqwrsdZwxAgvZ1OnCZMwtzsoVbOQotE8mnl7Vg5APzQQAAT21ifCZBx9XtcMwA58yBnjXizWxf/jHl6pVkA6HIdkNwFI2GvoXODN9gU1Ylu4Ss34FHY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NqNPZhTJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18679C2BBFC; Thu, 13 Jun 2024 10:03:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718272986; bh=CqHO2/KK7eIKe3EFoA4TtHPEMTMPdLClBxAJ4UmrvLg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NqNPZhTJEpyCvzXfGU5AnNh2gavLMwsYzQ5eTYx5mLDPdSSIqSRAKZLJPIpCHaYJR ZbGmNlNWp/ql5XfAGCsjaIZewR5YWdNBQPF/JbE+b4CeU2YsQUlvxT4PItgpgWF4TL CUhzvnxOEk/9SvVUdnWqARHGMUiC0hjz2Vn2kezE= Date: Thu, 13 Jun 2024 12:03:03 +0200 From: Greg Kroah-Hartman To: Peter Zijlstra 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: <2024061353-stillness-unearned-dc4f@gregkh> References: <20240612223025.1158537-1-boqun.feng@gmail.com> <20240612223025.1158537-2-boqun.feng@gmail.com> <2024061341-whole-snowfall-89a6@gregkh> <20240613091747.GB17707@noisy.programming.kicks-ass.net> 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: <20240613091747.GB17707@noisy.programming.kicks-ass.net> On Thu, Jun 13, 2024 at 11:17:47AM +0200, Peter Zijlstra wrote: > 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. Ok, fair enough, if you all don't think this will change often...