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-01 14:07:57 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2005-04-16 22:20:36 +00:00
|
|
|
#
|
|
|
|
# Makefile for misc devices that really don't fit anywhere else.
|
|
|
|
#
|
|
|
|
|
2006-10-02 09:17:36 +00:00
|
|
|
obj-$(CONFIG_IBM_ASM) += ibmasm/
|
2018-04-25 21:32:57 +00:00
|
|
|
obj-$(CONFIG_IBMVMC) += ibmvmc.o
|
2009-12-15 02:00:15 +00:00
|
|
|
obj-$(CONFIG_AD525X_DPOT) += ad525x_dpot.o
|
ad525x_dpot: add support for SPI parts
Split the bus logic out into separate files so that we can handle I2C and
SPI busses independently. The new SPI bus logic brings in support for a
lot more parts:
AD5160, AD5161, AD5162, AD5165, AD5200, AD5201, AD5203,
AD5204, AD5206, AD5207, AD5231, AD5232, AD5233, AD5235,
AD5260, AD5262, AD5263, AD5290, AD5291, AD5292, AD5293,
AD7376, AD8400, AD8402, AD8403, ADN2850
[randy.dunlap@oracle.com: fix ad525X_dpot build]
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-05-24 21:33:14 +00:00
|
|
|
obj-$(CONFIG_AD525X_DPOT_I2C) += ad525x_dpot-i2c.o
|
|
|
|
obj-$(CONFIG_AD525X_DPOT_SPI) += ad525x_dpot-spi.o
|
2011-06-17 22:13:33 +00:00
|
|
|
obj-$(CONFIG_INTEL_MID_PTI) += pti.o
|
2007-10-17 06:26:11 +00:00
|
|
|
obj-$(CONFIG_ATMEL_SSC) += atmel-ssc.o
|
2008-02-23 01:23:23 +00:00
|
|
|
obj-$(CONFIG_ATMEL_TCLIB) += atmel_tclib.o
|
2013-03-20 23:21:21 +00:00
|
|
|
obj-$(CONFIG_DUMMY_IRQ) += dummy-irq.o
|
2008-11-12 21:27:04 +00:00
|
|
|
obj-$(CONFIG_ICS932S401) += ics932s401.o
|
2018-03-06 22:58:09 +00:00
|
|
|
obj-$(CONFIG_LKDTM) += lkdtm/
|
2006-10-04 09:15:38 +00:00
|
|
|
obj-$(CONFIG_TIFM_CORE) += tifm_core.o
|
|
|
|
obj-$(CONFIG_TIFM_7XX1) += tifm_7xx1.o
|
2007-05-08 07:31:45 +00:00
|
|
|
obj-$(CONFIG_PHANTOM) += phantom.o
|
2015-07-16 23:55:32 +00:00
|
|
|
obj-$(CONFIG_QCOM_COINCELL) += qcom-coincell.o
|
2019-02-08 17:11:24 +00:00
|
|
|
obj-$(CONFIG_QCOM_FASTRPC) += fastrpc.o
|
2010-10-26 21:22:37 +00:00
|
|
|
obj-$(CONFIG_SENSORS_BH1770) += bh1770glc.o
|
2010-10-26 21:22:38 +00:00
|
|
|
obj-$(CONFIG_SENSORS_APDS990X) += apds990x.o
|
2006-10-17 07:09:25 +00:00
|
|
|
obj-$(CONFIG_SGI_IOC4) += ioc4.o
|
2008-02-03 21:40:56 +00:00
|
|
|
obj-$(CONFIG_ENCLOSURE_SERVICES) += enclosure.o
|
2008-03-07 22:34:17 +00:00
|
|
|
obj-$(CONFIG_KGDB_TESTS) += kgdbts.o
|
2008-04-22 19:46:56 +00:00
|
|
|
obj-$(CONFIG_SGI_XP) += sgi-xp/
|
2008-07-30 05:34:01 +00:00
|
|
|
obj-$(CONFIG_SGI_GRU) += sgi-gru/
|
2009-12-15 02:00:37 +00:00
|
|
|
obj-$(CONFIG_CS5535_MFGPT) += cs5535-mfgpt.o
|
2008-07-02 15:38:53 +00:00
|
|
|
obj-$(CONFIG_HP_ILO) += hpilo.o
|
2010-10-26 21:22:41 +00:00
|
|
|
obj-$(CONFIG_APDS9802ALS) += apds9802als.o
|
2009-03-31 22:23:53 +00:00
|
|
|
obj-$(CONFIG_ISL29003) += isl29003.o
|
2010-10-26 21:22:40 +00:00
|
|
|
obj-$(CONFIG_ISL29020) += isl29020.o
|
2010-03-13 19:56:54 +00:00
|
|
|
obj-$(CONFIG_SENSORS_TSL2550) += tsl2550.o
|
2009-12-06 16:06:16 +00:00
|
|
|
obj-$(CONFIG_DS1682) += ds1682.o
|
2008-11-12 21:27:12 +00:00
|
|
|
obj-$(CONFIG_C2PORT) += c2port/
|
2010-08-10 00:21:05 +00:00
|
|
|
obj-$(CONFIG_HMC6352) += hmc6352.o
|
2009-01-26 20:19:53 +00:00
|
|
|
obj-y += eeprom/
|
2009-05-22 18:33:59 +00:00
|
|
|
obj-y += cb710/
|
2011-03-22 23:33:58 +00:00
|
|
|
obj-$(CONFIG_SPEAR13XX_PCIE_GADGET) += spear13xx_pcie_gadget.o
|
2010-09-22 20:04:57 +00:00
|
|
|
obj-$(CONFIG_VMWARE_BALLOON) += vmw_balloon.o
|
2010-09-01 12:16:30 +00:00
|
|
|
obj-$(CONFIG_PCH_PHUB) += pch_phub.o
|
2010-10-06 16:18:15 +00:00
|
|
|
obj-y += ti-st/
|
2011-03-21 16:59:36 +00:00
|
|
|
obj-y += lis3lv02d/
|
2011-07-26 00:13:07 +00:00
|
|
|
obj-$(CONFIG_USB_SWITCH_FSA9480) += fsa9480.o
|
2011-09-23 14:17:41 +00:00
|
|
|
obj-$(CONFIG_ALTERA_STAPL) +=altera-stapl/
|
2012-05-01 22:23:38 +00:00
|
|
|
obj-$(CONFIG_INTEL_MEI) += mei/
|
2013-01-08 23:55:59 +00:00
|
|
|
obj-$(CONFIG_VMWARE_VMCI) += vmw_vmci/
|
2012-12-07 08:06:59 +00:00
|
|
|
obj-$(CONFIG_LATTICE_ECP3_CONFIG) += lattice-ecp3-config.o
|
2013-04-29 23:17:12 +00:00
|
|
|
obj-$(CONFIG_SRAM) += sram.o
|
2017-01-12 20:52:20 +00:00
|
|
|
obj-$(CONFIG_SRAM_EXEC) += sram-exec.o
|
2013-09-05 23:41:31 +00:00
|
|
|
obj-y += mic/
|
2013-12-09 12:30:44 +00:00
|
|
|
obj-$(CONFIG_GENWQE) += genwqe/
|
2014-02-28 22:08:42 +00:00
|
|
|
obj-$(CONFIG_ECHO) += echo/
|
2014-04-23 09:49:31 +00:00
|
|
|
obj-$(CONFIG_VEXPRESS_SYSCFG) += vexpress-syscfg.o
|
2014-10-08 08:55:01 +00:00
|
|
|
obj-$(CONFIG_CXL_BASE) += cxl/
|
drivers/misc: Add Aspeed LPC control driver
In order to manage server systems, there is typically another processor
known as a BMC (Baseboard Management Controller) which is responsible
for powering the server and other various elements, sometimes fans,
often the system flash.
The Aspeed BMC family which is what is used on OpenPOWER machines and a
number of x86 as well is typically connected to the host via an LPC
(Low Pin Count) bus (among others).
The LPC bus is an ISA bus on steroids. It's generally used by the
BMC chip to provide the host with access to the system flash (via MEM/FW
cycles) that contains the BIOS or other host firmware along with a
number of SuperIO-style IOs (via IO space) such as UARTs, IPMI
controllers.
On the BMC chip side, this is all configured via a bunch of registers
whose content is related to a given policy of what devices are exposed
at a per system level, which is system/vendor specific, so we don't want
to bolt that into the BMC kernel. This started with a need to provide
something nicer than /dev/mem for user space to configure these things.
One important aspect of the configuration is how the MEM/FW space is
exposed to the host (ie, the x86 or POWER). Some registers in that
bridge can define a window remapping all or portion of the LPC MEM/FW
space to a portion of the BMC internal bus, with no specific limits
imposed in HW.
I think it makes sense to ensure that this window is configured by a
kernel driver that can apply some serious sanity checks on what it is
configured to map.
In practice, user space wants to control this by flipping the mapping
between essentially two types of portions of the BMC address space:
- The flash space. This is a region of the BMC MMIO space that
more/less directly maps the system flash (at least for reads, writes
are somewhat more complicated).
- One (or more) reserved area(s) of the BMC physical memory.
The latter is needed for a number of things, such as avoiding letting
the host manipulate the innards of the BMC flash controller via some
evil backdoor, we want to do flash updates by routing the window to a
portion of memory (under control of a mailbox protocol via some
separate set of registers) which the host can use to write new data in
bulk and then request the BMC to flash it. There are other uses, such
as allowing the host to boot from an in-memory flash image rather than
the one in flash (very handy for continuous integration and test, the
BMC can just download new images).
It is important to note that due to the way the Aspeed chip lets the
kernel configure the mapping between host LPC addresses and BMC ram
addresses the offset within the window must be a multiple of size.
Not doing so will fragment the accessible space rather than simply
moving 'zero' upwards. This is caused by the nature of HICR8 being a
mask and the way host LPC addresses are translated.
Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-02-17 03:28:49 +00:00
|
|
|
obj-$(CONFIG_ASPEED_LPC_CTRL) += aspeed-lpc-ctrl.o
|
2017-06-02 21:53:22 +00:00
|
|
|
obj-$(CONFIG_ASPEED_LPC_SNOOP) += aspeed-lpc-snoop.o
|
2017-03-27 09:45:14 +00:00
|
|
|
obj-$(CONFIG_PCI_ENDPOINT_TEST) += pci_endpoint_test.o
|
2018-01-23 11:31:45 +00:00
|
|
|
obj-$(CONFIG_OCXL) += ocxl/
|
Char/Misc driver patches for 4.21-rc1
Here is the big set of char and misc driver patches for 4.21-rc1.
Lots of different types of driver things in here, as this tree seems to
be the "collection of various driver subsystems not big enough to have
their own git tree" lately.
Anyway, some highlights of the changes in here:
- binderfs: is it a rule that all driver subsystems will eventually
grow to have their own filesystem? Binder now has one to handle the
use of it in containerized systems. This was discussed at the
Plumbers conference a few months ago and knocked into mergable shape
very fast by Christian Brauner. Who also has signed up to be
another binder maintainer, showing a distinct lack of good judgement :)
- binder updates and fixes
- mei driver updates
- fpga driver updates and additions
- thunderbolt driver updates
- soundwire driver updates
- extcon driver updates
- nvmem driver updates
- hyper-v driver updates
- coresight driver updates
- pvpanic driver additions and reworking for more device support
- lp driver updates. Yes really, it's _finally_ moved to the proper
parallal port driver model, something I never thought I would see
happen. Good stuff.
- other tiny driver updates and fixes.
All of these have been in linux-next for a while with no reported
issues.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-----BEGIN PGP SIGNATURE-----
iG0EABECAC0WIQT0tgzFv3jCIUoxPcsxR9QN2y37KQUCXCZCUA8cZ3JlZ0Brcm9h
aC5jb20ACgkQMUfUDdst+ymF9QCgx/Z8Fj1qzGVGrIE4flXOi7pxOrgAoMqJEWtU
ywwL8M9suKDz7cZT9fWQ
=xxr6
-----END PGP SIGNATURE-----
Merge tag 'char-misc-4.21-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc driver updates from Greg KH:
"Here is the big set of char and misc driver patches for 4.21-rc1.
Lots of different types of driver things in here, as this tree seems
to be the "collection of various driver subsystems not big enough to
have their own git tree" lately.
Anyway, some highlights of the changes in here:
- binderfs: is it a rule that all driver subsystems will eventually
grow to have their own filesystem? Binder now has one to handle the
use of it in containerized systems.
This was discussed at the Plumbers conference a few months ago and
knocked into mergable shape very fast by Christian Brauner. Who
also has signed up to be another binder maintainer, showing a
distinct lack of good judgement :)
- binder updates and fixes
- mei driver updates
- fpga driver updates and additions
- thunderbolt driver updates
- soundwire driver updates
- extcon driver updates
- nvmem driver updates
- hyper-v driver updates
- coresight driver updates
- pvpanic driver additions and reworking for more device support
- lp driver updates. Yes really, it's _finally_ moved to the proper
parallal port driver model, something I never thought I would see
happen. Good stuff.
- other tiny driver updates and fixes.
All of these have been in linux-next for a while with no reported
issues"
* tag 'char-misc-4.21-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (116 commits)
MAINTAINERS: add another Android binder maintainer
intel_th: msu: Fix an off-by-one in attribute store
stm class: Add a reference to the SyS-T document
stm class: Fix a module refcount leak in policy creation error path
char: lp: use new parport device model
char: lp: properly count the lp devices
char: lp: use first unused lp number while registering
char: lp: detach the device when parallel port is removed
char: lp: introduce list to save port number
bus: qcom: remove duplicated include from qcom-ebi2.c
VMCI: Use memdup_user() rather than duplicating its implementation
char/rtc: Use of_node_name_eq for node name comparisons
misc: mic: fix a DMA pool free failure
ptp: fix an IS_ERR() vs NULL check
genwqe: Fix size check
binder: implement binderfs
binder: fix use-after-free due to ksys_close() during fdget()
bus: fsl-mc: remove duplicated include files
bus: fsl-mc: explicitly define the fsl_mc_command endianness
misc: ti-st: make array read_ver_cmd static, shrinks object size
...
2018-12-29 04:54:57 +00:00
|
|
|
obj-y += cardreader/
|
2018-11-06 14:57:12 +00:00
|
|
|
obj-$(CONFIG_PVPANIC) += pvpanic.o
|
2019-02-15 22:39:11 +00:00
|
|
|
obj-$(CONFIG_HABANA_AI) += habanalabs/
|