Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5514126rdb; Wed, 13 Dec 2023 10:44:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGPJ2GdQUch/LAGIlXLmK99fFEltofuYE6ulxxrO12Bd+iUrHMYJCj8XRyeHOoUqiVItOzL X-Received: by 2002:a92:ca4f:0:b0:35f:73fa:6452 with SMTP id q15-20020a92ca4f000000b0035f73fa6452mr1987332ilo.13.1702493076976; Wed, 13 Dec 2023 10:44:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702493076; cv=none; d=google.com; s=arc-20160816; b=1Jey8cpn70jTAKzfnWFEJIQnc+HobjjXbYkDMrDQc7dBXQPTZqUw95titZK59RjHFi +NDnHYi9oEDu4H/L8pvYiWuRb7IN/jXCv+7eWK7x7C9WMBNJ+bJAH9akZYmEiSH6ps/7 0Si4mzj/R5CdOWQDtpmCg5CKNwCAWCiJjQRbO89IvysWcXPQOk/jsH6xvKYhj85TUcvE RiYa7zNopHf59f2kucswf9GxssMU8WB+dNnpoP9IcvkhGVGCdHBkC3LpwofDqeY1QqGD ogpHpvrYy/xhwsPrTW1FkK7IxIRsPYvFBBFdj5BJJ4nIoVJw7IkkQBlfSHW+kTWu5U93 E39g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=2G6kj7N4hRgNEBr/3B4wFHKE0y6pfp8gXRui9/NHf1s=; fh=xrk/Ef5iE5nMIaEq6p436oAjO8hfoGb5rvBs5cX0O6w=; b=x6w80Obcy1amV2sCNKzvcXYgf1bDHbgmhDdM87EDvJPx21V1T6nrg5ICRFL/W8daf8 9t8i+zesZO3heUKQR5biM6yThLL8s1WgWzPRTlovDgyeGWU/WRGJPsGzdSChnw8wlRh5 Wztvi61/nKLOcFqo7w+CuOTj4xgHczCxNvyKp1LYS1C2GGCivp6hj47sHg5naazAEs8U I39rKCNgXB1N3vWdr1tHXa+QVzwX5az6XzHNTr0WiKV14kWbcakLQkiuoli5PPf9HNA2 2fpcP9Ml7kX38ET1+dxGGnm66/cEicD7xt5wW6uhyjxOIVU8dKezs51Xf/OdXTxR6N9N Ohtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UV1JTqmq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id j21-20020a635955000000b005c603f06562si9874095pgm.333.2023.12.13.10.44.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 10:44:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UV1JTqmq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 8EB6F80202C1; Wed, 13 Dec 2023 10:44:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233759AbjLMSoQ (ORCPT + 99 others); Wed, 13 Dec 2023 13:44:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233516AbjLMSoP (ORCPT ); Wed, 13 Dec 2023 13:44:15 -0500 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E83E6DC; Wed, 13 Dec 2023 10:44:21 -0800 (PST) Received: by mail-yb1-xb2a.google.com with SMTP id 3f1490d57ef6-dbcd28d5004so894652276.1; Wed, 13 Dec 2023 10:44:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702493061; x=1703097861; 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=2G6kj7N4hRgNEBr/3B4wFHKE0y6pfp8gXRui9/NHf1s=; b=UV1JTqmqlOr4+4W3DCh4Z6LY3Pwi4x0o+J/Qp8dXGjmm8KZjsXUImlnkwl7S2+mnoB A3mRvSvlNz0XUT9LZycAbt13bz0+9fj7pGbbUzhmm+wpZTG4N9HoWbt2N2/AI46V1Ema d5lXnArSVNI4Tlz4S+RKOeZTnYN0nM/Pbl0NBHuXW+agnboGkUZHS/OQC2LMMlKf21ZS 7Gse6D4KsAsnCUQQgaVgT8TmjJVcLyyefSuNkGXlt5l0sQCUJo4qToSZQLQApWb2c3zn O7gq23weCBWvh4hFYKdSt01630TmsWO2gIefiamClnUeDR6U/eIak4i6Cp0RGyV2juPR y+6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702493061; x=1703097861; 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=2G6kj7N4hRgNEBr/3B4wFHKE0y6pfp8gXRui9/NHf1s=; b=bf0h4H6xG3SQVR1F6Zdo3wCKmL0mozV4QZHpOAoMw8qdrCquE72mnYXx0XstpjKeU3 Rr/cjJZey5AVxfKc5yEG3nUf8FgHzYfV1FEbgRXV5yjPLbc+gFhdj8sAA+8kEXOtpuwd hRYRinR6hoBa7onEdTjZXb/uGNPHM3ztQ/LAGTSLDiH7vPhk/HTnSCzBHxtpC6f2TnBH vZ2FEA2T5hh0JLYxRgK+t9ZVPcDL7OpUQhfsAQf1mbxJfNOSMwqjJAvNhirKwPXeRjoQ FnBPsJkd8vKkaSLWA0/O71SJobJz7K6VrJfdWtFkjEBXzlF/T74DrYBkNByvI87jx4bb 0Tgw== X-Gm-Message-State: AOJu0Yx8d9/dC/YDkXgiFqu+JmXBlRHCnNY0EL+cbOJzoSb3UvW7ON0d ZWveiqD9v2Y/zT7SItnZbZLXZzxhJ4gMqqN3K94= X-Received: by 2002:a25:2905:0:b0:dbc:66c0:574c with SMTP id p5-20020a252905000000b00dbc66c0574cmr5369399ybp.127.1702493061092; Wed, 13 Dec 2023 10:44:21 -0800 (PST) MIME-Version: 1.0 References: <20231104145700.2495176-1-gary@garyguo.net> In-Reply-To: <20231104145700.2495176-1-gary@garyguo.net> From: Miguel Ojeda Date: Wed, 13 Dec 2023 19:44:10 +0100 Message-ID: Subject: Re: [PATCH v2] rust: bindings: rename const binding using sed To: Gary Guo Cc: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Martin Rodriguez Reboredo , Vincenzo Palazzo , Wedson Almeida Filho , Vlastimil Babka , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 pete.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 (pete.vger.email [0.0.0.0]); Wed, 13 Dec 2023 10:44:32 -0800 (PST) On Sat, Nov 4, 2023 at 3:58=E2=80=AFPM Gary Guo wrote: > > This patch changes the way we define constant helpers to > > const RUST_CONST_HELPER_ =3D ; > > and then use `sed` to postprocess Rust code by generated by bindgen to > remove the distinct prefix, so user of the binding crate can refer to > the name directly. > > Reviewed-by: Benno Lossin > Reviewed-by: Andreas Hindborg > Reviewed-by: Martin Rodriguez Reboredo > Signed-off-by: Gary Guo Applied to `rust-next` (reworded for typos and with Benno's `^` suggestion -- we can always relax it back later if needed, the output is currently the same). Thanks everyone! Cheers, Miguel