linux_dsm_epyc7002/arch/arm/mach-s3c24xx
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
..
include/mach License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
anubis.h ARM: S3C24XX: make anubis-cpld, anubis-irq and anubis-map local 2013-01-10 10:45:34 -08:00
bast-ide.c ARM: S3C24XX: make bast-cpld.h, bast-irq.h and bast-map.h local 2013-01-10 10:45:35 -08:00
bast-irq.c ARM: s3c24xx: Constify few integer tables 2016-12-29 15:29:11 +02:00
bast.h ARM: S3C24XX: make bast-cpld.h, bast-irq.h and bast-map.h local 2013-01-10 10:45:35 -08:00
common-smdk.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
common-smdk.h ARM: S3C24XX: plat/common-smdk.h local 2013-03-05 10:42:47 +09:00
common.c ARM: s3c24xx: Remove non-existing CONFIG_CPU_S3C2413 2017-07-20 07:17:43 +02:00
common.h ARM: S3C24XX: remove separate restart code 2014-09-14 02:43:09 +09:00
cpufreq-utils.c ARM: S3C24XX: remove SAMSUNG_CLOCK remnants after ccf conversion 2014-05-13 08:00:46 +09:00
fb-core.h ARM: SAMSUNG: local fb-core header in mach-s3c24xx 2015-07-30 02:00:35 +09:00
gta02.h ARM: S3C24XX: make gta02.h local 2013-01-10 10:45:35 -08:00
h1940-bluetooth.c leds: leds-gpio: Convert gpio_blink_set() to use GPIO descriptors 2014-11-04 21:58:25 +01:00
h1940.h leds: leds-gpio: Convert gpio_blink_set() to use GPIO descriptors 2014-11-04 21:58:25 +01:00
iotiming-s3c2410.c ARM: s3c24xx: Constify few integer tables 2016-12-29 15:29:11 +02:00
iotiming-s3c2412.c ARM: SAMSUNG: Remove legacy clock code 2014-07-19 04:24:59 +09:00
irq-pm.c ARM: s3c: simplify s3c_irqwake_{e,}intallow definition 2015-12-31 17:26:18 +01:00
Kconfig ARM: s3c24xx: make H1940BT depend on RFKILL 2017-07-20 20:26:24 +02:00
mach-amlm5900.c ARM: S3C24XX: remove separate restart code 2014-09-14 02:43:09 +09:00
mach-anubis.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
mach-at2440evb.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
mach-bast.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
mach-gta02.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
mach-h1940.c ARM: s3c24xx: switch to gpiochip_add_data() 2016-02-19 09:51:42 +01:00
mach-jive.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
mach-mini2440.c ARM/arm64: SoC platform updates for v4.14 2017-09-10 20:35:46 -07:00
mach-n30.c ARM: SAMSUNG: Fix typos 2016-05-30 09:13:11 +02:00
mach-nexcoder.c ARM: S3C24XX: remove separate restart code 2014-09-14 02:43:09 +09:00
mach-osiris-dvs.c mfd: tps65010: Move header file out of I2C realm 2017-08-15 08:27:22 +01:00
mach-osiris.c MTD changes for 4.14: 2017-09-09 14:48:21 -07:00
mach-otom.c ARM: S3C24XX: remove separate restart code 2014-09-14 02:43:09 +09:00
mach-qt2410.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
mach-rx1950.c mtd: s3c2410: make ecc mode configurable via platform data 2016-11-07 14:48:35 +01:00
mach-rx3715.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
mach-s3c2416-dt.c arm: Remove unnecessary of_platform_populate with default match table 2016-06-23 14:58:37 -05:00
mach-smdk2410.c ARM: S3C24XX: remove separate restart code 2014-09-14 02:43:09 +09:00
mach-smdk2413.c ARM: S3C24XX: remove separate restart code 2014-09-14 02:43:09 +09:00
mach-smdk2416.c ARM: S3C24XX: remove separate restart code 2014-09-14 02:43:09 +09:00
mach-smdk2440.c ARM: S3C24XX: remove separate restart code 2014-09-14 02:43:09 +09:00
mach-smdk2443.c ARM: s3c24xx: Remove non-existing SND_SOC_SMDK2443_WM9710 2017-07-20 07:18:10 +02:00
mach-tct_hammer.c ARM: S3C24XX: remove separate restart code 2014-09-14 02:43:09 +09:00
mach-vr1000.c ARM: S3C24XX: remove separate restart code 2014-09-14 02:43:09 +09:00
mach-vstms.c mtd: nand: Rename nand.h into rawnand.h 2017-08-13 10:11:49 +02:00
Makefile ARM: SAMSUNG: make local setup-camif in mach-s3c24xx 2015-07-30 01:48:44 +09:00
Makefile.boot
nand-core.h ARM: SAMSUNG: local nand-core header in mach-s3c24xx 2015-07-30 02:00:35 +09:00
osiris.h ARM: S3C24XX: make osiris-cpld.h and osiris-map.h local 2013-01-10 10:45:36 -08:00
otom.h ARM: S3C24XX: make otom-map.h local 2013-01-10 10:45:36 -08:00
pll-s3c2410.c ARM: s3c24xx: Sort cpufreq tables 2016-06-03 13:54:36 +02:00
pll-s3c2440-12000000.c ARM: s3c24xx: Sort cpufreq tables 2016-06-03 13:54:36 +02:00
pll-s3c2440-16934400.c ARM: s3c24xx: Sort cpufreq tables 2016-06-03 13:54:36 +02:00
pm-h1940.S ARM: samsung: fix assembly syntax for new gas 2013-02-14 15:04:34 +01:00
pm-s3c2410.c ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol 2017-02-28 11:06:10 +00:00
pm-s3c2412.c ARM: s3c24xx: Constify wake_irqs 2016-12-29 15:41:08 +02:00
pm-s3c2416.c ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol 2017-02-28 11:06:10 +00:00
pm.c ARM: S3C24XX: fix building without PM_SLEEP 2015-02-27 05:50:22 +09:00
regs-dsc.h ARM: S3C24XX: Remove unused GPIO drive strength register definitions 2013-04-08 21:37:07 +09:00
regs-mem.h ARM: S3C24XX: header mach/regs-mem.h local 2013-02-04 10:31:43 -08:00
s3c244x.c ARM: SAMSUNG: local nand-core header in mach-s3c24xx 2015-07-30 02:00:35 +09:00
s3c2410.c ARM: S3C24XX: fix building without PM_SLEEP 2015-02-27 05:50:22 +09:00
s3c2412-power.h ARM: S3C24XX: header mach/regs-power.h local 2013-02-04 10:31:39 -08:00
s3c2412.c ARM: SAMSUNG: local nand-core header in mach-s3c24xx 2015-07-30 02:00:35 +09:00
s3c2416.c ARM: SAMSUNG: local spi-core header in mach-s3c24xx 2015-07-30 02:00:35 +09:00
s3c2440.c ARM: S3C24XX: fix building without PM_SLEEP 2015-02-27 05:50:22 +09:00
s3c2442.c ARM: S3C24XX: fix building without PM_SLEEP 2015-02-27 05:50:22 +09:00
s3c2443.c ARM: SAMSUNG: local spi-core header in mach-s3c24xx 2015-07-30 02:00:35 +09:00
setup-camif.c ARM: SAMSUNG: make local setup-camif in mach-s3c24xx 2015-07-30 01:48:44 +09:00
setup-i2c.c ARM: S3C[24|64]xx: move includes back under <mach/> scope 2014-01-14 15:24:06 +01:00
setup-sdhci-gpio.c ARM: S3C[24|64]xx: move includes back under <mach/> scope 2014-01-14 15:24:06 +01:00
setup-spi.c ARM: SAMSUNG: Remove pdev pointer parameter from spi gpio setup functions 2012-07-13 15:23:46 +09:00
setup-ts.c ARM: s3c24xx: explicit dependency on <plat/gpio-cfg.h> 2014-01-14 15:24:54 +01:00
simtec-audio.c ARM: S3C24XX: make bast-cpld.h, bast-irq.h and bast-map.h local 2013-01-10 10:45:35 -08:00
simtec-nor.c ARM: S3C24XX: make bast-cpld.h, bast-irq.h and bast-map.h local 2013-01-10 10:45:35 -08:00
simtec-pm.c ARM: S3C24XX: header mach/regs-mem.h local 2013-02-04 10:31:43 -08:00
simtec-usb.c ARM: SoC cleanups for 3.14 2014-01-23 18:36:55 -08:00
simtec.h
sleep-s3c2410.S ARM: convert all "mov.* pc, reg" to "bx reg" for ARMv6+ 2014-07-18 12:29:04 +01:00
sleep-s3c2412.S ARM: convert all "mov.* pc, reg" to "bx reg" for ARMv6+ 2014-07-18 12:29:04 +01:00
sleep.S ARM: s3c24xx: Do not confuse local define with Kconfig 2017-07-20 07:18:29 +02:00
spi-core.h ARM: SAMSUNG: local spi-core header in mach-s3c24xx 2015-07-30 02:00:35 +09:00
vr1000.h ARM: S3C24XX: make vr1000-cpld.h, vr1000-irq.h and vr1000-map.h local 2013-01-10 10:45:37 -08:00