Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1911986rdh; Sat, 25 Nov 2023 07:04:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IEcF7opL68pA4GkOpUzPf7ZBTlw5zYRF+cew648MYjw/htAAYL4U+Z+Uz8PaX38KszD1jx8 X-Received: by 2002:a05:6a20:4412:b0:18a:d8ba:ca4c with SMTP id ce18-20020a056a20441200b0018ad8baca4cmr7437956pzb.52.1700924688629; Sat, 25 Nov 2023 07:04:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700924688; cv=none; d=google.com; s=arc-20160816; b=q+nsNFtpuaZC3YNFAJZTCYRvyrVgp+V/qsQCf4MJ4LcB9pGK4qc5D6zG5y91CPIJMy CV20ofY0In+BqHbAguTZSE9pliFgDErgvy3EOfo5nO/+mYoGtTywvGNOy22sCyWqfsPQ LCxy5dxllIsOwzdTsAwoBCRQH3Z+NgmPED55bhgBsePp8vqHAZULkM/c1rdVfiT1h3ui SNXrOMd4Kz5EU1qVZk1+L0NGw3FpHr5KaXXD9WxH9OeM2dgmQqN3c41F+WB7isQd1D5u rWu+86P4fUpdzz0h1DWfFpnjZCxLUqJJ0+1Qq8D4GovCE7Kz4e0fJ+GKdtvLjpLof0Zi VG7Q== 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=gof9ChInamH5ECCSkTNXtzzGmXtuXsCMfRl1DTKJMUc=; fh=tVmwkqAQQe3jPL8WZj+1sKT/wG7X2Wx9D2BJF6YcCKQ=; b=D5vPUBLwiEa0XWPxLrkp0/3dWhjtajJf9ZDIxKSRcCctfi4vCTk4csrD86H4soEi+i QFpQnM+ibiqTAfTnr37iByRF+O/g7+kK97VC3LIOggytR4lA7r1SJX7D4ySD/WBe0H9a LBo1/EM+Cb5mgAlWPIZ1+Rw2baBNLxUYeP+4qxt53d7hCTlicYP3gyjhWnZbDRwy/Y2+ ZNweVWc7poVe2eZ3UGVtbbd343ANGaaD4eBFdkzxwQFxcjkUzkPxXtHC5BktsHD14VK0 6GD5Q+7GBXL/MRqpBD61hyGTbKr1D8QjJm/A4hlMA+pO/FK0aEzuSdZeGIf/g/qbwSl7 Wp3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@proton.me header.s=bk4765lcuzg2bdnuqztpj764ku.protonmail header.b=Q0aGNxFz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id 21-20020a631655000000b005be1f24c951si5866142pgw.838.2023.11.25.07.04.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 07:04:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@proton.me header.s=bk4765lcuzg2bdnuqztpj764ku.protonmail header.b=Q0aGNxFz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 9DFE68080E33; Sat, 25 Nov 2023 07:04:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232177AbjKYPCR (ORCPT + 99 others); Sat, 25 Nov 2023 10:02:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231808AbjKYPCQ (ORCPT ); Sat, 25 Nov 2023 10:02:16 -0500 Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42E3AF7 for ; Sat, 25 Nov 2023 07:02:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=bk4765lcuzg2bdnuqztpj764ku.protonmail; t=1700924540; x=1701183740; bh=gof9ChInamH5ECCSkTNXtzzGmXtuXsCMfRl1DTKJMUc=; 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=Q0aGNxFzedO96fXx4SBrwy0BzQxVjSYmwUC/QPgdyzY0U0REORTDn/ZtMrcs0ToY4 Icqr4dUeXLx0wbtGkAtt/1juIOzYvFV6zqaNbXNaXRz4nLy40WzbFBZy8v1ikW4TEA kTVn9n9vnq6encvzpBoAJumtZ0TPLv+MYDeZYxOAL+sG7/9xe/33yyluxM3dQ9mij3 61FYKbmXFadOqvBff/Hl7WvEQiHe2zOBL0hh3yuiatPe3ctB4ps4BaVssF6GaiKIDb ADXumuvo7WwlxJ8hQJOhtLXqh0c/nQM19fSAGRap0FcZxYxUDjkT+MQEzcKzgQ2YYI /FShV5AXEfa3g== Date: Sat, 25 Nov 2023 15:02:00 +0000 To: Greg KH From: Benno Lossin Cc: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?utf-8?Q?Bj=C3=B6rn_Roy_Baron?= , Andreas Hindborg , Alice Ryhl , Martin Rodriguez Reboredo , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] rust: macros: allow generic parameter default values in `#[pin_data]` Message-ID: In-Reply-To: <2023112525-impatient-untwist-ee3d@gregkh> References: <20231125125024.1235933-1-benno.lossin@proton.me> <20231125125024.1235933-2-benno.lossin@proton.me> <2023112525-impatient-untwist-ee3d@gregkh> 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 fry.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 (fry.vger.email [0.0.0.0]); Sat, 25 Nov 2023 07:04:44 -0800 (PST) On 25.11.23 15:26, Greg KH wrote: > On Sat, Nov 25, 2023 at 12:51:09PM +0000, Benno Lossin wrote: >> This patch adds compatibilty for generic parameters defaults by using >> the newly introduced `decl_generics` instead of the `impl_generics`. >=20 > This says _what_ is happening here, but not _why_ this is needed at all. >=20 > Try taking a look a the kernel documentation for how to write a good > changelog text to make this much better. It's often times the most > difficult portion of making a kernel patch, the code is easy, writing a > summary of why everyone else should agree that this code is acceptable > is hard. The reason is hidden in the third patch. Without this, the `#[pin_data] macro would not allow specifying const generic parameter default values and instead emit a compile error. I will add this to v2. --=20 Cheers, Benno