Skip to contentSkip to conversation

arch: convert to SPDX identifiers

PATCH In review Wolfram Sang 4 participants 11 messages Jun 14, 2018 – Jun 17, 2018

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

v2 cover arch: convert to SPDX identifiers

So, here is the rebased patch adding SPDX identifiers to mach-shmobile. And a fixup patch to add the missing identifier in r8a7796.dtsi.

Thanks,

Wolfram

Wolfram Sang (2):
ARM: shmobile: convert to SPDX identifier
arm64: dts: renesas: r8a7796 add missing SPDX identifier

 arch/arm/include/debug/renesas-scif.S              |  5 +----
 arch/arm/mach-shmobile/headsmp-apmu.S              |  5 +----
 arch/arm/mach-shmobile/platsmp-apmu.c              |  5 +----
 arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c | 10 +---------
 arch/arm/mach-shmobile/setup-emev2.c               | 10 +---------
 arch/arm/mach-shmobile/setup-r7s72100.c            | 10 +---------
 arch/arm/mach-shmobile/setup-r8a73a4.c             | 10 +---------
 arch/arm/mach-shmobile/setup-r8a7740.c             | 10 +---------
 arch/arm/mach-shmobile/setup-r8a7778.c             | 10 +---------
 arch/arm/mach-shmobile/setup-r8a7779.c             | 10 +---------
 arch/arm/mach-shmobile/setup-rcar-gen2.c           | 10 +---------
 arch/arm/mach-shmobile/setup-sh73a0.c              | 10 +---------
 arch/arm/mach-shmobile/smp-emev2.c                 | 10 +---------
 arch/arm/mach-shmobile/smp-r8a7779.c               | 10 +---------
 arch/arm64/boot/dts/renesas/r8a7796.dtsi           |  1 +
 15 files changed, 15 insertions(+), 111 deletions(-)
Signature · 1 line
2.11.0
#1 lore raw

PATCH v2 1/2 ARM: shmobile: convert to SPDX identifier

---
 arch/arm/include/debug/renesas-scif.S              |  5 +----
 arch/arm/mach-shmobile/headsmp-apmu.S              |  5 +----
 arch/arm/mach-shmobile/platsmp-apmu.c              |  5 +----
 arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c | 10 +---------
 arch/arm/mach-shmobile/setup-emev2.c               | 10 +---------
 arch/arm/mach-shmobile/setup-r7s72100.c            | 10 +---------
 arch/arm/mach-shmobile/setup-r8a73a4.c             | 10 +---------
 arch/arm/mach-shmobile/setup-r8a7740.c             | 10 +---------
 arch/arm/mach-shmobile/setup-r8a7778.c             | 10 +---------
 arch/arm/mach-shmobile/setup-r8a7779.c             | 10 +---------
 arch/arm/mach-shmobile/setup-rcar-gen2.c           | 10 +---------
 arch/arm/mach-shmobile/setup-sh73a0.c              | 10 +---------
 arch/arm/mach-shmobile/smp-emev2.c                 | 10 +---------
 arch/arm/mach-shmobile/smp-r8a7779.c               | 10 +---------
 14 files changed, 14 insertions(+), 111 deletions(-)
arch/arm/include/debug/renesas-scif.S +1 -4
index 97820a8df51a..1c5f795587fc 100644
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
  * Renesas SCIF(A) debugging macro include header
  *
@@ -5,10 +6,6 @@
  *
  * Copyright (C) 2012-2013 Renesas Electronics Corporation
  * Copyright (C) 1994-1999 Russell King
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
  */
 
 #define SCIF_PHYS	CONFIG_DEBUG_UART_PHYS
arch/arm/mach-shmobile/headsmp-apmu.S +1 -4
index 5672b5849401..94897f7f294c 100644
@@ -1,11 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
  * SMP support for APMU based systems with Cortex A7/A15
  *
  * Copyright (C) 2014  Renesas Electronics Corporation
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
  */
 
 #include <linux/linkage.h>
arch/arm/mach-shmobile/platsmp-apmu.c +1 -4
index 9e1e85cf1899..96330ef25641 100644
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * SMP support for SoCs with APMU
  *
  * Copyright (C) 2014  Renesas Electronics Corporation
  * Copyright (C) 2013  Magnus Damm
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
  */
 #include <linux/cpu_pm.h>
 #include <linux/delay.h>
arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c +1 -9
index 93f628acfd94..21ebc7678ffd 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * R-Car Generation 2 da9063/da9210 regulator quirk
  *
@@ -16,15 +17,6 @@
  * been initialized, but before the i2c slave drivers are initialized.
  *
  * Copyright (C) 2015 Glider bvba
- *
- * 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.
  */
 
 #include <linux/device.h>
arch/arm/mach-shmobile/setup-emev2.c +1 -9
index 3c99aaf65325..a328d2f52678 100644
@@ -1,16 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Emma Mobile EV2 processor support
  *
  * Copyright (C) 2012  Magnus Damm
- *
- * 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.
  */
 #include <linux/kernel.h>
 #include <linux/init.h>
arch/arm/mach-shmobile/setup-r7s72100.c +1 -9
index 319ca9508ec6..14867226f8f4 100644
@@ -1,17 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * r7s72100 processor support
  *
  * Copyright (C) 2013  Renesas Solutions Corp.
  * Copyright (C) 2013  Magnus Damm
- *
- * 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.
  */
 
 #include <linux/kernel.h>
arch/arm/mach-shmobile/setup-r8a73a4.c +1 -9
index 20173c4f415d..ef391fa368e9 100644
@@ -1,17 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * r8a73a4 processor support
  *
  * Copyright (C) 2013  Renesas Solutions Corp.
  * Copyright (C) 2013  Magnus Damm
- *
- * 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.
  */
 
 #include <linux/init.h>
arch/arm/mach-shmobile/setup-r8a7740.c +1 -9
index 3849eef0d3a7..787d039b5a07 100644
@@ -1,17 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * R8A7740 processor support
  *
  * Copyright (C) 2011  Renesas Solutions Corp.
  * Copyright (C) 2011  Kuninori Morimoto <[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 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.
  */
 #include <linux/kernel.h>
 #include <linux/init.h>
arch/arm/mach-shmobile/setup-r8a7778.c +1 -9
index 7fa4a0b5f654..ce51794f64c7 100644
@@ -1,18 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * r8a7778 processor support
  *
  * Copyright (C) 2013  Renesas Solutions Corp.
  * Copyright (C) 2013  Kuninori Morimoto <[email protected]>
  * Copyright (C) 2013  Cogent Embedded, Inc.
- *
- * 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.
  */
 
 #include <linux/io.h>
arch/arm/mach-shmobile/setup-r8a7779.c +1 -9
index 0686112f2435..d589326099e0 100644
@@ -1,18 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * r8a7779 processor support
  *
  * Copyright (C) 2011, 2013  Renesas Solutions Corp.
  * Copyright (C) 2011  Magnus Damm
  * Copyright (C) 2013  Cogent Embedded, Inc.
- *
- * 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.
  */
 #include <linux/init.h>
 #include <linux/irq.h>
arch/arm/mach-shmobile/setup-rcar-gen2.c +1 -9
index 5ba1d215d741..69a2fd6e9c6a 100644
@@ -1,18 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * R-Car Generation 2 support
  *
  * Copyright (C) 2013  Renesas Solutions Corp.
  * Copyright (C) 2013  Magnus Damm
  * Copyright (C) 2014  Ulrich Hecht
- *
- * 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.
  */
 
 #include <linux/clk-provider.h>
arch/arm/mach-shmobile/setup-sh73a0.c +1 -9
index a25ff188e403..cc08aa752244 100644
@@ -1,18 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * sh73a0 processor support
  *
  * Copyright (C) 2010  Takashi Yoshii
  * Copyright (C) 2010  Magnus Damm
  * Copyright (C) 2008  Yoshihiro Shimoda
- *
- * 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.
  */
 #include <linux/kernel.h>
 #include <linux/init.h>
arch/arm/mach-shmobile/smp-emev2.c +1 -9
index 3a732199cf5e..3853ecea44ca 100644
@@ -1,17 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * SMP support for Emma Mobile EV2
  *
  * Copyright (C) 2012  Renesas Solutions Corp.
  * Copyright (C) 2012  Magnus Damm
- *
- * 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.
  */
 #include <linux/kernel.h>
 #include <linux/init.h>
arch/arm/mach-shmobile/smp-r8a7779.c +1 -9
index 0d3ec5c2b8fc..b7fe1f489b08 100644
@@ -1,17 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * SMP support for R-Mobile / SH-Mobile - r8a7779 portion
  *
  * Copyright (C) 2011  Renesas Solutions Corp.
  * Copyright (C) 2011  Magnus Damm
- *
- * 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.
  */
 #include <linux/kernel.h>
 #include <linux/init.h>
Signature · 1 line
2.11.0
#3 lore raw

PATCH v2 2/2 arm64: dts: renesas: r8a7796 add missing SPDX identifier

In reply to Wolfram Sang

Due to a merge conflict, this got accidently dropped. Add it again.

---
 arch/arm64/boot/dts/renesas/r8a7796.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +1 -0
index 50a8475fa837..af8196281b06 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the r8a7796 SoC
  *
Signature · 1 line
2.11.0
Acked-by Yoshihiro Shimoda Acked-by Kuninori Morimoto on v2 2/2
#4 lore raw

Re: [PATCH v2 2/2] arm64: dts: renesas: r8a7796 add missing SPDX identifier

Quoted 12 lines · Wolfram Sang

Due to a merge conflict, this got accidently dropped. Add it again.

---
 arch/arm64/boot/dts/renesas/r8a7796.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +0 -0
index 50a8475fa837..af8196281b06 100644

arch/arm64/boot/dts/renesas/r8a7796.dtsi line 4

Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a7796.dtsi +1 -0
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the r8a7796 SoC
  *

Thanks, I squashed this into the patch that I messed up. The result is as follows.

From: Wolfram Sang <[email protected]>
Subject: [PATCH] arm64: dts: renesas: convert to SPDX identifiers

---
 arch/arm64/boot/dts/renesas/r8a7795-es1-h3ulcb-kf.dts  | 5 +----
 arch/arm64/boot/dts/renesas/r8a7795-es1-h3ulcb.dts     | 5 +----
 arch/arm64/boot/dts/renesas/r8a7795-es1-salvator-x.dts | 5 +----
 arch/arm64/boot/dts/renesas/r8a7795-es1.dtsi           | 5 +----
 arch/arm64/boot/dts/renesas/r8a7795-h3ulcb-kf.dts      | 5 +----
 arch/arm64/boot/dts/renesas/r8a7795-h3ulcb.dts         | 5 +----
 arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts     | 5 +----
 arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts    | 5 +----
 arch/arm64/boot/dts/renesas/r8a7795.dtsi               | 5 +----
 arch/arm64/boot/dts/renesas/r8a7796-m3ulcb-kf.dts      | 5 +----
 arch/arm64/boot/dts/renesas/r8a7796-m3ulcb.dts         | 5 +----
 arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts     | 5 +----
 arch/arm64/boot/dts/renesas/r8a7796-salvator-xs.dts    | 5 +----
 arch/arm64/boot/dts/renesas/r8a7796.dtsi               | 5 +----
 arch/arm64/boot/dts/renesas/r8a77970-eagle.dts         | 5 +----
 arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts         | 5 +----
 arch/arm64/boot/dts/renesas/r8a77970.dtsi              | 5 +----
 arch/arm64/boot/dts/renesas/r8a77995-draak.dts         | 5 +----
 arch/arm64/boot/dts/renesas/r8a77995.dtsi              | 5 +----
 arch/arm64/boot/dts/renesas/salvator-common.dtsi       | 5 +----
 arch/arm64/boot/dts/renesas/salvator-x.dtsi            | 5 +----
 arch/arm64/boot/dts/renesas/salvator-xs.dtsi           | 5 +----
 arch/arm64/boot/dts/renesas/ulcb-kf.dtsi               | 5 +----
 arch/arm64/boot/dts/renesas/ulcb.dtsi                  | 5 +----
 24 files changed, 24 insertions(+), 96 deletions(-)
arch/arm64/boot/dts/renesas/r8a7795-es1-h3ulcb-kf.dts +1 -4
index 009cb1cb0dde..2f24dfc45617 100644
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the H3ULCB Kingfisher board
  *
  * Copyright (C) 2017 Renesas Electronics Corp.
  * Copyright (C) 2017 Cogent Embedded, Inc.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 #include "r8a7795-es1-h3ulcb.dts"
arch/arm64/boot/dts/renesas/r8a7795-es1-h3ulcb.dts +1 -4
index dd4f9b6a4254..598b98168559 100644
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the H3ULCB (R-Car Starter Kit Premier) board
  *
  * Copyright (C) 2016 Renesas Electronics Corp.
  * Copyright (C) 2016 Cogent Embedded, Inc.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 /dts-v1/;
arch/arm64/boot/dts/renesas/r8a7795-es1-salvator-x.dts +1 -4
index 3f46345a4644..6b5fa91f1d5d 100644
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the Salvator-X board with R-Car H3 ES1.x
  *
  * Copyright (C) 2015 Renesas Electronics Corp.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 /dts-v1/;
arch/arm64/boot/dts/renesas/r8a7795-es1.dtsi +1 -4
index e19dcd6cb767..fde3e84626d7 100644
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the r8a7795 ES1.x SoC
  *
  * Copyright (C) 2015 Renesas Electronics Corp.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 #include "r8a7795.dtsi"
arch/arm64/boot/dts/renesas/r8a7795-h3ulcb-kf.dts +1 -4
index 4403227c0f97..80791ed27539 100644
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the H3ULCB Kingfisher board
  *
  * Copyright (C) 2017 Renesas Electronics Corp.
  * Copyright (C) 2017 Cogent Embedded, Inc.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 #include "r8a7795-h3ulcb.dts"
arch/arm64/boot/dts/renesas/r8a7795-h3ulcb.dts +1 -4
index 0afe777973de..df50bf46406e 100644
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the H3ULCB (R-Car Starter Kit Premier) board
  *
  * Copyright (C) 2016 Renesas Electronics Corp.
  * Copyright (C) 2016 Cogent Embedded, Inc.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 /dts-v1/;
arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts +1 -4
index 0efbef5ea9b7..446822f5751c 100644
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the Salvator-X board with R-Car H3 ES2.0
  *
  * Copyright (C) 2015 Renesas Electronics Corp.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 /dts-v1/;
arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts +1 -4
index e231b5a7cbab..8ded64d0a4d5 100644
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the Salvator-X 2nd version board with R-Car H3 ES2.0
  *
  * Copyright (C) 2015-2017 Renesas Electronics Corp.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 /dts-v1/;
arch/arm64/boot/dts/renesas/r8a7795.dtsi +1 -4
index 3ac75dbf2d93..018507d78132 100644
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the r8a7795 SoC
  *
  * Copyright (C) 2015 Renesas Electronics Corp.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 #include <dt-bindings/clock/r8a7795-cpg-mssr.h>
arch/arm64/boot/dts/renesas/r8a7796-m3ulcb-kf.dts +1 -4
index de2390f009e7..2df50eb11f16 100644
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the M3ULCB Kingfisher board
  *
  * Copyright (C) 2017 Renesas Electronics Corp.
  * Copyright (C) 2017 Cogent Embedded, Inc.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 #include "r8a7796-m3ulcb.dts"
arch/arm64/boot/dts/renesas/r8a7796-m3ulcb.dts +1 -4
index daee1f1a3f68..cbd8acbf537e 100644
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the M3ULCB (R-Car Starter Kit Pro) board
  *
  * Copyright (C) 2016 Renesas Electronics Corp.
  * Copyright (C) 2016 Cogent Embedded, Inc.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 /dts-v1/;
arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts +1 -4
index 90cca09b9a5e..052d72acc862 100644
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the Salvator-X board with R-Car M3-W
  *
  * Copyright (C) 2016 Renesas Electronics Corp.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 /dts-v1/;
arch/arm64/boot/dts/renesas/r8a7796-salvator-xs.dts +1 -4
index ddf35d4cd5e5..8860be65342e 100644
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the Salvator-X 2nd version board with R-Car M3-W
  *
  * Copyright (C) 2015-2017 Renesas Electronics Corp.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 /dts-v1/;
arch/arm64/boot/dts/renesas/r8a7796.dtsi +1 -4
index 2a04635bc9ae..6436e814268a 100644
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the r8a7796 SoC
  *
  * Copyright (C) 2016-2017 Renesas Electronics Corp.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 #include <dt-bindings/clock/r8a7796-cpg-mssr.h>
arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +1 -4
index 21f9cf5c6e84..b6d53321576b 100644
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the Eagle board
  *
  * Copyright (C) 2016-2017 Renesas Electronics Corp.
  * Copyright (C) 2017 Cogent Embedded, Inc.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 /dts-v1/;
arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts +1 -4
index 9fce031a596f..8eac8ca6550b 100644
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the V3M Starter Kit board
  *
  * Copyright (C) 2017 Renesas Electronics Corp.
  * Copyright (C) 2017 Cogent Embedded, Inc.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 /dts-v1/;
arch/arm64/boot/dts/renesas/r8a77970.dtsi +1 -4
index 98a2317a16c4..04953e1e205e 100644
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the r8a77970 SoC
  *
  * Copyright (C) 2016-2017 Renesas Electronics Corp.
  * Copyright (C) 2017 Cogent Embedded, Inc.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 #include <dt-bindings/clock/r8a77970-cpg-mssr.h>
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +1 -4
index f62627ce6a72..a8e8f2669d4c 100644
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the Draak board
  *
  * Copyright (C) 2016 Renesas Electronics Corp.
  * Copyright (C) 2017 Glider bvba
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 /dts-v1/;
arch/arm64/boot/dts/renesas/r8a77995.dtsi +1 -4
index eb23c85c561b..b67d38cc4cf0 100644
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the r8a77995 SoC
  *
  * Copyright (C) 2016 Renesas Electronics Corp.
  * Copyright (C) 2017 Glider bvba
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 #include <dt-bindings/clock/r8a77995-cpg-mssr.h>
arch/arm64/boot/dts/renesas/salvator-common.dtsi +1 -4
index b3c0b6912af4..320250d708c3 100644
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for common parts of Salvator-X board variants
  *
  * Copyright (C) 2015-2016 Renesas Electronics Corp.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 /*
arch/arm64/boot/dts/renesas/salvator-x.dtsi +1 -4
index 2828482eba1c..ddee50e64632 100644
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the Salvator-X board
  *
  * Copyright (C) 2015-2016 Renesas Electronics Corp.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 #include "salvator-common.dtsi"
arch/arm64/boot/dts/renesas/salvator-xs.dtsi +1 -4
index 1ac03b7564aa..717d42758cbc 100644
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the Salvator-X 2nd version board
  *
  * Copyright (C) 2015-2017 Renesas Electronics Corp.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 #include "salvator-common.dtsi"
arch/arm64/boot/dts/renesas/ulcb-kf.dtsi +1 -4
index a4e715cbde87..8bf3091a899c 100644
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the Kingfisher (ULCB extension) board
  *
  * Copyright (C) 2017 Renesas Electronics Corp.
  * Copyright (C) 2017 Cogent Embedded, Inc.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 / {
arch/arm64/boot/dts/renesas/ulcb.dtsi +1 -4
index 702df9cbed52..83c546c0fe86 100644
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the R-Car Gen3 ULCB board
  *
  * Copyright (C) 2016 Renesas Electronics Corp.
  * Copyright (C) 2016 Cogent Embedded, Inc.
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2.  This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 #include <dt-bindings/gpio/gpio.h>
Signature · 3 lines
2.11.0

a7795-h3ulcb.dtQ
#5 lore raw

Re: [PATCH v2 2/2] arm64: dts: renesas: r8a7796 add missing SPDX identifier

Quoted 8 lines · Simon Horman
Quoted 7 lines · Wolfram Sang

Due to a merge conflict, this got accidently dropped. Add it again.

---
 arch/arm64/boot/dts/renesas/r8a7796.dtsi | 1 +
 1 file changed, 1 insertion(+)
Quoted 12 lines

arch/arm64/boot/dts/renesas/r8a7796.dtsi line 4

Quoted 9 lines
arch/arm64/boot/dts/renesas/r8a7796.dtsi +1 -0
index 50a8475fa837..af8196281b06 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the r8a7796 SoC
  *

Thanks, I squashed this into the patch that I messed up. The result is as follows.

Looks good to me, thanks Simon!

#6 lore raw

Re: [PATCH v2 2/2] arm64: dts: renesas: r8a7796 add missing SPDX identifier

Hi Simon, Wolfram

Quoted 11 lines
Quoted 9 lines

arch/arm64/boot/dts/renesas/r8a7796.dtsi line 4

Quoted 6 lines

+++ b/arch/arm64/boot/dts/renesas/r8a7796.dtsi

arch/arm64/boot/dts/renesas/r8a7796.dtsi +1 -0
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Device Tree Source for the r8a7796 SoC
  *

Thanks, I squashed this into the patch that I messed up. The result is as follows.

Looks good to me, thanks Simon!

Actually, I posted SPDX patch to ALSA ML, and one guy taught me that, Linus want to have C++ style comment for "all" source headers.

Can you find "Linus Torvalds - Nov. 25, 2017, 8:30 p.m." line at

	https://patchwork.kernel.org/patch/10062523/

Best regards
---
Kuninori Morimoto

#7 lore raw

Re: [PATCH v2 2/2] arm64: dts: renesas: r8a7796 add missing SPDX identifier

Quoted 4 lines

Actually, I posted SPDX patch to ALSA ML, and one guy taught me that, Linus want to have C++ style comment for "all" source headers.

$ less Documentation/process/license-rules.rst

===
...

2. Style:

The SPDX license identifier is added in form of a comment. The comment style depends on the file type::

C source: // SPDX-License-Identifier: <SPDX License Expression> C header: /* SPDX-License-Identifier: <SPDX License Expression> */
ASM: /* SPDX-License-Identifier: <SPDX License Expression> */
scripts: # SPDX-License-Identifier: <SPDX License Expression>
.rst: .. SPDX-License-Identifier: <SPDX License Expression>
.dts{i}: // SPDX-License-Identifier: <SPDX License Expression>

If a specific tool cannot handle the standard comment style, then the appropriate comment mechanism which the tool accepts shall be used. This is the reason for having the "/\* \*/" style comment in C header files. There was build breakage observed with generated .lds files where 'ld' failed to parse the C++ comment. This has been fixed by now, but there are still older assembler tools which cannot handle C++ style comments.

...
===

checkpatch also warns if you use C++ comment style in headers.

#8 lore raw

Re: [PATCH v2 2/2] arm64: dts: renesas: r8a7796 add missing SPDX identifier

Hi Wolfram

Quoted 1 line
$ less Documentation/process/license-rules.rst

Maybe my misunderstanding (?), but Linus request of C++ comment is not only SPDX line, but whole/all comment area on source header.

Best regards
---
Kuninori Morimoto

#9 lore raw

Re: [PATCH v2 2/2] arm64: dts: renesas: r8a7796 add missing SPDX identifier

Quoted 3 lines

Maybe my misunderstanding (?), but Linus request of C++ comment is not only SPDX line, but whole/all comment area on source header.

Ah, that's what you mean. But he also said:

"I think we should just start moving to // in general, but only when adding new ones (ie I don't want to see any automatic conversion patches)."

And here, there are no new files.

Did I understand correctly this time?

#10 lore raw

Re: [PATCH v2 2/2] arm64: dts: renesas: r8a7796 add missing SPDX identifier

Hi Wolfram

Quoted 5 lines
Quoted 2 lines

Maybe my misunderstanding (?), but Linus request of C++ comment is not only SPDX line, but whole/all comment area on source header.

Ah, that's what you mean. But he also said:

Quoted 7 lines

"I think we should just start moving to // in general, but only when adding new ones (ie I don't want to see any automatic conversion patches)."

And here, there are no new files.

Did I understand correctly this time?

OK, fair enough.

# ALSA ML is requesting me to exchange all header comment to //

# but it depends on each ML :)

Best regards
---
Kuninori Morimoto