Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2442473pxv; Sat, 3 Jul 2021 08:53:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyoH0K5/GT0JDdYOdH29xiskTFB6HbmBmSNZiBI5w3NCJXn32uTqzvFu2M5yO21EWfD+6E X-Received: by 2002:aa7:dbc8:: with SMTP id v8mr5835060edt.242.1625327611741; Sat, 03 Jul 2021 08:53:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625327611; cv=none; d=google.com; s=arc-20160816; b=NSFk1enriFlJPHFBNF/1Sc2aBPQFgLU7hufSFtwM7HvaQErRezjOrNJ6tIzPWbpa2D AxBDKjHBGeRBBxhDdhwF/VogYilz5v79FH4D3QcxpVUXWxS6YpshxxOTyuBbgiI23RJu q/KaWYSZpIuS0nTAM9ELoSydpO/kMMWQ1JIGzTwybOzU2I5bLgVA0cmCPp/hoSsREVK6 QOZ7vQyPKbrPePZnaAKg8Czioqh3Z3GhSSVJ3iCEFkkp83dAfyl4UdCwgG99zcg1dVAj 608NCbBCoxXkO6CkTTgcTWq8xFFN1UCwb9gtZnc3Nh44PDSdGLtE+rWzDHQxApBDg6Lf TOKw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=oo68TW9DgSUVOHXfjGhn1pVruxN7Vi+rmUDrhhmjqGk=; b=CwbZlDbrnIZUoGxLFMuKnH5KI2GA+bH/VLAc2U6VAEUeIbj7rgLUwYUGomr64Qelsp FBPxfxBLhguNQ9rmilB3NChkqXKaAlWpqYX2mLpJh6M/08O9gR5UDV89PnZgWJqqEYck JvHD491OXOUuchGDkIDl+CHNbO5gTj2rfiK6+KdpKnrHhpGOphK3uq5GdQfX4q7ZBSOg /MR0lrxg4/xZmkIaAoTYmrGG51fSiMZBLgxeUQw+sr8CCpMeZCRn6DxQHnS06nEz3CT4 OQvFoii878eYfdjdHlnHVLJmIDuppWUepISXQw57IKjp3fPF38ND/tmufIhFeJaBYZar Br2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq19si6963547ejc.92.2021.07.03.08.53.08; Sat, 03 Jul 2021 08:53:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230003AbhGCPyn (ORCPT + 99 others); Sat, 3 Jul 2021 11:54:43 -0400 Received: from mail-pf1-f181.google.com ([209.85.210.181]:46823 "EHLO mail-pf1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229881AbhGCPym (ORCPT ); Sat, 3 Jul 2021 11:54:42 -0400 Received: by mail-pf1-f181.google.com with SMTP id x16so11990242pfa.13; Sat, 03 Jul 2021 08:52:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=oo68TW9DgSUVOHXfjGhn1pVruxN7Vi+rmUDrhhmjqGk=; b=EH8V3/YM0SnJpG0fLy5DmjYGhNALu42bFAcPrPvKDA3Db0zke1FFC7HjRo9WFUBL9y pIBHJ0GGw8Vqtnmr0FrIqrCNjOVELXNeC1kEqnkY6yoHtohKAerIP9UN7zshO/sAPjGk nrkNYLVtkfZCZ2uCUXZxFwWf2ptTPfxfhHjCYA3QYfn0Z2/ECyZOlEeBWOO308TJEngg VK1iQb/q/YPYQp+nIKUZMFjoV2WS4sKHspKiyAzc9PQNY7nVO8my9pKIvC5QbijSwMvA EdPPpxGV/VV+GvC1ZF9timCzMGRlnBBr8BIGSkl0u+CioEWBz0Y5aqihuA3i3nxEZApe z4tw== X-Gm-Message-State: AOAM531yILSUYM4RvYfNP1+Du5ruAlqZPGUwgBq/gfApSetCpBrivFoi CTal8ZkdSBGkjK8GxcJWHrY= X-Received: by 2002:a63:af53:: with SMTP id s19mr4398378pgo.147.1625327528575; Sat, 03 Jul 2021 08:52:08 -0700 (PDT) Received: from garbanzo ([191.96.121.144]) by smtp.gmail.com with ESMTPSA id p24sm7520656pfh.17.2021.07.03.08.52.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Jul 2021 08:52:07 -0700 (PDT) Date: Sat, 3 Jul 2021 08:52:03 -0700 From: Luis Chamberlain To: Greg KH Cc: tj@kernel.org, shuah@kernel.org, akpm@linux-foundation.org, Richard Fontana , rafael@kernel.org, davem@davemloft.net, kuba@kernel.org, ast@kernel.org, andriin@fb.com, daniel@iogearbox.net, atenart@kernel.org, alobakin@pm.me, weiwan@google.com, ap420073@gmail.com, jeyu@kernel.org, ngupta@vflare.org, sergey.senozhatsky.work@gmail.com, minchan@kernel.org, axboe@kernel.dk, mbenes@suse.com, jpoimboe@redhat.com, tglx@linutronix.de, keescook@chromium.org, jikos@kernel.org, rostedt@goodmis.org, peterz@infradead.org, linux-block@vger.kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] selftests: add tests_sysfs module Message-ID: <20210703155203.uvxcolrddswecco6@garbanzo> References: <20210702050543.2693141-1-mcgrof@kernel.org> <20210702050543.2693141-2-mcgrof@kernel.org> <20210702190230.r46bck4vib7u3qo6@garbanzo> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 03, 2021 at 06:46:46AM +0200, Greg KH wrote: > On Fri, Jul 02, 2021 at 12:02:30PM -0700, Luis Chamberlain wrote: > > On Fri, Jul 02, 2021 at 07:21:12AM +0200, Greg KH wrote: > > > On Thu, Jul 01, 2021 at 10:05:40PM -0700, Luis Chamberlain wrote: > > > > @@ -0,0 +1,953 @@ > > > > +// SPDX-License-Identifier: GPL-2.0-or-later > > > > +/* > > > > + * sysfs test driver > > > > + * > > > > + * Copyright (C) 2021 Luis Chamberlain > > > > + * > > > > + * This program is free software; you can redistribute it and/or modify it > > > > + * under the terms of the GNU General Public License as published by the Free > > > > + * Software Foundation; either version 2 of the License, or at your option any > > > > + * later version; or, when distributed separately from the Linux kernel or > > > > + * when incorporated into other software packages, subject to the following > > > > + * license: > > > > > > This boilerplate should not be here, only the spdx line is needed. > > > > As per Documentation/process/license-rules.rst we use the SPDX license > > tag for the license that applies but it also states about dual > > licensing: > > > > "Aside from that, individual files can be provided under a dual license, > > e.g. one of the compatible GPL variants and alternatively under a > > permissive license like BSD, MIT etc." > > > > Let me know if things should change somehow here to clarify this better. > > The spdx line is not matching the actual license for the file, which is > wrong. We don't have spdx license tag yet for copyleft-next, and although when using dual gplv2 or copyleft-next gplv2 applies I did fail to see can use spdx for dual licensing such as: # SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause > And "copyright-left" is not a valid license according to our list of > valid licenses in the LICENSES directory, so please do not add it to > kernel code when it is obviously not needed. You mean copyleft-next. Yes I'd have to add that. Given that we already have two test drivers with that license I'll go ahead and add that. > And given that this is directly interacting with sysfs, which is > GPLv2-only, trying to claim a different license on the code that tests > it is going to be a total mess for any lawyer who wants to look into > this. Just keep it simple please. The faul injection code I added follows the exact license for sysfs. The only interaction with the test_sysfs and sysfs is an exported symbol for a completion structure. The other dual gpl OR copyleft-next test drivers already present in the kernel also use exported symbols too, so I see nothing new here. Luis