Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2435173rdf; Mon, 6 Nov 2023 14:17:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IEol7DYjVooi7Nh3Uhj5D4jayQgIDw+0pbgUCkxboYnULmYqA9lcuiu1Dd8qsFp3nTYPOHk X-Received: by 2002:a05:6a20:3d06:b0:160:83e1:712f with SMTP id y6-20020a056a203d0600b0016083e1712fmr39187179pzi.23.1699309038447; Mon, 06 Nov 2023 14:17:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699309038; cv=none; d=google.com; s=arc-20160816; b=gcu/DD2NpRW5UnU7VquEWIxRsZ911KATEe5zL6GuuEyz+bHGk0V+h4gwmJjdbhjcbZ cDQt4FQyjsLy9wq+9Nz7OjaXBe0NkTJE5YtHeDJ1B/pM7NA3QlHDaCzXn/yIKUGvVX2M LNbhyH0PXEyePBVFc/tduBidhBkxj9PZVImOxblM/g1zWHKovZt29kjVQCtBijXyd32d GHCeGYXUcXaHfPJrdVWX7jt7Iy9jpEthCRwknWYTqS40jspOZC7rCGD3tOB+XApyTajF mbNd6Sj2cQM5fXcYa3QlwoTlGLSEKLWTlXId45qnwRnJ0tQHX76gzaLh1mowV49e59FA Ea5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :date:dkim-signature; bh=BNxWJUeheK6gz+So6VEqeeEFNOpFymOedNOxNufT0d0=; fh=2FeQOz/SLkPYZ2das1RWb2x9+B0brJ7dDAQZlvdxmr4=; b=IL0geRFhc6qkK9Ldsc4iTIIFtJV1sUs9USovENwKSSttlVOEhEifXlLltTXiIVEj51 nJ35yClvcISiJIXgHRoY54WnFfldbURTo6B6GabzTkSHDjYxfRftSQ9Rsp2ROlqVrQn+ taC2tV9q1BjIwAVUWzhhUac2+x3JQfz1EoeoKPc+90LReRyp1pwRE5KEMPizCzuSkRoZ t1DROqOpEGcwMxHVWmyf74Cv8xfzUCbgQ51qUhWvZ27CIzivLrwnsNlTUt6yrEHnSnMb zlY/1cun2I6clOqGzyC6WrNiCg6KguamDwpKua2yE0EH0L7EEY9gVT9v6P9R5oqnAolN l4jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@proton.me header.s=protonmail header.b=AhnJxO6x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id i186-20020a6387c3000000b005bd85b2f231si563729pge.298.2023.11.06.14.17.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 14:17:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@proton.me header.s=protonmail header.b=AhnJxO6x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 40232802FA31; Mon, 6 Nov 2023 14:17:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233230AbjKFWRF (ORCPT + 99 others); Mon, 6 Nov 2023 17:17:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233216AbjKFWRE (ORCPT ); Mon, 6 Nov 2023 17:17:04 -0500 Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch [185.70.43.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24DE1183; Mon, 6 Nov 2023 14:17:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1699309018; x=1699568218; bh=BNxWJUeheK6gz+So6VEqeeEFNOpFymOedNOxNufT0d0=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=AhnJxO6x4c/fSu8ujTAjajj1x3Mu/Din++uRfo0kverW+MHLIWmWKx6WmTmU8yp9R 7FPjgfq3tlf+8MnWO8JaZ8okYOBh+tm9RngiZFaEjYZ9oqCfoOZGzHvsUixNPT7bhg /lq0bX4cnwl1AJ31WUs623LDmb4n3yG/+kZLaBwmZTxLuEhT4+X+iDbvhlajZKeQUP H1VbBmfHizNix7nj9LQ1usxSoPPXIpGzO9d8eqWjzO3DRyzuq5PowRaqKkeA/F5kDk oAqZkk3KM0acDSjIfA/siNk4XHRWeV2SrznQn/25k6gS+WSgItnlvUG5ijFr2n5JsO OPwBsbG6zf+ZQ== Date: Mon, 06 Nov 2023 22:16:53 +0000 To: Gary Guo , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , =?utf-8?Q?Bj=C3=B6rn_Roy_Baron?= , Andreas Hindborg , Alice Ryhl , Martin Rodriguez Reboredo , Vincenzo Palazzo From: Benno Lossin Cc: Wedson Almeida Filho , Vlastimil Babka , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] rust: bindings: rename const binding using sed Message-ID: In-Reply-To: <20231104145700.2495176-1-gary@garyguo.net> References: <20231104145700.2495176-1-gary@garyguo.net> Feedback-ID: 71780778:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 06 Nov 2023 14:17:16 -0800 (PST) On 04.11.23 15:56, Gary Guo wrote: > diff --git a/rust/Makefile b/rust/Makefile > index a27f35f924ec..57f7f5e5a95d 100644 > --- a/rust/Makefile > +++ b/rust/Makefile > @@ -337,6 +337,8 @@ quiet_cmd_bindgen =3D BINDGEN $@ >=20 > $(obj)/bindings/bindings_generated.rs: private bindgen_target_flags =3D= \ > $(shell grep -Ev '^#|^$$' $(srctree)/$(src)/bindgen_parameters) > +$(obj)/bindings/bindings_generated.rs: private bindgen_target_extra =3D = ; \ > + sed -Ei 's/pub const RUST_CONST_HELPER_([a-zA-Z0-9_]*)/pub const \1/= g' $@ I think I mentioned this before, but I think this should use `^` to ensure that this is only replaced at the beginning of lines. --=20 Cheers, Benno