License cleanup: add SPDX license identifier to uapi header files with a licenseMany user space API headers have licensing information, which is eitherincomplete, badly formatted or just a shortha
License cleanup: add SPDX license identifier to uapi header files with a licenseMany user space API headers have licensing information, which is eitherincomplete, badly formatted or just a shorthand for referring to thelicense under which the file is supposed to be. This makes it hard forcompliance tools to determine the correct license.Update these files with an SPDX license identifier. The identifier waschosen based on the license information in the file.GPL/LGPL licensed headers get the matching GPL/LGPL SPDX licenseidentifier with the added 'WITH Linux-syscall-note' exception, which isthe officially assigned exception identifier for the kernel syscallexception: NOTE! This copyright does *not* cover user programs that use kernel services by normal system calls - this is merely considered normal use of the kernel, and does *not* fall under the heading of "derived work".This exception makes it possible to include GPL headers into non GPLcode, without confusing license compliance tools.Headers which have either explicit dual licensing or are just licensedunder a non GPL license are updated with the corresponding SPDXidentifier and the GPLv2 with syscall exception identifier. The formatis: ((GPL-2.0 WITH Linux-syscall-note) OR SPDX-ID-OF-OTHER-LICENSE)SPDX license identifiers are a legally binding shorthand, which can beused instead of the full boiler plate text. The update does not removeexisting license information as this has to be done on a case by casebasis and the copyright holders might have to be consulted. This willhappen in a separate step.This patch is based on work done by Thomas Gleixner and Kate Stewart andPhilippe Ombredanne. See the previous patch in this series for themethodology of how this patch was researched.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>
show more ...
License cleanup: add SPDX license identifier to uapi header files with no licenseMany user space API headers are missing licensing information, whichmakes it hard for compliance tools to determine
License cleanup: add SPDX license identifier to uapi header files with no licenseMany user space API headers are missing licensing information, whichmakes it hard for compliance tools to determine the correct license.By default are files without license information under the defaultlicense of the kernel, which is GPLV2. Marking them GPLV2 would excludethem from being included in non GPLV2 code, which is obviously notintended. The user space API headers fall under the syscall exceptionwhich is in the kernels COPYING file: NOTE! This copyright does *not* cover user programs that use kernel services by normal system calls - this is merely considered normal use of the kernel, and does *not* fall under the heading of "derived work".otherwise syscall usage would not be possible.Update the files which contain no license information with an SPDXlicense identifier. The chosen identifier is 'GPL-2.0 WITHLinux-syscall-note' which is the officially assigned identifier for theLinux syscall exception. SPDX license identifiers are a legally bindingshorthand, which can be used instead of the full boiler plate text.This patch is based on work done by Thomas Gleixner and Kate Stewart andPhilippe Ombredanne. See the previous patch in this series for themethodology of how this patch was researched.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>
uapi: export all headers under uapi directoriesRegularly, when a new header is created in include/uapi/, the developerforgets to add it in the corresponding Kbuild file. This error is usuallydete
uapi: export all headers under uapi directoriesRegularly, when a new header is created in include/uapi/, the developerforgets to add it in the corresponding Kbuild file. This error is usuallydetected after the release is out.In fact, all headers under uapi directories should be exported, thus it'suseless to have an exhaustive list.After this patch, the following files, which were not exported, are nowexported (with make headers_install_all):asm-arc/kvm_para.hasm-arc/ucontext.hasm-blackfin/shmparam.hasm-blackfin/ucontext.hasm-c6x/shmparam.hasm-c6x/ucontext.hasm-cris/kvm_para.hasm-h8300/shmparam.hasm-h8300/ucontext.hasm-hexagon/shmparam.hasm-m32r/kvm_para.hasm-m68k/kvm_para.hasm-m68k/shmparam.hasm-metag/kvm_para.hasm-metag/shmparam.hasm-metag/ucontext.hasm-mips/hwcap.hasm-mips/reg.hasm-mips/ucontext.hasm-nios2/kvm_para.hasm-nios2/ucontext.hasm-openrisc/shmparam.hasm-parisc/kvm_para.hasm-powerpc/perf_regs.hasm-sh/kvm_para.hasm-sh/ucontext.hasm-tile/shmparam.hasm-unicore32/shmparam.hasm-unicore32/ucontext.hasm-x86/hwcap2.hasm-xtensa/kvm_para.hdrm/armada_drm.hdrm/etnaviv_drm.hdrm/vgem_drm.hlinux/aspeed-lpc-ctrl.hlinux/auto_dev-ioctl.hlinux/bcache.hlinux/btrfs_tree.hlinux/can/vxcan.hlinux/cifs/cifs_mount.hlinux/coresight-stm.hlinux/cryptouser.hlinux/fsmap.hlinux/genwqe/genwqe_card.hlinux/hash_info.hlinux/kcm.hlinux/kcov.hlinux/kfd_ioctl.hlinux/lightnvm.hlinux/module.hlinux/nbd-netlink.hlinux/nilfs2_api.hlinux/nilfs2_ondisk.hlinux/nsfs.hlinux/pr.hlinux/qrtr.hlinux/rpmsg.hlinux/sched/types.hlinux/sed-opal.hlinux/smc.hlinux/smc_diag.hlinux/stm.hlinux/switchtec_ioctl.hlinux/vfio_ccw.hlinux/wil6210_uapi.hrdma/bnxt_re-abi.hNote that I have removed from this list the files which are generated in everyexported directories (like .install or .install.cmd).Thanks to Julien Floret <julien.floret@6wind.com> for the tip to get allsubdirs with a pure makefile command.For the record, note that exported files for asm directories are a mix offiles listed by: - include/uapi/asm-generic/Kbuild.asm; - arch/<arch>/include/uapi/asm/Kbuild; - arch/<arch>/include/asm/Kbuild.Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>Acked-by: Russell King <rmk+kernel@armlinux.org.uk>Acked-by: Mark Salter <msalter@redhat.com>Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
UAPI: (Scripted) Disintegrate include/videoSigned-off-by: David Howells <dhowells@redhat.com>Acked-by: Arnd Bergmann <arnd@arndb.de>Acked-by: Thomas Gleixner <tglx@linutronix.de>Acked-by: Michae
UAPI: (Scripted) Disintegrate include/videoSigned-off-by: David Howells <dhowells@redhat.com>Acked-by: Arnd Bergmann <arnd@arndb.de>Acked-by: Thomas Gleixner <tglx@linutronix.de>Acked-by: Michael Kerrisk <mtk.manpages@gmail.com>Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>Acked-by: Dave Jones <davej@redhat.com>
UAPI: (Scripted) Set up UAPI Kbuild filesSet up empty UAPI Kbuild files to be populated by the header splitter.Signed-off-by: David Howells <dhowells@redhat.com>Acked-by: Arnd Bergmann <arnd@arn
UAPI: (Scripted) Set up UAPI Kbuild filesSet up empty UAPI Kbuild files to be populated by the header splitter.Signed-off-by: David Howells <dhowells@redhat.com>Acked-by: Arnd Bergmann <arnd@arndb.de>Acked-by: Thomas Gleixner <tglx@linutronix.de>Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>Acked-by: Dave Jones <davej@redhat.com>