scsi: libsas: Add missing license and update to SPDX license identifier
Subsystems (2)
PATCH 1/1 scsi: libsas: Add missing license and update to SPDX license identifier
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.
While I'm at it, all other libsas source code files are updated to use SPDX license identifier for GPL-2.0+.
drivers/scsi/libsas/Kconfig +1 -16
@@ -4,22 +4,7 @@ # Copyright (C) 2005 Adaptec, Inc. All rights reserved. # Copyright (C) 2005 Luben Tuikov <[email protected]> # -# 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+ # config SCSI_SAS_LIBSAS
drivers/scsi/libsas/Makefile +1 -16
@@ -4,22 +4,7 @@ # Copyright (C) 2005 Adaptec, Inc. All rights reserved. # Copyright (C) 2005 Luben Tuikov <[email protected]> # -# 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+ obj-$(CONFIG_SCSI_SAS_LIBSAS) += libsas.o libsas-y += sas_init.o \
drivers/scsi/libsas/sas_ata.c +1 -14
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Support for SATA devices on Serial Attached SCSI (SAS) controllers *
@@ -5,20 +6,6 @@* * Written by: Darrick J. Wong <[email protected]>, IBM Corporation * -* 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 */ #include <linux/scatterlist.h>
drivers/scsi/libsas/sas_discover.c +1 -16
@@ -1,25 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Serial Attached SCSI (SAS) Discover process * * Copyright (C) 2005 Adaptec, Inc. All rights reserved. * Copyright (C) 2005 Luben Tuikov <[email protected]> * -* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -* */ #include <linux/scatterlist.h>
drivers/scsi/libsas/sas_event.c +1 -16
@@ -1,25 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Serial Attached SCSI (SAS) Event processing * * Copyright (C) 2005 Adaptec, Inc. All rights reserved. * Copyright (C) 2005 Luben Tuikov <[email protected]> * -* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -* */ #include <linux/export.h>
drivers/scsi/libsas/sas_expander.c +1 -16
@@ -1,25 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Serial Attached SCSI (SAS) Expander discovery and configuration * * Copyright (C) 2005 Adaptec, Inc. All rights reserved. * Copyright (C) 2005 Luben Tuikov <[email protected]> * -* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -* */ #include <linux/scatterlist.h>
drivers/scsi/libsas/sas_host_smp.c +1 -3
@@ -1,12 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Serial Attached SCSI (SAS) Expander discovery and configuration * * Copyright (C) 2007 James E.J. Bottomley * <[email protected]> * -* 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 only. */ #include <linux/scatterlist.h> #include <linux/blkdev.h>
drivers/scsi/libsas/sas_init.c +1 -17
@@ -1,26 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Serial Attached SCSI (SAS) Transport Layer initialization * * Copyright (C) 2005 Adaptec, Inc. All rights reserved. * Copyright (C) 2005 Luben Tuikov <[email protected]> * -* 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 -* */ #include <linux/module.h>
drivers/scsi/libsas/sas_internal.h +1 -17
@@ -1,26 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Serial Attached SCSI (SAS) class internal header file * * Copyright (C) 2005 Adaptec, Inc. All rights reserved. * Copyright (C) 2005 Luben Tuikov <[email protected]> * -* 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 -* */ #ifndef _SAS_INTERNAL_H_
drivers/scsi/libsas/sas_phy.c +1 -16
@@ -1,25 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Serial Attached SCSI (SAS) Phy class * * Copyright (C) 2005 Adaptec, Inc. All rights reserved. * Copyright (C) 2005 Luben Tuikov <[email protected]> * -* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -* */ #include "sas_internal.h"
drivers/scsi/libsas/sas_port.c +1 -16
@@ -1,25 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Serial Attached SCSI (SAS) Port class * * Copyright (C) 2005 Adaptec, Inc. All rights reserved. * Copyright (C) 2005 Luben Tuikov <[email protected]> * -* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -* */ #include "sas_internal.h"
drivers/scsi/libsas/sas_scsi_host.c +1 -17
@@ -1,26 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Serial Attached SCSI (SAS) class SCSI Host glue. * * Copyright (C) 2005 Adaptec, Inc. All rights reserved. * Copyright (C) 2005 Luben Tuikov <[email protected]> * -* 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 -* */ #include <linux/kthread.h>
drivers/scsi/libsas/sas_task.c +1 -0
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ #include "sas_internal.h"
include/scsi/libsas.h +1 -17
@@ -1,26 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * SAS host prototypes and structures header file * * Copyright (C) 2005 Adaptec, Inc. All rights reserved. * Copyright (C) 2005 Luben Tuikov <[email protected]> * -* 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 -* */ #ifndef _LIBSAS_H_
include/scsi/sas.h +1 -17
@@ -1,26 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * SAS structures and definitions header file * * Copyright (C) 2005 Adaptec, Inc. All rights reserved. * Copyright (C) 2005 Luben Tuikov <[email protected]> * -* 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 -* */ #ifndef _SAS_H_
include/scsi/sas_ata.h +1 -15
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Support for SATA devices on Serial Attached SCSI (SAS) controllers *
@@ -5,21 +6,6 @@* * Written by: Darrick J. Wong <[email protected]>, IBM Corporation * -* 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 -* */ #ifndef _SAS_ATA_H_
Signature · 1 line
1.9.1
Quoted 6 lines · John Garry
Currently
sas_task.chas 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+.
Quoted 21 lines
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 <[email protected]>drivers/scsi/libsas/Kconfig +0
-7@@ -4,22 +4,7 @@ # Copyright (C) 2005 Adaptec, Inc. All rights reserved. # Copyright (C) 2005 Luben Tuikov <[email protected]> # -# 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. -#
drivers/scsi/libsas/Kconfig line 7
Quoted 10 lines
drivers/scsi/libsas/Kconfig +1
-9-# 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.
Also, the spdx line goes at the first line of the file.
Quoted 18 lines
drivers/scsi/libsas/Kconfig +0
-0# config SCSI_SAS_LIBSASdrivers/scsi/libsas/Makefile +0
-7@@ -4,22 +4,7 @@ # Copyright (C) 2005 Adaptec, Inc. All rights reserved. # Copyright (C) 2005 Luben Tuikov <[email protected]> # -# 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. -#
drivers/scsi/libsas/Makefile line 7
Quoted 10 lines
drivers/scsi/libsas/Makefile +1
-9-# 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 :(
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.
greg k-h
On 27/11/2018 14:43, Greg KH wrote:
Hi Greg,
Quoted 9 lines · John Garry
Quoted 6 lines
Currently
sas_task.chas 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.
Quoted 27 lines
Quoted 27 lines
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 <[email protected]>drivers/scsi/libsas/Kconfig +0
-12@@ -4,22 +4,7 @@ # Copyright (C) 2005 Adaptec, Inc. All rights reserved. # Copyright (C) 2005 Luben Tuikov <[email protected]> # -# 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. -#
Quoted 8 lines
drivers/scsi/libsas/Kconfig line 7
Quoted 5 lines
drivers/scsi/libsas/Kconfig +1
-4-# 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.
Quoted 2 lines
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.
Quoted 24 lines
Quoted 24 lines
drivers/scsi/libsas/Kconfig +0
-0# config SCSI_SAS_LIBSASdrivers/scsi/libsas/Makefile +0
-11@@ -4,22 +4,7 @@ # Copyright (C) 2005 Adaptec, Inc. All rights reserved. # Copyright (C) 2005 Luben Tuikov <[email protected]> # -# 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.
Quoted 8 lines
drivers/scsi/libsas/Makefile line 7
Quoted 6 lines
drivers/scsi/libsas/Makefile +1
-5-# -# 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.
Quoted 3 lines
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.
Quoted 3 lines
greg k-h
Thanks, I'll fix them properly,
John
Quoted 8 lines · John Garry
On 27/11/2018 14:43, Greg KH wrote:
Hi Greg,
Quoted 4 lines · John Garry
Quoted 3 lines
Currently
sas_task.chas no license specifier, so add SPDX license identifier for GPL-2.0+.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
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.cshould 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 <[email protected]> *
* 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 <[email protected]>"); 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.
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
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
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 .
Thanks,
John
Quoted 98 lines
Quoted 28 lines
Quoted 28 lines
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 <[email protected]>drivers/scsi/libsas/Kconfig +0
-12@@ -4,22 +4,7 @@ # Copyright (C) 2005 Adaptec, Inc. All rights reserved. # Copyright (C) 2005 Luben Tuikov <[email protected]> # -# 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. -#Quoted 8 lines
drivers/scsi/libsas/Kconfig line 7
Quoted 5 lines
drivers/scsi/libsas/Kconfig +1
-4-# 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.
Quoted 2 lines
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.
Quoted 24 lines
Quoted 24 lines
drivers/scsi/libsas/Kconfig +0
-0# config SCSI_SAS_LIBSASdrivers/scsi/libsas/Makefile +0
-11@@ -4,22 +4,7 @@ # Copyright (C) 2005 Adaptec, Inc. All rights reserved. # Copyright (C) 2005 Luben Tuikov <[email protected]> # -# 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.Quoted 8 lines
drivers/scsi/libsas/Makefile line 7
Quoted 6 lines
drivers/scsi/libsas/Makefile +1
-5-# -# 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.
Quoted 3 lines
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.
Quoted 3 lines
greg k-h
Thanks, I'll fix them properly,
John.
Quoted 49 lines · John Garry
Quoted 8 lines · John Garry
On 27/11/2018 14:43, Greg KH wrote:
Hi Greg,
Quoted 4 lines · John Garry
Quoted 3 lines
Currently
sas_task.chas no license specifier, so add SPDX license identifier for GPL-2.0+.Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
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.cshould 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 <[email protected]> *
* 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
*
*/...
Quoted 8 lines
MODULE_AUTHOR("Luben Tuikov <[email protected]>");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.cv2 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.
Quoted 3 lines
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.
Quoted 2 lines
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.
Quoted 2 lines
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
Quoted 61 lines · Greg KH
Quoted 49 lines · John Garry
Quoted 8 lines · John Garry
On 27/11/2018 14:43, Greg KH wrote:
Hi Greg,
Quoted 4 lines · John Garry
Quoted 3 lines
Currently
sas_task.chas no license specifier, so add SPDX license identifier for GPL-2.0+.Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
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.cshould 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 <[email protected]> *
* 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
*
*/...
Quoted 8 lines
MODULE_AUTHOR("Luben Tuikov <[email protected]>");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.cv2 would mean mixing v2 and v2+ into the module.This is not the only file in the kernel with this problem.
Quoted 8 lines
For now, we have been trusting the "written text" lines over the
MODULE_LICENSE()lines, as that seems to be the proper way forward.Quoted 3 lines
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=15c566fcff9cc7b8fd64461d6ee6fd1bc665b444Yup, not good, that should be fixed.
I take it back, the changelog for the patch explains what is happening here, the people involved were paying attention.
greg k-h
Quoted 16 lines · Greg KH
Quoted 16 lines
Quoted 16 lines
...
Quoted 9 lines
Quoted 9 lines
MODULE_AUTHOR("Luben Tuikov <[email protected]>");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.cv2 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.
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
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=15c566fcff9cc7b8fd64461d6ee6fd1bc665b444Yup, not good, that should be fixed.
I take it back, the changelog for the patch explains what is happening here, the people involved were paying attention.
OK, but these sample patches were just some I selected at random. May be many more (incorrect)...
Cheers,
John
Quoted 4 lines
greg k-h
.
On Thu, 2018-11-29 at 11:52 +0000, John Garry wrote:
[...]
Quoted 35 lines
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 <[email protected]> *
* 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
*
*/...
Quoted 8 lines
MODULE_AUTHOR("Luben Tuikov <[email protected]>");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.cv2 would mean mixing v2 and v2+ into the module.
The point here is to get help. There are three pieces of evidence in the file one for v2+ and two for v2. So you can look in the git tree to when it was actually contributed:
commit 2908d778ab3e244900c310974e1fc1c69066e450
Author: James Bottomley <[email protected]> Date: Tue Aug 29 09:22:51 2006 -0500
[SCSI] aic94xx: new driver
and if you ask the original contributor he can tell you the original intent was v2 only. If you want to modify all the files in libsas and aic9xxx to have that SPDX tag.
Quoted 2 lines
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.
Again, the tree will tell you. In this case it's
commit 366ca51f30de1cbb5b356c70b7bb22051c558e41
Author: James Bottomley <[email protected]> Date: Fri Jan 18 10:47:01 2008 -0600
[SCSI] libsas: abstract STP task status into a function
So that file is a direct extraction from an existing v2 only file in aic9xxx, so it's licence is also v2 only.
James
Quoted 51 lines · James Bottomley
On Thu, 2018-11-29 at 11:52 +0000, John Garry wrote:
[...]Quoted 35 lines
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 <[email protected]> *
* 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
*
*/...
Quoted 8 lines
MODULE_AUTHOR("Luben Tuikov <[email protected]>");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.cv2 would mean mixing v2 and v2+ into the module.The point here is to get help. There are three pieces of evidence in the file one for v2+ and two for v2. So you can look in the git tree to when it was actually contributed:
commit
2908d778ab3e244900c310974e1fc1c69066e450
Quoted 8 lines
Author: James Bottomley <[email protected]> Date: Tue Aug 29 09:22:51 2006 -0500[SCSI] aic94xx: new driver
and if you ask the original contributor he can tell you the original intent was v2 only.If you want to modify all the files in libsas and aic9xxx to have that SPDX tag.
Right, so that would involve modifying the licenses of the currently v2+ libsas files. aic9xx source files are v2 already.
Quoted 6 lines
Quoted 3 lines
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.Again, the tree will tell you. In this case it's
Quoted 8 lines
commit
366ca51f30de1cbb5b356c70b7bb22051c558e41Author: James Bottomley <[email protected]> Date: Fri Jan 18 10:47:01 2008 -0600[SCSI] libsas: abstract STP task status into a function
So that file is a direct extraction from an existing v2 only file in aic9xxx, so it's licence is also v2 only.
ok
Thanks,
John
Quoted 6 lines
James
.