Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1318845rwl; Thu, 10 Aug 2023 09:23:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEwA+jzCN6PjuaT0O7lWA3kraCN8vOVGbd/YVWiYo7v+g3GE1hlw63m6/r3FDAI1fX4ysPt X-Received: by 2002:a05:6a21:4987:b0:131:6fd:8f5a with SMTP id ax7-20020a056a21498700b0013106fd8f5amr2778760pzc.32.1691684592005; Thu, 10 Aug 2023 09:23:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691684591; cv=none; d=google.com; s=arc-20160816; b=sBbSS0Gw+s4L8l96ZpvSZVzC+WjtGgQlOI5hcV4HlsA7ZiDVsEU4ktP45EeQfyzMnZ oRb35cuk0ua5dxGWRtjk16ksIc70URCPjcVjkaiW9IXGVzt7IkxHyKHiTQxP3BVzJXzP aC3QPjIVC6ZDGXG5GNO3C/idy+dHrLn6arqMfs/XSRnFf3J3q+8hEvWEwPu12SX3+Vz8 gHH6MGqz7Uv+h431lEvxgyaKGY3Ola90Ouh9kXkErsMgXIrNRgEn5A21h561NcC9V25l 5UV/nt5NcoRaasm894jjlzXjtfEZWZ0zvILu28drZsHCoy+B5Pchrx8Ib7mW+mM46mS+ Rj2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hNlCArIj2nX2ICW6fePVk82jskkYzrQT8gbT1kX0twk=; fh=rXv4ELvapHJewCM4oWhFNJvN3as3sfj8TnHL5GNgeRc=; b=B12+TRjyswTFW1YMSWoSL2SMwcvc+Ok1i5o9wX3jQgyqCN1TAWOOs9HT1VXoye6gu2 JmoArz9D/Cq9PTDAgLO6zOJ6ZHIGrjIgyLnpojDVXHhhP829D0RZUTTS8oGqsi507xlZ GCc+QbQlUCFFnV6FLkAKhvUAoPFWiGNtN6Rz2u2VCx3PW4HVp8aZYEKxlDRS+WZ1/NVS KkNaqe0t2Fr99ydSwaDslCa02V0A7xctlOxfwV8tH7mHuQ9I5wuT2DJBT1GgR/qqEN5t pSxudjDZDJyiDCRlWZMLXX6B5L2SAZ/MpFodr9BoywYA+TzibyRY106Puar1tA+ZZhri a8kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nzrD3D4a; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k189-20020a6384c6000000b00564f803b109si1752488pgd.509.2023.08.10.09.22.58; Thu, 10 Aug 2023 09:23:11 -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=@linuxfoundation.org header.s=korg header.b=nzrD3D4a; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234713AbjHJPqn (ORCPT + 99 others); Thu, 10 Aug 2023 11:46:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232404AbjHJPqm (ORCPT ); Thu, 10 Aug 2023 11:46:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E90361BF7 for ; Thu, 10 Aug 2023 08:46:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 74DA0642B3 for ; Thu, 10 Aug 2023 15:46:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E856C433C8; Thu, 10 Aug 2023 15:46:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1691682400; bh=/5zTFG72E+P4/DteEC6utdswFNMURiH163A5zO3iNl4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nzrD3D4afX32MxGIvx5B8zJiwNod0zFHSeAB4kPMETgWhSLCamNQkg7h26TVX8sUX qZfFjOxtsYnZCDeVFpvSPkvyYH0mf823wf6qDySRMjvJFTyabMiRjst7HAHfqIsy7F nLF89V8eoRunAIllh5aLIg4ckFkEbS7w7VNpmEZQ= Date: Thu, 10 Aug 2023 17:46:37 +0200 From: Greg KH To: Miguel Ojeda Cc: Gary Guo , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org Subject: Re: [PATCH] rust: macros: add `paste!` proc macro Message-ID: <2023081037-undertone-empathy-2ab6@gregkh> References: <20230628171108.1150742-1-gary@garyguo.net> <20230809230249.01ffc009.gary@garyguo.net> <2023081043-cake-catwalk-1ba8@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, 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 09:56:18AM +0200, Miguel Ojeda wrote: > On Thu, Aug 10, 2023 at 7:08 AM 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). If he, as the copyright owner, wants to take the code and do anything else with it, under any other license, they can. There's nothing preventing them from doing that, a dual license is not needed (as long as you don't take any changes that anyone else made under a different license.) Which is one of the main reasons dual license isn't really needed, if the author wants the code to go somewhere else also, they are free to do so as they own the copyright. So please think carefully about mixing licenses like this, it's almost never needed, and keeping the files with multiple licenses is a major pain to handle over time. good luck! greg k-h