Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp225467imu; Tue, 27 Nov 2018 11:25:32 -0800 (PST) X-Google-Smtp-Source: AJdET5efg8DQTReTqrotl+sobTWjsawjTbuWQq+5FicPqxot+oaNJpb4I4BjpdviAKfKGfBcsZoP X-Received: by 2002:aa7:8758:: with SMTP id g24mr33575823pfo.250.1543346732246; Tue, 27 Nov 2018 11:25:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543346732; cv=none; d=google.com; s=arc-20160816; b=C/takYocwtzAP91wL6guxCU/1/vplmdcs1wVC1wLj8j8mAQJ76Ih4go9gbrkbnYa1V hGqn3QsLhem6Ri9bvdNk48Qlw3NWEZU8oNdyRREQyNSqwvyWTNKlfHgDFLqLYx+w4T8y H9ugVBSmGs+X0p1DwuYM/UZfTKtp6KPJL9bLBz/vwCY95iQIFSXxaTZvicijrzTg/cuW 78hOfrIxPbQHovoqF3sXk0ipk2TqRjSQi74ZudjDcBcy1tuD2+SkLGzaKfwhg8ywMISW 8PBNT6ViaEcKhLzlnfLxDHzlRztDm/9zFuNJOwf8ulKR7qsNat6KN/0eVZOaeJco6/h6 xl8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=9zar4tvF2kAvfteicVKGYLxW6O70WrJfxyfGs1vemx4=; b=XM3mXRjO4FutCuf17pXtqWbrqCnt6R7XjGsw380nIBYyrWmqlICgy7F7OLMOkHsp5l KJQP/cPim0n2K3StgZQdxZ2NSQBnoc1s1dg1v8ncupDzQqQCrgvue56PNpAm/cBo82aQ y1g8NkzH0sYUHP4Dh8gqqFaLMjFyTxJGfcAk3VUt4QeRBW5HH40lgrDQum7WI5t/TFLP lt7OG+f3/OgLkzbHQoYgkGTIyrva/FUcthZupnyyba3MbCyAoLtJu9c3oxCN0GBsP3gY UC4jUZ/FdaGY2kiZ+YJuTgik29PuOjyd9yJPVurv5VpK9P7Xod93ey+K2czy45x9voBg EQig== ARC-Authentication-Results: i=1; mx.google.com; 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 f5si4823409plf.352.2018.11.27.11.25.17; Tue, 27 Nov 2018 11:25:32 -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; 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 S1729546AbeK1CV7 (ORCPT + 99 others); Tue, 27 Nov 2018 21:21:59 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:15608 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726381AbeK1CV7 (ORCPT ); Tue, 27 Nov 2018 21:21:59 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 55D7B9A55D8E2; Tue, 27 Nov 2018 23:23:38 +0800 (CST) Received: from [127.0.0.1] (10.202.226.41) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.408.0; Tue, 27 Nov 2018 23:23:28 +0800 Subject: Re: [PATCH] scsi: libsas: Add missing license and update to SPDX license identifier To: Greg KH References: <1543328132-243266-1-git-send-email-john.garry@huawei.com> <20181127144333.GA11004@kroah.com> CC: , , , , From: John Garry Message-ID: <8ae3a984-b4d4-f2eb-4aaa-b460441fa403@huawei.com> Date: Tue, 27 Nov 2018 15:23:24 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20181127144333.GA11004@kroah.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.41] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > >> >> While I'm at it, all other libsas source code files are updated to use >> SPDX license identifier for GPL-2.0+. >> >> Signed-off-by: John Garry >> >> diff --git a/drivers/scsi/libsas/Kconfig b/drivers/scsi/libsas/Kconfig >> index 13739bfa..bdc6bce 100644 >> --- a/drivers/scsi/libsas/Kconfig >> +++ b/drivers/scsi/libsas/Kconfig >> @@ -4,22 +4,7 @@ >> # 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; version 2 of the >> -# License. >> -# >> -# 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 >> +# SPDX-License-Identifier: GPL-2.0+ > > No, the above license is GPLv2 only, do NOT change the license of a file > unless you have permission to do so. Of course. That was not my intention. My mistake. > > Also, the spdx line goes at the first line of the file. JFYI, checkpatch.pl does pick up on this for .c/.h files but not this one. > > >> # >> >> config SCSI_SAS_LIBSAS >> diff --git a/drivers/scsi/libsas/Makefile b/drivers/scsi/libsas/Makefile >> index 5d51520..75998b7 100644 >> --- a/drivers/scsi/libsas/Makefile >> +++ b/drivers/scsi/libsas/Makefile >> @@ -4,22 +4,7 @@ >> # 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; version 2 of the >> -# License. >> -# >> -# 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 >> +# SPDX-License-Identifier: GPL-2.0+ > > Again you changed the license, not good :( I was thrown by having a different license for the Kconfig+Makefile vs .c/.h. > > Please do not make these types of changes unless you really know what > you are doing, it is not ok to change the license of files. Right, of course. > > greg k-h > Thanks, I'll fix them properly, John