1
0
Fork 0
remarkable-linux/arch/powerpc/boot/dts
Greg Kroah-Hartman b24413180f License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Many source files in the tree are missing licensing information, which
makes it harder for compliance tools to determine the correct license.

By default all files without license information are under the default
license of the kernel, which is GPL version 2.

Update the files which contain no license information with the 'GPL-2.0'
SPDX license identifier.  The SPDX identifier is a legally binding
shorthand, which can be used instead of the full boiler plate text.

This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.

How this work was done:

Patches were generated and checked against linux-4.14-rc6 for a subset of
the use cases:
 - file had no licensing information it it.
 - file was a */uapi/* one with no licensing information in it,
 - file was a */uapi/* one with existing licensing information,

Further patches will be generated in subsequent months to fix up cases
where non-standard license headers were used, and references to license
had to be inferred by heuristics based on keywords.

The analysis to determine which SPDX License Identifier to be applied to
a file was done in a spreadsheet of side by side results from of the
output of two independent scanners (ScanCode & Windriver) producing SPDX
tag:value files created by Philippe Ombredanne.  Philippe prepared the
base worksheet, and did an initial spot review of a few 1000 files.

The 4.13 kernel was the starting point of the analysis with 60,537 files
assessed.  Kate Stewart did a file by file comparison of the scanner
results in the spreadsheet to determine which SPDX license identifier(s)
to be applied to the file. She confirmed any determination that was not
immediately clear with lawyers working with the Linux Foundation.

Criteria used to select files for SPDX license identifier tagging was:
 - Files considered eligible had to be source code files.
 - Make and config files were included as candidates if they contained >5
   lines of source
 - File already had some variant of a license header in it (even if <5
   lines).

All documentation files were explicitly excluded.

The following heuristics were used to determine which SPDX license
identifiers to apply.

 - when both scanners couldn't find any license traces, file was
   considered to have no license information in it, and the top level
   COPYING file license applied.

   For non */uapi/* files that summary was:

   SPDX license identifier                            # files
   ---------------------------------------------------|-------
   GPL-2.0                                              11139

   and resulted in the first patch in this series.

   If that file was a */uapi/* path one, it was "GPL-2.0 WITH
   Linux-syscall-note" otherwise it was "GPL-2.0".  Results of that was:

   SPDX license identifier                            # files
   ---------------------------------------------------|-------
   GPL-2.0 WITH Linux-syscall-note                        930

   and resulted in the second patch in this series.

 - if a file had some form of licensing information in it, and was one
   of the */uapi/* ones, it was denoted with the Linux-syscall-note if
   any GPL family license was found in the file or had no licensing in
   it (per prior point).  Results summary:

   SPDX license identifier                            # files
   ---------------------------------------------------|------
   GPL-2.0 WITH Linux-syscall-note                       270
   GPL-2.0+ WITH Linux-syscall-note                      169
   ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause)    21
   ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)    17
   LGPL-2.1+ WITH Linux-syscall-note                      15
   GPL-1.0+ WITH Linux-syscall-note                       14
   ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause)    5
   LGPL-2.0+ WITH Linux-syscall-note                       4
   LGPL-2.1 WITH Linux-syscall-note                        3
   ((GPL-2.0 WITH Linux-syscall-note) OR MIT)              3
   ((GPL-2.0 WITH Linux-syscall-note) AND MIT)             1

   and that resulted in the third patch in this series.

 - when the two scanners agreed on the detected license(s), that became
   the concluded license(s).

 - when there was disagreement between the two scanners (one detected a
   license but the other didn't, or they both detected different
   licenses) a manual inspection of the file occurred.

 - In most cases a manual inspection of the information in the file
   resulted in a clear resolution of the license that should apply (and
   which scanner probably needed to revisit its heuristics).

 - When it was not immediately clear, the license identifier was
   confirmed with lawyers working with the Linux Foundation.

 - If there was any question as to the appropriate license identifier,
   the file was flagged for further research and to be revisited later
   in time.

In total, over 70 hours of logged manual review was done on the
spreadsheet to determine the SPDX license identifiers to apply to the
source files by Kate, Philippe, Thomas and, in some cases, confirmation
by lawyers working with the Linux Foundation.

Kate also obtained a third independent scan of the 4.13 code base from
FOSSology, and compared selected files where the other two scanners
disagreed against that SPDX file, to see if there was new insights.  The
Windriver scanner is based on an older version of FOSSology in part, so
they are related.

Thomas did random spot checks in about 500 files from the spreadsheets
for the uapi headers and agreed with SPDX license identifier in the
files he inspected. For the non-uapi files Thomas did random spot checks
in about 15000 files.

In initial set of patches against 4.14-rc6, 3 files were found to have
copy/paste license identifier errors, and have been fixed to reflect the
correct identifier.

Additionally Philippe spent 10 hours this week doing a detailed manual
inspection and review of the 12,461 patched files from the initial patch
version early this week with:
 - a full scancode scan run, collecting the matched texts, detected
   license ids and scores
 - reviewing anything where there was a license detected (about 500+
   files) to ensure that the applied SPDX license was correct
 - reviewing anything where there was no detection but the patch license
   was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
   SPDX license was correct

This produced a worksheet with 20 files needing minor correction.  This
worksheet was then exported into 3 different .csv files for the
different types of files to be modified.

These .csv files were then reviewed by Greg.  Thomas wrote a script to
parse the csv files and add the proper SPDX tag to the file, in the
format that the file expected.  This script was further refined by Greg
based on the output to detect more types of files automatically and to
distinguish between header and source .c files (which need different
comment types.)  Finally Greg ran the script using the .csv files to
generate the patches.

Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-02 11:10:55 +01:00
..
fsl powerpc updates for 4.13 2017-07-07 13:55:45 -07:00
a3m071.dts powerpc/5200: Use the gpt* labels to simplify mpc5200 dts files 2013-02-11 21:48:09 +00:00
a4m072.dts powerpc/5200: Use the gpt* labels to simplify mpc5200 dts files 2013-02-11 21:48:09 +00:00
ac14xx.dts powerpc/dts: Use #include "..." to include local DT 2017-07-03 23:00:33 +10:00
acadia.dts powerpc/40x: AMCC PowerPC 405EZ Acadia DTS 2008-10-17 10:31:18 -04:00
adder875-redboot.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
adder875-uboot.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
akebono.dts powerpc/dts: fix STMicroelectronics compatible strings 2016-07-22 14:53:05 -05:00
amigaone.dts powerpc/amigaone: Limit ISA I/O range to 4k in the device tree 2009-06-26 14:37:23 +10:00
arches.dts powerpc/44x: Update Arches dts 2010-02-10 08:21:16 -05:00
asp834x-redboot.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
bamboo.dts powerpc/4xx: Add support for ISA holes on 4xx PCI/X/E 2008-12-04 08:02:19 -05:00
bluestone.dts powerpc/dts: fix STMicroelectronics compatible strings 2016-07-22 14:53:05 -05:00
c2k.dts dt/bindings: Remove device_type "serial" from marvell,mv64360-mpsc 2014-01-16 16:31:31 +00:00
canyonlands.dts powerpc/dts: fix STMicroelectronics compatible strings 2016-07-22 14:53:05 -05:00
charon.dts powerpc/5200: add support for charon board 2011-09-29 15:34:51 +02:00
cm5200.dts powerpc/5200: Use the gpt* labels to simplify mpc5200 dts files 2013-02-11 21:48:09 +00:00
currituck.dts powerpc/dts: fix STMicroelectronics compatible strings 2016-07-22 14:53:05 -05:00
digsy_mtc.dts powerpc/5200: Add generic compatible string for I2C EEPROM 2017-06-28 13:08:13 +10:00
ebony.dts [POWERPC] Convert remaining dts-v0 files to v1 2008-05-29 07:06:56 -05:00
eiger.dts powerpc/4xx: Add 16K FIFO size DTS entries on supported platforms 2009-11-04 09:32:10 -05:00
ep88xc.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
ep405.dts [POWERPC] Convert remaining dts-v0 files to v1 2008-05-29 07:06:56 -05:00
ep8248e.dts dt/bindings: remove users of device_type "mdio" 2014-01-16 16:25:56 +00:00
fsp2.dts powerpc/44x/fsp2: Enable eMMC arasan for fsp2 platform 2017-08-10 22:30:04 +10:00
gamecube.dts powerpc: gamecube: device tree 2009-12-12 22:24:26 -07:00
glacier.dts powerpc/dts: fix STMicroelectronics compatible strings 2016-07-22 14:53:05 -05:00
haleakala.dts powerpc/4xx: Add 16K FIFO size DTS entries on supported platforms 2009-11-04 09:32:10 -05:00
holly.dts dt/bindings: remove users of device_type "mdio" 2014-01-16 16:25:56 +00:00
hotfoot.dts powerpc/405: Fix missing #{address,size}-cells in i2c node 2011-01-03 16:02:51 -07:00
icon.dts powerpc/dts: fix STMicroelectronics compatible strings 2016-07-22 14:53:05 -05:00
iss4xx-mpic.dts powerpc/4xx: Simple platform for the ISS 4xx simulator 2010-05-05 11:11:56 -04:00
iss4xx.dts powerpc/4xx: Simple platform for the ISS 4xx simulator 2010-05-05 11:11:56 -04:00
katmai.dts powerpc/4xx: Adding PCIe MSI support 2011-05-26 15:00:37 +10:00
kilauea.dts powerpc/4xx: Fix warning in kilauea.dtb 2013-12-02 14:06:56 +11:00
klondike.dts powerpc/40x: Add APM8018X SOC support 2011-11-30 10:02:15 -05:00
kmeter1.dts powerpc/fsl: update compatiable on fsl 16550 uart nodes 2012-01-04 15:38:40 -06:00
ksi8560.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
kuroboxHD.dts powerpc/fsl: update compatiable on fsl 16550 uart nodes 2012-01-04 15:38:40 -06:00
kuroboxHG.dts powerpc/fsl: update compatiable on fsl 16550 uart nodes 2012-01-04 15:38:40 -06:00
lite5200.dts powerpc/5200: fix lite5200 ethernet phy address 2010-06-15 14:47:04 -06:00
lite5200b.dts powerpc/5200: Add Lite5200 on-board LEDs as devices 2013-02-11 21:24:53 +00:00
makalu.dts powerpc/4xx: Add 16K FIFO size DTS entries on supported platforms 2009-11-04 09:32:10 -05:00
media5200.dts powerpc/5200: Use the gpt* labels to simplify mpc5200 dts files 2013-02-11 21:48:09 +00:00
mgcoge.dts powerpc/82xx: add SPI support for mgcoge 2012-07-10 07:07:20 -05:00
motionpro.dts powerpc/5200: Use the gpt* labels to simplify mpc5200 dts files 2013-02-11 21:48:09 +00:00
mpc832x_mds.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
mpc832x_rdb.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
mpc834x_mds.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
mpc836x_mds.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
mpc836x_rdk.dts powerpc/dts: fix STMicroelectronics compatible strings 2016-07-22 14:53:05 -05:00
mpc866ads.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
mpc885ads.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
mpc5121.dtsi powerpc/512x: add a device tree binding for LocalPlus Bus FIFO 2015-10-22 15:20:47 +02:00
mpc5121ads.dts powerpc/dts: Use #include "..." to include local DT 2017-07-03 23:00:33 +10:00
mpc5125twr.dts powerpc/512x: add a device tree binding for LocalPlus Bus FIFO 2015-10-22 15:20:47 +02:00
mpc5200b.dtsi powerpc/5200: Add Lite5200 on-board LEDs as devices 2013-02-11 21:24:53 +00:00
mpc7448hpc2.dts dt/bindings: remove users of device_type "mdio" 2014-01-16 16:25:56 +00:00
mpc8272ads.dts dt/bindings: remove users of device_type "mdio" 2014-01-16 16:25:56 +00:00
mpc8308_p1m.dts powerpc/83xx: Add generic compatible string for I2C EEPROM 2017-06-28 13:08:14 +10:00
mpc8308rdb.dts dma: mpc512x: separate 'compatible' values for MPC512x and MPC8308 2014-05-02 22:36:21 +05:30
mpc8313erdb.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
mpc8315erdb.dts powerpc: use the new LED disk activity trigger 2016-06-27 08:58:40 +02:00
mpc8349emitx.dts powerpc/83xx: Add generic compatible string for I2C EEPROM 2017-06-28 13:08:14 +10:00
mpc8349emitxgp.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
mpc8377_mds.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
mpc8377_rdb.dts powerpc/83xx: Add generic compatible string for I2C EEPROM 2017-06-28 13:08:14 +10:00
mpc8377_wlan.dts powerpc/83xx: Add generic compatible string for I2C EEPROM 2017-06-28 13:08:14 +10:00
mpc8378_mds.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
mpc8378_rdb.dts powerpc/83xx: Add generic compatible string for I2C EEPROM 2017-06-28 13:08:14 +10:00
mpc8379_mds.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
mpc8379_rdb.dts powerpc/83xx: Add generic compatible string for I2C EEPROM 2017-06-28 13:08:14 +10:00
mpc8610_hpcd.dts powerpc/fsl: update compatiable on fsl 16550 uart nodes 2012-01-04 15:38:40 -06:00
mucmc52.dts powerpc/5200: Use the gpt* labels to simplify mpc5200 dts files 2013-02-11 21:48:09 +00:00
mvme5100.dts powerpc/embedded6xx: Add support for Motorola/Emerson MVME5100 2014-01-09 17:52:20 -06:00
o2d.dts powerpc/mpc5200: add dts files for ifm camera machines 2012-09-14 10:10:01 +02:00
o2d.dtsi powerpc/5200: Use the gpt* labels to simplify mpc5200 dts files 2013-02-11 21:48:09 +00:00
o2d300.dts powerpc/mpc5200: add dts files for ifm camera machines 2012-09-14 10:10:01 +02:00
o2dnt2.dts powerpc/mpc5200: add dts files for ifm camera machines 2012-09-14 10:10:01 +02:00
o2i.dts powerpc/mpc5200: add dts files for ifm camera machines 2012-09-14 10:10:01 +02:00
o2mnt.dts powerpc/mpc5200: add dts files for ifm camera machines 2012-09-14 10:10:01 +02:00
o3dnt.dts powerpc/mpc5200: add dts files for ifm camera machines 2012-09-14 10:10:01 +02:00
obs600.dts powerpc: Add support for OpenBlockS 600 2011-12-08 14:22:52 +11:00
pcm030.dts powerpc/5200: Add generic compatible string for I2C EEPROM 2017-06-28 13:08:13 +10:00
pcm032.dts powerpc/5200: Add generic compatible string for I2C EEPROM 2017-06-28 13:08:13 +10:00
pdm360ng.dts powerpc/dts: Use #include "..." to include local DT 2017-07-03 23:00:33 +10:00
pq2fads.dts dt/bindings: remove users of device_type "mdio" 2014-01-16 16:25:56 +00:00
ps3.dts [POWERPC] Convert remaining dts-v0 files to v1 2008-05-29 07:06:56 -05:00
rainier.dts ibm_newemac: Parameterize EMAC Multicast Match Handling 2008-07-09 16:30:46 +10:00
redwood.dts powerpc/4xx: Adding PCIe MSI support 2011-05-26 15:00:37 +10:00
sam440ep.dts powerpc/dts: fix STMicroelectronics compatible strings 2016-07-22 14:53:05 -05:00
sbc8349.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
sbc8548-altflash.dts powerpc/85xx: add alternate dts file for sbc8548 boot via SODIMM 2013-02-13 07:49:00 -06:00
sbc8548-post.dtsi dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
sbc8548-pre.dtsi powerpc/85xx: split sbc8548 dts file into pre and post chunks 2013-02-13 07:48:58 -06:00
sbc8548.dts powerpc/85xx: update sbc8548 flash information to match recent u-boot 2013-02-13 07:48:59 -06:00
sequoia.dts powerpc/sequoia: Fix NAND partitions not to overlap 2017-05-30 14:59:51 +10:00
socrates.dts powerpc/fsl: update compatiable on fsl 16550 uart nodes 2012-01-04 15:38:40 -06:00
storcenter.dts powerpc/fsl: update compatiable on fsl 16550 uart nodes 2012-01-04 15:38:40 -06:00
stx_gp3_8560.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
stxssa8555.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
taishan.dts powerpc/44x: Use correct phy-address dt nodes on taishan.dts 2011-07-12 09:35:58 -04:00
tqm8xx.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
tqm5200.dts powerpc/boot/dts: drop obsolete 'fsl5200-clocking' 2009-10-15 09:58:27 -06:00
tqm8540.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
tqm8541.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
tqm8548-bigflash.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
tqm8548.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
tqm8555.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
tqm8560.dts dt/bindings: Remove all references to device_type "ethernet-phy" 2014-01-16 11:11:51 +00:00
uc101.dts powerpc/5200: Use the gpt* labels to simplify mpc5200 dts files 2013-02-11 21:48:09 +00:00
virtex440-ml507.dts powerpc/dts/virtex440: Declare address/size-cells for phy device 2013-12-02 14:06:57 +11:00
virtex440-ml510.dts License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
walnut.dts [POWERPC] Convert remaining dts-v0 files to v1 2008-05-29 07:06:56 -05:00
warp.dts powerpc/44x: Add generic compatible string for I2C EEPROM 2017-06-28 13:08:15 +10:00
wii.dts powerpc: wii: device tree 2009-12-12 22:24:29 -07:00
xcalibur1501.dts powerpc/dts: fix STMicroelectronics compatible strings 2016-07-22 14:53:05 -05:00
xpedite5200.dts powerpc/dts: fix STMicroelectronics compatible strings 2016-07-22 14:53:05 -05:00
xpedite5200_xmon.dts powerpc/dts: fix STMicroelectronics compatible strings 2016-07-22 14:53:05 -05:00
xpedite5301.dts powerpc/dts: fix STMicroelectronics compatible strings 2016-07-22 14:53:05 -05:00
xpedite5330.dts powerpc/dts: fix STMicroelectronics compatible strings 2016-07-22 14:53:05 -05:00
xpedite5370.dts powerpc/dts: fix STMicroelectronics compatible strings 2016-07-22 14:53:05 -05:00
yosemite.dts powerpc/44x: Add NOR flash device to Yosemite dts 2011-08-11 13:50:42 -04:00