Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2383166imu; Thu, 29 Nov 2018 04:13:52 -0800 (PST) X-Google-Smtp-Source: AFSGD/UpLoFm4Dm36I/3Mo7JIDsXbiEh/OFDF7fPmNupQV58MPHJq9QgWTQBR8rgyiNZ4gx8vQVD X-Received: by 2002:a63:c503:: with SMTP id f3mr979830pgd.431.1543493632116; Thu, 29 Nov 2018 04:13:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543493632; cv=none; d=google.com; s=arc-20160816; b=ifinZckj47IrTkX/DUQY0vIq+0iouZRxlCwen8/i2lXgDVpyTv2KJSVZbfPSV96Uum 2IiHVrwYV5Exid++7263tPv3NA+mfpwUhUJOvFWBLfxSV4seLlfPM1qSZDnjZozzuc2u WFvN/naTWLGcHn58vaPbY5NqXRIl75EJTrhEAtu1FpT37v0GA2O3aGHkmkI2w6i/X5er KujxUUYaPaZhA+RBbmx9OaEkYY8N1rLggjJFQ/2k6foGYprl2QivZ4cwsSndc/ZotH0z /v7FlAetsE8XEmIsCSFjlj72zOY1xqeBfqqjb08XXd+bURv7L5o0y+DedXyiO4Zn5I8A rhLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3VVvHvpnTsYdxCs6mQbd2tWEP5UfHYYADAU9bGZZE5o=; b=nqO6fs+lqsYaJHqJZqDiSWpT/QoqNYsT607Lcojsm72iMTnNPu9wDhqZSPD9HtatfQ u0TebB6Ad3mZq+WHA0w6Qv0WMD8dIuaI59ox0SHCl2hIfpVhaQHIcefMhcRfPHUlFiV0 0zixfgs1PswYXYB9PqQ5i23jUDKb1sNV8MuMo7t7OhKN4ysAoUwO0e0i+B6zwwOGpcU5 /7QtRyoPpTzrwQn8TkgTIwk8uVJuxAYYXm5MNVU5WHVUuykDIamGG6uAkTAn+87Px/gq fUm8mN5rbTTw/fFwcnsc9pMrSaOeRNz/1e5DRKhfxQ5gD48KceKEQ1hO2Rap+wwwyN8T 6FUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PkoIHLgv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9si1967393pgf.54.2018.11.29.04.13.35; Thu, 29 Nov 2018 04:13:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PkoIHLgv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728151AbeK2XQW (ORCPT + 99 others); Thu, 29 Nov 2018 18:16:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:40210 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727312AbeK2XQW (ORCPT ); Thu, 29 Nov 2018 18:16:22 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 68101206B6; Thu, 29 Nov 2018 12:11:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543493472; bh=ZJ/i0uy6CenIPOzxSHNEO/qn/PnsupFE4VMF/gaMEwQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PkoIHLgvqNh/ESIQo5CBWEDCevaIziUwkqJvBS4O4oLGMrcvhNtGmWdFWe5+NoU/+ 32GUI6697dCscJrFwduu3Qx3PmYNnY7PRLvLNkb1WiAI7t4i/o/QzEUHA3drFAv6s7 262ndxpDV3j/pg94PenRZbqBntv6HbEwp9tCQXHQ= Date: Thu, 29 Nov 2018 13:11:10 +0100 From: Greg KH To: John Garry Cc: jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linuxarm@huawei.com, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Subject: Re: [PATCH] scsi: libsas: Add missing license and update to SPDX license identifier Message-ID: <20181129121110.GA25319@kroah.com> References: <1543328132-243266-1-git-send-email-john.garry@huawei.com> <20181127144333.GA11004@kroah.com> <8ae3a984-b4d4-f2eb-4aaa-b460441fa403@huawei.com> <07b65f80-9b73-472f-1fb8-7c0133f1d1ab@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <07b65f80-9b73-472f-1fb8-7c0133f1d1ab@huawei.com> User-Agent: Mutt/1.11.0 (2018-11-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 29, 2018 at 11:52:39AM +0000, John Garry wrote: > On 27/11/2018 15:23, John Garry wrote: > > On 27/11/2018 14:43, Greg KH wrote: > > > > Hi Greg, > > > > > On Tue, Nov 27, 2018 at 10:15:32PM +0800, John Garry wrote: > > > > Currently sas_task.c has no license specifier, so add SPDX license > > > > identifier for GPL-2.0+. > > > > > > > > As mentioned in commit b24413180f56 ("License cleanup: add SPDX GPL-2.0 > > > > license identifier to files with no license"), files with no license in > > > > the kernel are under default kernel license. > > > > > > The default is GPLv2, not v2+. > > > > So sas_task.c should be v2. > > Hi Greg, > > I also note that currently we have an inconsistency in license of > sas_init.c: > > /* > * Serial Attached SCSI (SAS) Transport Layer initialization > * > * Copyright (C) 2005 Adaptec, Inc. All rights reserved. > * Copyright (C) 2005 Luben Tuikov > * > * This file is licensed under GPLv2. > * > * 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. > * > * This program is distributed in the hope that it will be useful, but > * WITHOUT ANY WARRANTY; without even the implied warranty of > * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > * General Public License for more details. > * > * You should have received a copy of the GNU General Public License > * along with this program; if not, write to the Free Software > * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 > * USA > * > */ > > ... > > MODULE_AUTHOR("Luben Tuikov "); > MODULE_DESCRIPTION("SAS Transport Layer"); > MODULE_LICENSE("GPL v2"); > > So the license specifies v2+ but module license states v2. > > I could not find a docment for guidance on this. I also note that making > sas_task.c v2 would mean mixing v2 and v2+ into the module. This is not the only file in the kernel with this problem. For now, we have been trusting the "written text" lines over the MODULE_LICENSE() lines, as that seems to be the proper way forward. > I did find an example of someone changing the license: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/i2c/busses/i2c-designware-slave.c?h=v4.20-rc4&id=15c566fcff9cc7b8fd64461d6ee6fd1bc665b444 > Yup, not good, that should be fixed. > Then someone changes the module license (but same company): > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/sound/soc/sh/rcar/core.c?h=v4.20-rc4&id=1e0edd4deadbbacd3b35179c233efa26624ab2af That should be fine, the text says the correct one. > At this point I'm reluctant to touch this in case I mess up, but there is > still the missing license in sas_task.c . Don't touch things like this unless you know _EXACTLY_ what you are doing... good luck! greg k-h