Skip to contentSkip to conversation

SPDX: First batch of patches

PATCH In review Thomas Gleixner 4 participants 25 messages May 7, 2019 – May 9, 2019

Subsystems (27)
lore
Share & tools
lore
#0 lore raw

cover SPDX: First batch of patches

Hi!

As promised here are the first 4 automatically generated patches. Each patch handles exactly one match pattern (rule).

While reviewing the patch (actual code change) might be massively time consuming, the quick and important part is to look at the patterns and verify whether the license conclusion is correct. The tooling which replaces exactly those patterns is pretty solid by now. But if you really insists on looking at each individual file change, you're welcome. :)

Note that some of the patterns contain obscure things like:

     [no]_[pad]_[ctrl]

in the middle. This one is a clear copy and paste artifact which happens to be in arch/arm/mach-imx/iomux-mx35.h:

* of the License, or (at your option, NO_PAD_CTRL) any later version.

Oh well.....

Thanks,

tglx

#1 lore raw

PATCH 1/4 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 1

Based on 3 normalized pattern(s):

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 street fifth floor boston ma 02110-1301 usa

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 [no]_[pad]_[ctrl]) 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 street fifth floor boston ma 02110-1301 usa

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 street - fifth floor boston ma 02110-1301 usa

extracted by the scancode license scanner the SPDX license identifier

GPL-2.0-or-later

has been chosen to replace the boilerplate/reference in 178 file(s).

The result has been manually verified and compared against a license compliance dataset provided by ....

Trimmed down version. Full patch is here:

https://git.kernel.org/pub/scm/utils/spdx/spdx-utils.git/tree/step2/patches/0001-gpl-2.0-plus.LICENSE.patch?h=linux-5.1

---

arch/arm/boot/dts/imx51-eukrea-cpuimx51.dtsi +1 -14
@@ -1,19 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright 2013 Eukréa Electromatique <[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; 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 Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
  */
 
 #include "imx51.dtsi"
arch/arm/mach-imx/iomux-mx35.h +1 -14
@@ -1,19 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * Copyright (C) 2009 by Jan Weitzel Phytec Messtechnik GmbH <[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; either version 2
- * of the License, or (at your option, NO_PAD_CTRL) 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 Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
  */
 
 #ifndef __MACH_IOMUX_MX35_H__
#2 lore raw

PATCH 2/4 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 2

In reply to Thomas Gleixner

Based on 1 normalized pattern(s):

permission is hereby granted to copy modify and redistribute this code in terms of the gnu library general public license version 2 or later at your option

extracted by the scancode license scanner the SPDX license identifier

GPL-2.0-or-later

has been chosen to replace the boilerplate/reference in 1 file(s).

The result has been manually verified and compared against a license compliance dataset provided by ....

---

include/linux/mc146818rtc.h +1 -3
@@ -1,11 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /* mc146818rtc.h - register definitions for the Real-Time-Clock / CMOS RAM
  * Copyright Torsten Duwe <[email protected]> 1993
  * derived from Data Sheet, Copyright Motorola 1984 (!).
  * It was written to be part of the Linux operating system.
  */
-/* permission is hereby granted to copy, modify and redistribute this code
- * in terms of the GNU Library General Public License, Version 2 or later,
- * at your option.
  */
 
 #ifndef _MC146818RTC_H
#3 lore raw

PATCH 3/4 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 3

In reply to Thomas Gleixner

Based on 2 normalized pattern(s):

this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 (or later) as published by the free software foundation

this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 or later as published by the free software foundation

extracted by the scancode license scanner the SPDX license identifier

GPL-2.0-or-later

has been chosen to replace the boilerplate/reference in 9 file(s).

The result has been manually verified and compared against a license compliance dataset provided by ....

---

arch/arm/boot/dts/omap3-n900.dts +1 -4
@@ -1,10 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (C) 2013 Pavel Machek <[email protected]>
  * Copyright (C) 2013-2014 Aaro Koskinen <[email protected]>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 (or later) as
- * published by the Free Software Foundation.
  */
 
 /dts-v1/;
arch/mips/jz4740/board-qi_lb60.c +1 -4
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * linux/arch/mips/jz4740/board-qi_lb60.c
  *
@@ -6,10 +7,6 @@
  * Copyright (c) 2009 Qi Hardware inc.,
  * Author: Xiangfu Liu <[email protected]>
  * Copyright 2010, Lars-Peter Clausen <[email protected]>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 or later
- * as published by the Free Software Foundation.
  */
 
 #include <linux/kernel.h>
drivers/hwmon/aspeed-pwm-tacho.c +1 -4
@@ -1,9 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (c) 2016 Google, Inc
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 or later as
- * published by the Free Software Foundation.
  */
 
 #include <linux/clk.h>
net/ipv4/netfilter/nf_dup_ipv4.c +1 -4
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * (C) 2007 by Sebastian Claßen <[email protected]>
  * (C) 2007-2010 by Jan Engelhardt <[email protected]>
  *
  * Extracted from xt_TEE.c
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 or later, as
- * published by the Free Software Foundation.
  */
 #include <linux/ip.h>
 #include <linux/module.h>
net/ipv6/netfilter/nf_dup_ipv6.c +1 -4
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * (C) 2007 by Sebastian Claßen <[email protected]>
  * (C) 2007-2010 by Jan Engelhardt <[email protected]>
  *
  * Extracted from xt_TEE.c
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 or later, as
- * published by the Free Software Foundation.
  */
 #include <linux/module.h>
 #include <linux/percpu.h>
net/netfilter/xt_TEE.c +1 -4
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  *	"TEE" target extension for Xtables
  *	Copyright © Sebastian Claßen, 2007
@@ -5,10 +6,6 @@
  *
  *	based on ipt_ROUTE.c from Cédric de Launois
  *	<[email protected]>
- *
- *	This program is free software; you can redistribute it and/or
- *	modify it under the terms of the GNU General Public License
- *	version 2 or later, as published by the Free Software Foundation.
  */
 #include <linux/module.h>
 #include <linux/skbuff.h>
sound/soc/atmel/atmel-classd.c +1 -4
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /* Atmel ALSA SoC Audio Class D Amplifier (CLASSD) driver
  *
  * Copyright (C) 2015 Atmel
  *
  * Author: Songjun Wu <[email protected]>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 or later
- * as published by the Free Software Foundation.
  */
 
 #include <linux/of.h>
sound/soc/atmel/atmel-pdmic.c +1 -4
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /* Atmel PDMIC driver
  *
  * Copyright (C) 2015 Atmel
  *
  * Author: Songjun Wu <[email protected]>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 or later
- * as published by the Free Software Foundation.
  */
 
 #include <linux/of.h>
#4 lore raw
In reply to Thomas Gleixner
Quoted 4 lines · Thomas Gleixner

Hi!

As promised here are the first 4 automatically generated patches. Each patch handles exactly one match pattern (rule).

Bah. The first one did not go through. It's too large. I'll post a trimmed down version with a link to the actual patch....

Thanks,

tglx

#5 lore raw

PATCH 4/4 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 4

In reply to Thomas Gleixner

Based on 1 normalized pattern(s):

licensed under gplv2 or later

extracted by the scancode license scanner the SPDX license identifier

GPL-2.0-or-later

has been chosen to replace the boilerplate/reference in 118 file(s).

The result has been manually verified and compared against a license compliance dataset provided by ....

---

arch/arm/boot/dts/aks-cdu.dts +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * aks-cdu.dts - Device Tree file for AK signal CDU
  *
  * Copyright (C) 2012 AK signal Brno a.s.
  *               2012 Jiri Prchal <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 /dts-v1/;
arch/arm/boot/dts/at91-ariag25.dts +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91-ariag25.dts - Device Tree file for Acme Systems Aria G25 (AT91SAM9G25 based)
  *
  * Copyright (C) 2013 Douglas Gilbert <[email protected]>,
  *                    Robert Nelson <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "at91sam9g25.dtsi"
arch/arm/boot/dts/at91-cosino.dtsi +1 -2
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91-cosino.dtsi - Device Tree file for Cosino core module
  *
@@ -7,8 +8,6 @@
  * Derived from at91sam9x5ek.dtsi by:
  *	Copyright (C) 2012 Atmel,
  *	2012 Nicolas Ferre <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 #include "at91sam9g35.dtsi"
arch/arm/boot/dts/at91-cosino_mega2560.dts +1 -2
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91-cosino_mega2560.dts - Device Tree file for Cosino board with
  *			      Mega 2560 extension
@@ -8,8 +9,6 @@
  * Derived from at91sam9g35ek.dts by:
  * 	Copyright (C) 2012 Atmel,
  *      2012 Nicolas Ferre <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 /dts-v1/;
arch/arm/boot/dts/at91-foxg20.dts +1 -2
@@ -1,11 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91-foxg20.dts - Device Tree file for Acme Systems FoxG20 board
  *
  * Based on DT files for at91sam9g20ek evaluation board (AT91SAM9G20 SoC)
  *
  * Copyright (C) 2013 Douglas Gilbert <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "at91sam9g20.dtsi"
arch/arm/boot/dts/at91-kizbox.dts +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91-kizbox.dts - Device Tree file for Overkiz Kizbox board
  *
  * Copyright (C) 2012-2014 Boris BREZILLON <[email protected]>
  *               2014-2015 Gaël PORTAY <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "at91sam9g20.dtsi"
arch/arm/boot/dts/at91-kizbox2.dts +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91-kizbox2.dts - Device Tree file for Overkiz Kizbox 2 board
  *
  * Copyright (C) 2014 Gaël PORTAY <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "sama5d31.dtsi"
arch/arm/boot/dts/at91-kizboxmini.dts +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91-kizboxmini.dts - Device Tree file for Overkiz Kizbox mini board
  *
  * Copyright (C) 2014 Gaël PORTAY <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "at91sam9g25.dtsi"
arch/arm/boot/dts/at91-linea.dtsi +1 -2
@@ -1,11 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91-linea.dtsi - Device Tree Include file for the Axentia Linea Module.
  *
  * Copyright (C) 2017 Axentia Technologies AB
  *
  * Author: Peter Rosin <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 #include "sama5d31.dtsi"
arch/arm/boot/dts/at91-sam9_l9260.dts +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91-sam9_l9260.dts - Device Tree file for Olimex SAM9-L9260 board
  *
  *  Copyright (C) 2016 Raashid Muhammed <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "at91sam9260.dtsi"
arch/arm/boot/dts/at91-sama5d3_xplained.dts +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91-sama5d3_xplained.dts - Device Tree file for the SAMA5D3 Xplained board
  *
  *  Copyright (C) 2014 Atmel,
  *		  2014 Nicolas Ferre <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "sama5d36.dtsi"
arch/arm/boot/dts/at91-tse850-3.dts +1 -2
@@ -1,11 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91-tse850-3.dts - Device Tree file for the Axentia TSE-850 3.0 board
  *
  * Copyright (C) 2017 Axentia Technologies AB
  *
  * Author: Peter Rosin <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include <dt-bindings/pwm/pwm.h>
arch/arm/boot/dts/at91rm9200.dtsi +1 -2
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91rm9200.dtsi - Device Tree Include file for AT91RM9200 family SoC
  *
@@ -6,8 +7,6 @@
  *                2012 Joachim Eastwood <[email protected]>
  *
  * Based on at91sam9260.dtsi
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <dt-bindings/pinctrl/at91.h>
arch/arm/boot/dts/at91rm9200_pqfp.dtsi +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91rm9200_pqfp.dtsi - Device Tree Include file for AT91RM9200 PQFP family SoC
  *
  * Copyright (C) 2013 Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 #include "at91rm9200.dtsi"
arch/arm/boot/dts/at91sam9260.dtsi +1 -2
@@ -1,11 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91sam9260.dtsi - Device Tree Include file for AT91SAM9260 family SoC
  *
  *  Copyright (C) 2011 Atmel,
  *                2011 Nicolas Ferre <[email protected]>,
  *                2011 Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <dt-bindings/pinctrl/at91.h>
arch/arm/boot/dts/at91sam9g15ek.dts +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91sam9g15ek.dts - Device Tree file for AT91SAM9G15-EK board
  *
  *  Copyright (C) 2012 Atmel,
  *                2012 Nicolas Ferre <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "at91sam9g15.dtsi"
arch/arm/boot/dts/at91sam9g25ek.dts +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91sam9g25ek.dts - Device Tree file for AT91SAM9G25-EK board
  *
  *  Copyright (C) 2012 Atmel,
  *                2012 Nicolas Ferre <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "at91sam9g25.dtsi"
arch/arm/boot/dts/at91sam9g35ek.dts +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91sam9g35ek.dts - Device Tree file for AT91SAM9G35-EK board
  *
  *  Copyright (C) 2012 Atmel,
  *                2012 Nicolas Ferre <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "at91sam9g35.dtsi"
arch/arm/boot/dts/at91sam9g45.dtsi +1 -2
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91sam9g45.dtsi - Device Tree Include file for AT91SAM9G45 family SoC
  *                    applies to AT91SAM9G45, AT91SAM9M10,
@@ -5,8 +6,6 @@
  *
  *  Copyright (C) 2011 Atmel,
  *                2011 Nicolas Ferre <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <dt-bindings/dma/at91.h>
arch/arm/boot/dts/at91sam9m10g45ek.dts +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91sam9m10g45ek.dts - Device Tree file for AT91SAM9M10G45-EK board
  *
  *  Copyright (C) 2011 Atmel,
  *                2011 Nicolas Ferre <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "at91sam9g45.dtsi"
arch/arm/boot/dts/at91sam9n12.dtsi +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91sam9n12.dtsi - Device Tree include file for AT91SAM9N12 SoC
  *
  *  Copyright (C) 2012 Atmel,
  *                2012 Hong Xu <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <dt-bindings/dma/at91.h>
arch/arm/boot/dts/at91sam9n12ek.dts +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91sam9n12ek.dts - Device Tree file for AT91SAM9N12-EK board
  *
  *  Copyright (C) 2012 Atmel,
  *                2012 Hong Xu <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "at91sam9n12.dtsi"
arch/arm/boot/dts/at91sam9rl.dtsi +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91sam9rl.dtsi - Device Tree Include file for AT91SAM9RL family SoC
  *
  *  Copyright (C) 2014 Microchip
  *  Alexandre Belloni <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <dt-bindings/pinctrl/at91.h>
arch/arm/boot/dts/at91sam9x25ek.dts +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91sam9x25ek.dts - Device Tree file for AT91SAM9X25-EK board
  *
  *  Copyright (C) 2012 Atmel,
  *                2012 Nicolas Ferre <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "at91sam9x25.dtsi"
arch/arm/boot/dts/at91sam9x35ek.dts +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91sam9x35ek.dts - Device Tree file for AT91SAM9X35-EK board
  *
  *  Copyright (C) 2012 Atmel,
  *                2012 Nicolas Ferre <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "at91sam9x35.dtsi"
arch/arm/boot/dts/at91sam9x5.dtsi +1 -2
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91sam9x5.dtsi - Device Tree Include file for AT91SAM9x5 family SoC
  *                   applies to AT91SAM9G15, AT91SAM9G25, AT91SAM9G35,
@@ -5,8 +6,6 @@
  *
  *  Copyright (C) 2012 Atmel,
  *                2012 Nicolas Ferre <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <dt-bindings/dma/at91.h>
arch/arm/boot/dts/at91sam9x5cm.dtsi +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91sam9x5cm.dtsi - Device Tree Include file for AT91SAM9x5 CPU Module
  *
  *  Copyright (C) 2012 Atmel,
  *                2012 Nicolas Ferre <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 / {
arch/arm/boot/dts/at91sam9x5dm.dtsi +1 -2
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91sam9x5dm.dtsi - Device Tree file for SAM9x5 display module
  *
@@ -5,8 +6,6 @@
  *                2014 Free Electrons
  *
  *  Author: Boris Brezillon <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 / {
arch/arm/boot/dts/at91sam9x5ek.dtsi +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * at91sam9x5ek.dtsi - Device Tree file for AT91SAM9x5CM Base board
  *
  *  Copyright (C) 2012 Atmel,
  *                2012 Nicolas Ferre <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 #include "at91sam9x5cm.dtsi"
 
arch/arm/boot/dts/atlas6-evb.dts +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * DTS file for CSR SiRFatlas6 Evaluation Board
  *
  * Copyright (c) 2012 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 /dts-v1/;
arch/arm/boot/dts/atlas6.dtsi +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * DTS file for CSR SiRFatlas6 SoC
  *
  * Copyright (c) 2012 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 / {
arch/arm/boot/dts/atlas7-evb.dts +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * DTS file for CSR SiRFatlas7 Evaluation Board
  *
  * Copyright (c) 2014 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 /dts-v1/;
arch/arm/boot/dts/atlas7.dtsi +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * DTS file for CSR SiRFatlas7 SoC
  *
  * Copyright (c) 2014 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 / {
arch/arm/boot/dts/evk-pro3.dts +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * evk-pro3.dts - Device Tree file for Telit EVK-PRO3 with Telit GE863-PRO3
  *
  * Copyright (C) 2012 Telit,
  *               2012 Fabio Porcedda <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 /dts-v1/;
arch/arm/boot/dts/ge863-pro3.dtsi +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * ge863_pro3.dtsi - Device Tree file for Telit GE863-PRO3
  *
  * Copyright (C) 2012 Telit,
  *               2012 Fabio Porcedda <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 #include "at91sam9260.dtsi"
arch/arm/boot/dts/moxart-uc7112lx.dts +1 -2
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /* moxart-uc7112lx.dts - Device Tree file for MOXA UC-7112-LX
  *
  * Copyright (C) 2013 Jonas Jensen <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 /dts-v1/;
arch/arm/boot/dts/moxart.dtsi +1 -2
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /* moxart.dtsi - Device Tree Include file for MOXA ART family SoC
  *
  * Copyright (C) 2013 Jonas Jensen <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <dt-bindings/interrupt-controller/irq.h>
arch/arm/boot/dts/ox810se-wd-mbwe.dts +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * wd-mbwe.dtsi - Device tree file for Western Digital My Book World Edition
  *
  * Copyright (C) 2016 Neil Armstrong <[email protected]>
- *
- * Licensed under GPLv2 or later
  */
 
 /dts-v1/;
arch/arm/boot/dts/ox810se.dtsi +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * ox810se.dtsi - Device tree file for Oxford Semiconductor OX810SE SoC
  *
  * Copyright (C) 2016 Neil Armstrong <[email protected]>
- *
- * Licensed under GPLv2 or later
  */
 
 #include <dt-bindings/clock/oxsemi,ox810se.h>
arch/arm/boot/dts/ox820-cloudengines-pogoplug-series-3.dts +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * cloudengines-pogoplug-series-3.dtsi - Device tree file for Cloud Engines PogoPlug Series 3
  *
  * Copyright (C) 2016 Neil Armstrong <[email protected]>
- *
- * Licensed under GPLv2 or later
  */
 
 /dts-v1/;
arch/arm/boot/dts/ox820.dtsi +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * ox820.dtsi - Device tree file for Oxford Semiconductor OX820 SoC
  *
  * Copyright (C) 2016 Neil Armstrong <[email protected]>
- *
- * Licensed under GPLv2 or later
  */
 
 #include <dt-bindings/interrupt-controller/arm-gic.h>
arch/arm/boot/dts/prima2-evb.dts +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * DTS file for CSR SiRFprimaII Evaluation Board
  *
  * Copyright (c) 2012 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 /dts-v1/;
arch/arm/boot/dts/prima2.dtsi +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * DTS file for CSR SiRFprimaII SoC
  *
  * Copyright (c) 2012 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 / {
arch/arm/boot/dts/pxa2xx.dtsi +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * pxa2xx.dtsi - Device Tree Include file for Marvell PXA2xx family SoC
  *
  * Copyright (C) 2011 Marek Vasut <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 #include "dt-bindings/clock/pxa-clock.h"
arch/arm/boot/dts/sama5d3.dtsi +1 -2
@@ -1,11 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * sama5d3.dtsi - Device Tree Include file for SAMA5D3 family SoC
  *                applies to SAMA5D31, SAMA5D33, SAMA5D34, SAMA5D35, SAMA5D36 SoC
  *
  *  Copyright (C) 2013 Atmel,
  *                2013 Ludovic Desroches <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <dt-bindings/dma/at91.h>
arch/arm/boot/dts/sama5d31.dtsi +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * sama5d31.dtsi - Device Tree Include file for SAMA5D31 SoC
  *
  *  Copyright (C) 2013 Boris BREZILLON <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 #include "sama5d3.dtsi"
 #include "sama5d3_lcd.dtsi"
arch/arm/boot/dts/sama5d31ek.dts +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * sama5d31ek.dts - Device Tree file for SAMA5D31-EK board
  *
  *  Copyright (C) 2013 Atmel,
  *                2013 Ludovic Desroches <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "sama5d31.dtsi"
arch/arm/boot/dts/sama5d33.dtsi +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * sama5d33.dtsi - Device Tree Include file for SAMA5D33 SoC
  *
  *  Copyright (C) 2013 Boris BREZILLON <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 #include "sama5d3.dtsi"
 #include "sama5d3_lcd.dtsi"
arch/arm/boot/dts/sama5d33ek.dts +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * sama5d33ek.dts - Device Tree file for SAMA5D33-EK board
  *
  *  Copyright (C) 2013 Atmel,
  *                2013 Ludovic Desroches <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "sama5d33.dtsi"
arch/arm/boot/dts/sama5d34.dtsi +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * sama5d34.dtsi - Device Tree Include file for SAMA5D34 SoC
  *
  *  Copyright (C) 2013 Boris BREZILLON <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 #include "sama5d3.dtsi"
 #include "sama5d3_lcd.dtsi"
arch/arm/boot/dts/sama5d34ek.dts +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * sama5d34ek.dts - Device Tree file for SAMA5D34-EK board
  *
  *  Copyright (C) 2013 Atmel,
  *                2013 Ludovic Desroches <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "sama5d34.dtsi"
arch/arm/boot/dts/sama5d35.dtsi +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * sama5d35.dtsi - Device Tree Include file for SAMA5D35 SoC
  *
  *  Copyright (C) 2013 Boris BREZILLON <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 #include "sama5d3.dtsi"
 #include "sama5d3_gmac.dtsi"
arch/arm/boot/dts/sama5d35ek.dts +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * sama5d35ek.dts - Device Tree file for SAMA5D35-EK board
  *
  *  Copyright (C) 2013 Atmel,
  *                2013 Ludovic Desroches <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "sama5d35.dtsi"
arch/arm/boot/dts/sama5d36.dtsi +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * sama5d36.dtsi - Device Tree Include file for SAMA5D36 SoC
  *
  *  Copyright (C) 2013 Atmel,
  *                2013 Josh Wu <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 #include "sama5d3.dtsi"
 #include "sama5d3_can.dtsi"
arch/arm/boot/dts/sama5d36ek.dts +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * sama5d36ek.dts - Device Tree file for SAMA5D36-EK board
  *
  *  Copyright (C) 2013 Atmel,
  *                2013 Josh Wu <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "sama5d36.dtsi"
arch/arm/boot/dts/sama5d3xcm.dtsi +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * sama5d3xcm.dtsi - Device Tree Include file for SAMA5D3x CPU Module
  *
  *  Copyright (C) 2013 Atmel,
  *                2013 Ludovic Desroches <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 / {
arch/arm/boot/dts/sama5d3xdm.dtsi +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * sama5d3dm.dtsi - Device Tree file for SAMA5 display module
  *
  *  Copyright (C) 2013 Atmel,
  *                2013 Ludovic Desroches <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 / {
arch/arm/boot/dts/sama5d3xmb.dtsi +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * sama5d3xmb.dts - Device Tree file for SAMA5D3x mother board
  *
  *  Copyright (C) 2013 Atmel,
  *                2013 Ludovic Desroches <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 #include "sama5d3xcm.dtsi"
 
arch/arm/boot/dts/sama5d3xmb_emac.dtsi +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * sama5d3xmb_emac.dts - Device Tree Include file for SAMA5D3x mother board
  * Ethernet
  *
  *  Copyright (C) 2016 Atmel,
- *
- * Licensed under GPLv2 or later.
  */
 
 / {
arch/arm/boot/dts/sama5d3xmb_gmac.dtsi +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * sama5d3xmb_gmac.dtsi - Device Tree Include file for SAMA5D3x motherboard
  * Gigabit Ethernet
  *
  *  Copyright (C) 2016 Atmel,
- *
- * Licensed under GPLv2 or later.
  */
 
 / {
arch/arm/boot/dts/usb_a9260.dts +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * usb_a9260.dts - Device Tree file for Caloa USB A9260 board
  *
  *  Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "at91sam9260.dtsi"
arch/arm/boot/dts/usb_a9260_common.dtsi +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * usb_a926x.dts - Device Tree file for Caloa USB A926x board
  *
  *  Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 / {
arch/arm/boot/dts/usb_a9g20.dts +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * usb_a9g20.dts - Device Tree file for Caloa USB A9G20 board
  *
  *  Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "usb_a9g20_common.dtsi"
arch/arm/boot/dts/usb_a9g20_common.dtsi +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * usb_a9g20.dts - Device Tree file for Caloa USB A9G20 board
  *
  *  Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 #include "at91sam9g20.dtsi"
arch/arm/boot/dts/usb_a9g20_lpw.dts +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * usb_a9g20_lpw.dts - Device Tree file for Caloa USB A9G20 Low Power board
  *
  *  Copyright (C) 2013 Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 /dts-v1/;
 #include "usb_a9g20_common.dtsi"
arch/arm/boot/dts/vt8500-bv07.dts +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * vt8500-bv07.dts - Device tree file for Benign BV07 Netbook
  *
  * Copyright (C) 2012 Tony Prisk <[email protected]>
- *
- * Licensed under GPLv2 or later
  */
 
 /dts-v1/;
arch/arm/boot/dts/vt8500.dtsi +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * vt8500.dtsi - Device tree file for VIA VT8500 SoC
  *
  * Copyright (C) 2012 Tony Prisk <[email protected]>
- *
- * Licensed under GPLv2 or later
  */
 
 / {
arch/arm/boot/dts/wm8505-ref.dts +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * wm8505-ref.dts - Device tree file for Wondermedia WM8505 reference netbook
  *
  * Copyright (C) 2012 Tony Prisk <[email protected]>
- *
- * Licensed under GPLv2 or later
  */
 
 /dts-v1/;
arch/arm/boot/dts/wm8505.dtsi +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * wm8505.dtsi - Device tree file for Wondermedia WM8505 SoC
  *
  * Copyright (C) 2012 Tony Prisk <[email protected]>
- *
- * Licensed under GPLv2 or later
  */
 
 / {
arch/arm/boot/dts/wm8650-mid.dts +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * wm8650-mid.dts - Device tree file for Wondermedia WM8650-MID Tablet
  *
  * Copyright (C) 2012 Tony Prisk <[email protected]>
- *
- * Licensed under GPLv2 or later
  */
 
 /dts-v1/;
arch/arm/boot/dts/wm8650.dtsi +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * wm8650.dtsi - Device tree file for Wondermedia WM8650 SoC
  *
  * Copyright (C) 2012 Tony Prisk <[email protected]>
- *
- * Licensed under GPLv2 or later
  */
 
 / {
arch/arm/boot/dts/wm8750-apc8750.dts +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * wm8750-apc8750.dts
  *  - Device tree file for VIA APC8750
  *
  * Copyright (C) 2012 Tony Prisk <[email protected]>
- *
- * Licensed under GPLv2 or later
  */
 
 /dts-v1/;
arch/arm/boot/dts/wm8750.dtsi +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * wm8750.dtsi - Device tree file for Wondermedia WM8750 SoC
  *
  * Copyright (C) 2012 Tony Prisk <[email protected]>
- *
- * Licensed under GPLv2 or later
  */
 
 / {
arch/arm/boot/dts/wm8850-w70v2.dts +1 -2
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * wm8850-w70v2.dts
  *  - Device tree file for Wondermedia WM8850 Tablet
@@ -5,8 +6,6 @@
  *  - HongLianYing 'HLY070ML268-21A' 7" LCD panel
  *
  * Copyright (C) 2012 Tony Prisk <[email protected]>
- *
- * Licensed under GPLv2 or later
  */
 
 /dts-v1/;
arch/arm/boot/dts/wm8850.dtsi +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * wm8850.dtsi - Device tree file for Wondermedia WM8850 SoC
  *
  * Copyright (C) 2012 Tony Prisk <[email protected]>
- *
- * Licensed under GPLv2 or later
  */
 
 / {
arch/arm/include/debug/sirf.S +1 -2
@@ -1,9 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * arch/arm/mach-prima2/include/mach/debug-macro.S
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #define SIRF_LLUART_TXFIFO_STATUS	0x0114
arch/arm/mach-at91/at91rm9200.c +1 -2
@@ -1,11 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  *  Setup code for AT91RM9200
  *
  *  Copyright (C) 2011 Atmel,
  *                2011 Nicolas Ferre <[email protected]>
  *                2012 Joachim Eastwood <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/of.h>
arch/arm/mach-at91/at91sam9.c +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  *  Setup code for AT91SAM9
  *
  *  Copyright (C) 2011 Atmel,
  *                2011 Nicolas Ferre <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/of.h>
arch/arm/mach-at91/sama5.c +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  *  Setup code for SAMA5
  *
  *  Copyright (C) 2013 Atmel,
  *                2013 Ludovic Desroches <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/of.h>
arch/arm/mach-at91/samv7.c +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  *  Setup code for SAMv7x
  *
  *  Copyright (C) 2013 Atmel,
  *                2016 Andras Szemzo <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 #include <linux/of.h>
 #include <linux/of_platform.h>
arch/arm/mach-prima2/common.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Defines machines for CSR SiRFprimaII
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/init.h>
arch/arm/mach-prima2/common.h +1 -2
@@ -1,9 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * This file contains common function prototypes to avoid externs in the c files.
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #ifndef __MACH_PRIMA2_COMMON_H__
arch/arm/mach-prima2/headsmp.S +1 -2
@@ -1,9 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * Entry of the second core for CSR Marco dual-core SMP SoCs
  *
  * Copyright (c) 2012 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/linkage.h>
arch/arm/mach-prima2/hotplug.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * CPU hotplug support for CSR Marco dual-core SMP SoCs
  *
  * Copyright (c) 2012 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/kernel.h>
arch/arm/mach-prima2/platsmp.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * plat smp support for CSR Marco dual-core SMP SoCs
  *
  * Copyright (c) 2012 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/init.h>
arch/arm/mach-prima2/pm.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * power management entry for CSR SiRFprimaII
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/kernel.h>
arch/arm/mach-prima2/pm.h +1 -2
@@ -1,9 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * arch/arm/mach-prima2/pm.h
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #ifndef _MACH_PRIMA2_PM_H_
arch/arm/mach-prima2/rstc.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * reset controller for CSR SiRFprimaII
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/kernel.h>
arch/arm/mach-prima2/rtciobrg.c +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * RTC I/O Bridge interfaces for CSR SiRFprimaII/atlas7
  * ARM access the registers of SYSRTC, GPSRTC and PWRC through this module
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/kernel.h>
arch/arm/mach-prima2/sleep.S +1 -2
@@ -1,9 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * sleep mode for CSR SiRFprimaII
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/linkage.h>
drivers/clk/sirf/clk-atlas6.c +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Clock tree for CSR SiRFatlasVI
  *
  * Copyright (c) 2011 - 2014 Cambridge Silicon Radio Limited, a CSR plc group
  * company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/module.h>
drivers/clk/sirf/clk-atlas7.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Clock tree for CSR SiRFAtlas7
  *
  * Copyright (c) 2014 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/bitops.h>
drivers/clk/sirf/clk-common.c +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * common clks module for all SiRF SoCs
  *
  * Copyright (c) 2011 - 2014 Cambridge Silicon Radio Limited, a CSR plc group
  * company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/clk.h>
drivers/clk/sirf/clk-prima2.c +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Clock tree for CSR SiRFprimaII
  *
  * Copyright (c) 2011 - 2014 Cambridge Silicon Radio Limited, a CSR plc group
  * company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/module.h>
drivers/clocksource/timer-atlas7.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * System timer for CSR SiRFprimaII
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/kernel.h>
drivers/clocksource/timer-prima2.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * System timer for CSR SiRFprimaII
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/kernel.h>
drivers/dma/sirf-dma.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * DMA controller driver for CSR SiRFprimaII
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/module.h>
drivers/i2c/busses/i2c-sirf.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * I2C bus driver for CSR SiRFprimaII
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/interrupt.h>
drivers/input/misc/sirfsoc-onkey.c +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Power key driver for SiRF PrimaII
  *
  * Copyright (c) 2013 - 2014 Cambridge Silicon Radio Limited, a CSR plc group
  * company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/module.h>
drivers/irqchip/irq-sirfsoc.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * interrupt controller support for CSR SiRFprimaII
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/init.h>
drivers/mmc/host/sdhci-sirf.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * SDHCI support for SiRF primaII and marco SoCs
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/delay.h>
drivers/pinctrl/sirf/pinctrl-atlas6.c +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * pinctrl pads, groups, functions for CSR SiRFatlasVI
  *
  * Copyright (c) 2011 - 2014 Cambridge Silicon Radio Limited, a CSR plc group
  * company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/pinctrl/pinctrl.h>
drivers/pinctrl/sirf/pinctrl-atlas7.c +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * pinctrl pads, groups, functions for CSR SiRFatlasVII
  *
  * Copyright (c) 2011 - 2014 Cambridge Silicon Radio Limited, a CSR plc group
  * company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/init.h>
drivers/pinctrl/sirf/pinctrl-prima2.c +1 -2
@@ -1,10 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * pinctrl pads, groups, functions for CSR SiRFprimaII
  *
  * Copyright (c) 2011 - 2014 Cambridge Silicon Radio Limited, a CSR plc group
  * company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/pinctrl/pinctrl.h>
drivers/pinctrl/sirf/pinctrl-sirf.c +1 -2
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * pinmux driver for CSR SiRFprimaII
  *
@@ -8,8 +9,6 @@
  *
  * Copyright (c) 2011 - 2014 Cambridge Silicon Radio Limited, a CSR plc group
  * company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/init.h>
drivers/pinctrl/sirf/pinctrl-sirf.h +1 -2
@@ -1,9 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * pinmux driver shared headfile for CSR SiRFsoc
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #ifndef __PINMUX_SIRF_H__
drivers/rtc/rtc-sirfsoc.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * SiRFSoC Real Time Clock interface for Linux
  *
  * Copyright (c) 2013 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/module.h>
drivers/spi/spi-sirf.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * SPI bus driver for CSR SiRFprimaII
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/module.h>
drivers/watchdog/asm9260_wdt.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Watchdog driver for Alphascale ASM9260.
  *
  * Copyright (c) 2014 Oleksij Rempel <[email protected]>
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/bitops.h>
drivers/watchdog/sirfsoc_wdt.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Watchdog driver for CSR SiRFprimaII and SiRFatlasVI
  *
  * Copyright (c) 2013 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/module.h>
include/dt-bindings/clock/at91.h +1 -2
@@ -1,9 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * This header provides constants for AT91 pmc status.
  *
  * The constants defined in this header are being used in dts.
- *
- * Licensed under GPLv2 or later.
  */
 
 #ifndef _DT_BINDINGS_CLK_AT91_H
include/linux/rtc/sirfsoc_rtciobrg.h +1 -2
@@ -1,10 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * RTC I/O Bridge interfaces for CSR SiRFprimaII
  * ARM access the registers of SYSRTC, GPSRTC and PWRC through this module
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 #ifndef _SIRFSOC_RTC_IOBRG_H_
 #define _SIRFSOC_RTC_IOBRG_H_
sound/soc/codecs/sirf-audio-codec.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * SiRF audio codec driver
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/module.h>
sound/soc/codecs/sirf-audio-codec.h +1 -2
@@ -1,9 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * SiRF inner codec controllers define
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #ifndef _SIRF_AUDIO_CODEC_H
sound/soc/sirf/sirf-audio-port.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * SiRF Audio port driver
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 #include <linux/module.h>
 #include <sound/soc.h>
sound/soc/sirf/sirf-audio.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * SiRF audio card driver
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #include <linux/platform_device.h>
sound/soc/sirf/sirf-usp.c +1 -2
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * SiRF USP in I2S/DSP mode
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 #include <linux/module.h>
 #include <linux/io.h>
sound/soc/sirf/sirf-usp.h +1 -2
@@ -1,9 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * arch/arm/mach-prima2/include/mach/sirfsoc_usp.h
  *
  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
- *
- * Licensed under GPLv2 or later.
  */
 
 #ifndef _SIRF_USP_H
maintainer
#6 lore raw
In reply to Thomas Gleixner
Quoted 13 lines · Thomas Gleixner

Hi!

As promised here are the first 4 automatically generated patches. Each patch handles exactly one match pattern (rule).

While reviewing the patch (actual code change) might be massively time consuming, the quick and important part is to look at the patterns and verify whether the license conclusion is correct. The tooling which replaces exactly those patterns is pretty solid by now. But if you really insists on looking at each individual file change, you're welcome. :)

Note that some of the patterns contain obscure things like:

Quoted 8 lines
     [no]_[pad]_[ctrl]

in the middle. This one is a clear copy and paste artifact which happens to be in arch/arm/mach-imx/iomux-mx35.h:

* of the License, or (at your option, NO_PAD_CTRL) any later version.

Oh well.....

What's the diffstat of all 4 of these patches? How many files are you fixing up here?

thanks,

greg k-h

#7 lore raw
Quoted 19 lines · Greg KH
Quoted 18 lines · Thomas Gleixner

Hi!

As promised here are the first 4 automatically generated patches. Each patch handles exactly one match pattern (rule).

While reviewing the patch (actual code change) might be massively time consuming, the quick and important part is to look at the patterns and verify whether the license conclusion is correct. The tooling which replaces exactly those patterns is pretty solid by now. But if you really insists on looking at each individual file change, you're welcome. :)

Note that some of the patterns contain obscure things like:

     [no]_[pad]_[ctrl]

in the middle. This one is a clear copy and paste artifact which happens to be in arch/arm/mach-imx/iomux-mx35.h:

Quoted 6 lines
Quoted 3 lines

* of the License, or (at your option, NO_PAD_CTRL) any later version.

Oh well.....

What's the diffstat of all 4 of these patches? How many files are you fixing up here?

Oops. Forgot to add that.

      305 files changed, 311 insertions(+), 2789 deletions(-)

Thanks,

tglx

maintainer
#8 lore raw
Quoted 22 lines · Thomas Gleixner
Quoted 21 lines · Greg KH
Quoted 20 lines · Thomas Gleixner

Hi!

As promised here are the first 4 automatically generated patches. Each patch handles exactly one match pattern (rule).

While reviewing the patch (actual code change) might be massively time consuming, the quick and important part is to look at the patterns and verify whether the license conclusion is correct. The tooling which replaces exactly those patterns is pretty solid by now. But if you really insists on looking at each individual file change, you're welcome. :)

Note that some of the patterns contain obscure things like:

     [no]_[pad]_[ctrl]

in the middle. This one is a clear copy and paste artifact which happens to be in arch/arm/mach-imx/iomux-mx35.h:

* of the License, or (at your option, NO_PAD_CTRL) any later version.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Oh well.....

What's the diffstat of all 4 of these patches? How many files are you fixing up here?

Oops. Forgot to add that.

      305 files changed, 311 insertions(+), 2789 deletions(-)

Nice, but I would have expected more files to be touched here :)

Anyway, these all look good to me. I'm guessing the subject lines will be tweaked. If there's anything I can do to run the script and send out patches, please let me know.

thanks,

greg k-h

#9 lore raw
Quoted 25 lines · Greg KH
Quoted 24 lines · Thomas Gleixner
Quoted 23 lines · Greg KH
Quoted 21 lines · Thomas Gleixner

Hi!

As promised here are the first 4 automatically generated patches. Each patch handles exactly one match pattern (rule).

While reviewing the patch (actual code change) might be massively time consuming, the quick and important part is to look at the patterns and verify whether the license conclusion is correct. The tooling which replaces exactly those patterns is pretty solid by now. But if you really insists on looking at each individual file change, you're welcome. :)

Note that some of the patterns contain obscure things like:

     [no]_[pad]_[ctrl]

in the middle. This one is a clear copy and paste artifact which happens to be in arch/arm/mach-imx/iomux-mx35.h:

* of the License, or (at your option, NO_PAD_CTRL) any later version.

Oh well.....

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

What's the diffstat of all 4 of these patches? How many files are you fixing up here?

Oops. Forgot to add that.

      305 files changed, 311 insertions(+), 2789 deletions(-)

Nice, but I would have expected more files to be touched here :)

It's 4 out of 514 patches on the step2 branch.

step1-3 result with all patches applied in:

 24524 files changed, 24721 insertions(+), 184320 deletions(-)
Quoted 3 lines

Anyway, these all look good to me. I'm guessing the subject lines will be tweaked. If there's anything I can do to run the script and send out patches, please let me know.

You have a big enough machine?

I need to fix some crap in the patcher. krobot found an odd patched header file.

Thanks

tglx

maintainer
#10 lore raw
Quoted 33 lines · Thomas Gleixner
Quoted 32 lines · Greg KH
Quoted 30 lines · Thomas Gleixner
Quoted 19 lines · Greg KH
Quoted 18 lines · Thomas Gleixner

Hi!

As promised here are the first 4 automatically generated patches. Each patch handles exactly one match pattern (rule).

While reviewing the patch (actual code change) might be massively time consuming, the quick and important part is to look at the patterns and verify whether the license conclusion is correct. The tooling which replaces exactly those patterns is pretty solid by now. But if you really insists on looking at each individual file change, you're welcome. :)

Note that some of the patterns contain obscure things like:

     [no]_[pad]_[ctrl]

in the middle. This one is a clear copy and paste artifact which happens to be in arch/arm/mach-imx/iomux-mx35.h:

Quoted 6 lines
Quoted 3 lines

* of the License, or (at your option, NO_PAD_CTRL) any later version.

Oh well.....

What's the diffstat of all 4 of these patches? How many files are you fixing up here?

Oops. Forgot to add that.

      305 files changed, 311 insertions(+), 2789 deletions(-)
Quoted 7 lines
Quoted 1 line

Nice, but I would have expected more files to be touched here :)

It's 4 out of 514 patches on the step2 branch.

step1-3 result with all patches applied in:

 24524 files changed, 24721 insertions(+), 184320 deletions(-)

That's better :)

Quoted 5 lines
Quoted 3 lines

Anyway, these all look good to me. I'm guessing the subject lines will be tweaked. If there's anything I can do to run the script and send out patches, please let me know.

You have a big enough machine?

I think I do:

	$ free -h
	              total        used        free      shared  buff/cache   available
	Mem:          118Gi       994Mi       113Gi       1.0Mi       3.3Gi       115Gi
	Swap:         4.0Gi          0B       4.0Gi

It's what I do my stable kernel build testing on :)

Anyway, glad to help out if you want me to.

greg k-h

#11 lore raw

Greg,

Quoted 2 lines · Greg KH

Anyway, glad to help out if you want me to.

Running the scripts is one thing. The more important thing is to figure out how we are going to review these patches and agree that the conclusion is correct. Ideally we have lots of Reviewed-by's on each of them.

Yes, it's 500+ and some of them are really large, but the point is that at least in my opinion it's enough to carefully review the 'normalized' patterns which are in the change log.

I have some postprocessing checks (not yet in utils) which verify that author/copyright notices which are in the middle of the removed crap are preserved.

The other issue which I worked on yesterday night (krobot finding a few corner cases where the patcher did not handle some odd comment formatting correctly) should be gone. I just started a new full run to verify that.

Apropos changelog. You said they need some care. If you check out the utils repo, there are templates in the step2/3 directories and the subdirectories of step1. If you could work on them that would be appreciated.

Thanks,

tglx

maintainer
#12 lore raw
Quoted 18 lines · Thomas Gleixner

Greg,

Quoted 2 lines · Greg KH

Anyway, glad to help out if you want me to.

Running the scripts is one thing. The more important thing is to figure out how we are going to review these patches and agree that the conclusion is correct. Ideally we have lots of Reviewed-by's on each of them.

Yes, it's 500+ and some of them are really large, but the point is that at least in my opinion it's enough to carefully review the 'normalized' patterns which are in the change log.

I have some postprocessing checks (not yet in utils) which verify that author/copyright notices which are in the middle of the removed crap are preserved.

Quoted 7 lines

The other issue which I worked on yesterday night (krobot finding a few corner cases where the patcher did not handle some odd comment formatting correctly) should be gone. I just started a new full run to verify that.

Apropos changelog. You said they need some care. If you check out the utils repo, there are templates in the step2/3 directories and the subdirectories of step1. If you could work on them that would be appreciated.

What repo are you referring to? Did I miss a link somewhere?

thanks,

greg k-h

#13 lore raw
Quoted 6 lines · Greg KH
Quoted 3 lines · Thomas Gleixner

Apropos changelog. You said they need some care. If you check out the utils repo, there are templates in the step2/3 directories and the subdirectories of step1. If you could work on them that would be appreciated.

What repo are you referring to? Did I miss a link somewhere?

In the let the fun begin mail:

git://git.kernel.org/pub/scm/utils/spdx/spdx-utils

Thanks,

tglx

maintainer
#14 lore raw
Quoted 11 lines · Thomas Gleixner
Quoted 6 lines · Greg KH
Quoted 3 lines · Thomas Gleixner

Apropos changelog. You said they need some care. If you check out the utils repo, there are templates in the step2/3 directories and the subdirectories of step1. If you could work on them that would be appreciated.

What repo are you referring to? Did I miss a link somewhere?

In the let the fun begin mail:

git://git.kernel.org/pub/scm/utils/spdx/spdx-utils

Ah, sorry, I missed that.

It uses 'scancode', but I've lost the link to that repo. And from what I remember, there are a zillion different branches of that repo, any hint as to which one you used?

thanks,

greg k-h

maintainer
#15 lore raw
Quoted 9 lines · Greg KH
Quoted 8 lines · Thomas Gleixner
Quoted 6 lines · Greg KH
Quoted 3 lines · Thomas Gleixner

Apropos changelog. You said they need some care. If you check out the utils repo, there are templates in the step2/3 directories and the subdirectories of step1. If you could work on them that would be appreciated.

What repo are you referring to? Did I miss a link somewhere?

Quoted 7 lines
Quoted 3 lines

In the let the fun begin mail:

git://git.kernel.org/pub/scm/utils/spdx/spdx-utils

Ah, sorry, I missed that.

It uses 'scancode', but I've lost the link to that repo.

Nevermind, that was in the intro email as well...

#16 lore raw
In reply to Thomas Gleixner
Quoted 3 lines · Thomas Gleixner

The other issue which I worked on yesterday night (krobot finding a few corner cases where the patcher did not handle some odd comment formatting correctly) should be gone. I just started a new full run to verify that.

Pushed out updated scripts, updated kernel branches.

Thanks,

tglx

#17 lore raw
In reply to Thomas Gleixner
Quoted 4 lines · Thomas Gleixner

Hi!

As promised here are the first 4 automatically generated patches. Each patch handles exactly one match pattern (rule).

These look great, Thomas, thanks!

Are you automatically logging which files were modified by each pattern match, for the legally conservative hack we talked about, preserving a historical record of altered license notices in a doc file?

Allison

#18 lore raw

Allison,

Quoted 11 lines · Allison Randal
Quoted 4 lines · Thomas Gleixner

Hi!

As promised here are the first 4 automatically generated patches. Each patch handles exactly one match pattern (rule).

These look great, Thomas, thanks!

Are you automatically logging which files were modified by each pattern match, for the legally conservative hack we talked about, preserving a historical record of altered license notices in a doc file?

Yes, the scripts produce logs and of course once the patch is applied you can see from the diffstat which files are touched. So we have lots of ways to figure out what has been changed and its preserved in the git history forever.

Thanks,

tglx

#19 lore raw
Quoted 5 lines · Thomas Gleixner

Yes, the scripts produce logs and of course once the patch is applied you can see from the diffstat which files are touched. So we have lots of ways to figure out what has been changed and its preserved in the git history forever.

Nod, but what I meant was the "wall of shame" file that the lawyers wanted, which preserved each variant license notice text and a list of the files that had it removed.

I thought the idea was horrible, and said so at the time, but they aren't wrong that the GPLv2 has a requirement to "keep intact all the notices that refer to this License". None of us managed to come up with a better alternative than moving the notices into a doc file, with some introductory text to say "please never do this again, just use SPDX headers".

Though, maybe it would be better if I said nothing and allowed the whole idea to be forgotten...

Allison

#20 lore raw
Quoted 18 lines · Allison Randal
Quoted 5 lines · Thomas Gleixner

Yes, the scripts produce logs and of course once the patch is applied you can see from the diffstat which files are touched. So we have lots of ways to figure out what has been changed and its preserved in the git history forever.

Nod, but what I meant was the "wall of shame" file that the lawyers wanted, which preserved each variant license notice text and a list of the files that had it removed.

I thought the idea was horrible, and said so at the time, but they aren't wrong that the GPLv2 has a requirement to "keep intact all the notices that refer to this License". None of us managed to come up with a better alternative than moving the notices into a doc file, with some introductory text to say "please never do this again, just use SPDX headers".

Quoted 2 lines

Though, maybe it would be better if I said nothing and allowed the whole idea to be forgotten...

Ahhh that one. That's an easy to do add on if people insist ....

#21 lore raw
Quoted 7 lines · Thomas Gleixner
Quoted 4 lines · Allison Randal

On 5/8/19 9:23 PM, Thomas Gleixner wrote:

Though, maybe it would be better if I said nothing and allowed the whole idea to be forgotten...

Ahhh that one. That's an easy to do add on if people insist ....

Shhhhhh, if we're very quiet, maybe they won't...

Allison

#22 lore raw
Quoted 15 lines · Allison Randal
Quoted 7 lines · Thomas Gleixner
Quoted 4 lines · Allison Randal

On 5/8/19 9:23 PM, Thomas Gleixner wrote:

Though, maybe it would be better if I said nothing and allowed the whole idea to be forgotten...

Ahhh that one. That's an easy to do add on if people insist ....

Shhhhhh, if we're very quiet, maybe they won’t…

I’ll have a think on this and chat with Mike Dolan to follow-up on our discussions in Barcelona on this one.

Thomas - would I be correct to assume that having the answer to this sooner-than-later, so this can begin being compiled would be helpful, or it is not make much difference as to timing?

Thanks,
Jilayne

#23 lore raw

Jilayne,

Quoted 11 lines · J Lovejoy
Quoted 11 lines · Allison Randal
Quoted 7 lines · Thomas Gleixner
Quoted 4 lines · Allison Randal

On 5/8/19 9:23 PM, Thomas Gleixner wrote:

Though, maybe it would be better if I said nothing and allowed the whole idea to be forgotten...

Ahhh that one. That's an easy to do add on if people insist ....

Quoted 8 lines
Quoted 2 lines

Shhhhhh, if we're very quiet, maybe they won’t…

I’ll have a think on this and chat with Mike Dolan to follow-up on our discussions in Barcelona on this one.

Thomas - would I be correct to assume that having the answer to this sooner-than-later, so this can begin being compiled would be helpful, or it is not make much difference as to timing?

We can compile that list after the fact. The information is not going to be lost. The metadata is there or can be recreated any time.

Thanks,

tglx

#24 lore raw
Quoted 23 lines · Thomas Gleixner

Jilayne,

Quoted 16 lines · J Lovejoy
Quoted 13 lines · Allison Randal
Quoted 7 lines · Thomas Gleixner
Quoted 4 lines · Allison Randal

On 5/8/19 9:23 PM, Thomas Gleixner wrote:

Though, maybe it would be better if I said nothing and allowed the whole idea to be forgotten...

Ahhh that one. That's an easy to do add on if people insist ....

Shhhhhh, if we're very quiet, maybe they won’t…

I’ll have a think on this and chat with Mike Dolan to follow-up on our discussions in Barcelona on this one.

Quoted 6 lines
Quoted 3 lines

Thomas - would I be correct to assume that having the answer to this sooner-than-later, so this can begin being compiled would be helpful, or it is not make much difference as to timing?

We can compile that list after the fact. The information is not going to be lost. The metadata is there or can be recreated any time.

great, thanks - good to know!

Jilayne

Quoted 4 lines

Thanks,

tglx