Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp806261rwl; Thu, 10 Aug 2023 01:42:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFByYBznOC7tYKtBnkw9JhsVs++aInX4wACBJjL/oRbGaucTBCvTJdwCH8d++fx7ZzAAU1u X-Received: by 2002:a05:6512:ad4:b0:4fe:494b:3769 with SMTP id n20-20020a0565120ad400b004fe494b3769mr1363008lfu.33.1691656964084; Thu, 10 Aug 2023 01:42:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691656964; cv=none; d=google.com; s=arc-20160816; b=dobIv7xpNBnxwu0H2EuuOYK8E+gci1xc19EmPSPRSVzikbCYofHymekjVKLWW3PjKS 8qxZigVQsjpNzU391k5R3ilTXKQgW+K0bIFHojBveRBf+CAU2963CZ/+OPJ6bQ45iQNq F3SU1xIWM67XjbGE4M6XDtEaED0I5lCEI2OsBEKB+A5L1xzMXXbPMSjmHYve4oTRFknR x5IHE/qf0DKO4h/smnbFPFTDuBuItV6SjgJ4jjcCZlV/2pdV9OW0WddDE/YYzqU+Ngcz a58HMhFSDL/vmzMDpsxD8/GUdZlmcvrcKz4TWqSNRcsEWz9BtFx+ZH6DWZhqxtKJpZ1o 4upg== 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=FxgcLGl1+zaKb7gMeVcoWhNfpw99e6OYlBFpuHyvHvw=; fh=vrNrGE5Lk+NFpphWM2bJbJqgo3FL6cTbY2y86YKlMR8=; b=GEcM+cPuHJzqsXeiDwzcj2jyrZ2ebAts36LTJhvPHsC0KelIn+kGdYqcLpu8+TN93W STiS8Ke27l7xBmpsJFAU2zpLRFYXFGqX7K3nvAU0d182kGp6H7/t9/yT+h7amrjJxpf3 2JiYmZwEn4As0Bs8yaUKSy75jnSPA+7oYpozt0Xz0ULWuYiszubf/5L66YqukjUCmc/b C3nNxlrCeToycymiYn2BAQEMkIqrDzrlxvMxkxLTW+N+NhwrWK43MORamqc9ZV4zQuBF rofurvmymbnhSXK2oSL5+BBmcgD/a3e0/fSdqzglH5N+CRKJrw/GqLRPZrTxyNUv/s59 3AJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=kH81k+GC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r23-20020aa7d157000000b0052336331f58si1010620edo.518.2023.08.10.01.42.19; Thu, 10 Aug 2023 01:42:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=kH81k+GC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233527AbjHJH4d (ORCPT + 99 others); Thu, 10 Aug 2023 03:56:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231825AbjHJH4c (ORCPT ); Thu, 10 Aug 2023 03:56:32 -0400 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 361DF1702; Thu, 10 Aug 2023 00:56:30 -0700 (PDT) Received: by mail-yb1-xb35.google.com with SMTP id 3f1490d57ef6-d44c2ca78ceso2553070276.0; Thu, 10 Aug 2023 00:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691654189; x=1692258989; 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=FxgcLGl1+zaKb7gMeVcoWhNfpw99e6OYlBFpuHyvHvw=; b=kH81k+GCakwbjhGtyMkWLMXDOz+YGETmOwVEDCxE382QgnxcGj0TA9VtGzsg2R26Nq 2y4xLqTIBnfB1e943kKmpEYv72MkVhDB4aCCdSyuuA214u8CZBZZSCqGqpUtT3EaXQGe f3bgb8Arrb9GG1hNx+5QLyakpGjMJ+mkRk/T39lZ4/LWrxBFu3k6BHE/aagAo8mDNrCy 6l8iHPBvXVKJ6RV7ntrRKBb6xtEFglALy5WnsbNboii7bFaPwU5sOXOlyCYqtg7pGmiT C4Nsh+6zutQhDDs6V6IPDSoXsuGfKbPkxewLOVhakn9XZPIISWc+XVPXigXAfDbyP5hg lw2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691654189; x=1692258989; 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=FxgcLGl1+zaKb7gMeVcoWhNfpw99e6OYlBFpuHyvHvw=; b=g5E6dB43A9Nb3Eh+MCZa/rWs1nTzVEtx9m4juMzS+ePcgXa7HF94vZSPKHW2pxP9kq x7cyPxqZAn7dpAauol+tX5n1Yyejh64taMlTY4RZ5WplYCzU5dQ1ikylgl2ZNZINF4HZ jAyn6owyhJYOZfhadrPUl7QIoUBanrUoqv/V6fZh4VoU/r3ynEbhf89qOEGFOktCAw0X FyrmaU6dSjOwMtwPmvi8n/xVPQO+7duy2+e+xpR9sd4gf06/pu/KoxcAL41ICN8TyGNL EC2V6AHqD8cuiInmQQsBhhTEdh61NS7armcPoGwB8YBXsS56I80KkRVUEkuggjCUFLlQ KqWQ== X-Gm-Message-State: AOJu0YzuxcUAd1Iocog4k7gAzJEXq2SN9R3K2cmL0BP+VBbaAMkf1GdH ptND3A94WW3FZHfWp//zFSj5r63TWMXRXfxR6Go= X-Received: by 2002:a25:257:0:b0:d48:7988:15e0 with SMTP id 84-20020a250257000000b00d48798815e0mr1496362ybc.6.1691654189388; Thu, 10 Aug 2023 00:56:29 -0700 (PDT) MIME-Version: 1.0 References: <20230628171108.1150742-1-gary@garyguo.net> <20230809230249.01ffc009.gary@garyguo.net> <2023081043-cake-catwalk-1ba8@gregkh> In-Reply-To: <2023081043-cake-catwalk-1ba8@gregkh> From: Miguel Ojeda Date: Thu, 10 Aug 2023 09:56:18 +0200 Message-ID: Subject: Re: [PATCH] rust: macros: add `paste!` proc macro To: Greg KH Cc: Gary Guo , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 10, 2023 at 7:08=E2=80=AFAM Greg KH wrote: > > The kernel will migrate when we have converted all files in the tree to > SPDX and can worry about things like the SPDX version level. We have a > ways to go still... I see, thanks! > Be VERY careful with dual licenses please, and especially non-GPL ones > in the kernel tree. It gets tricky very very quickly and you need to > know what you are doing. So much so that I really want to see a lawyer > sign off on such a thing so that everyone involved understands the > issues that this requires. It is the common one used in Rust projects, which we are using for other bits too, e.g. vendoring the `alloc` standard library. Since these couple functions are essentially a compiler plugin (a proc macro) that is useful in userspace and other contexts too, Gary wanted to use that license (he contributes the other kernel code under GPL-2.0). For instance, he may possibly want to put those functions in crates.io or similar, I imagine (like the linked crate this replaces as a simplification). He is also OK with GPL-2.0, so we can just do that here, of course. But I am mentioning the above because, if this one is problematic, then perhaps we should revisit again `rust/alloc`, our `std_vendor.rs` files and the `pinned-init` library (which all use the same dual license). > Otherwise please, just default to GPL-2.0 for kernel code, unless you > have real reasons why it can't be that way, as remember, the overall > license of the codebase is that. That is our default, definitely. I OK'd these two functions for the reasons above only. Thanks for keeping an eye on our list, by the way. Cheers, Miguel