arm/arm64: code derived from Linux must be GPL not LGPL
Subsystems (2)
PATCH 1/1 arm/arm64: code derived from Linux must be GPL not LGPL
Also update copyrights.
Reported-by Thomas Huth <[email protected]>
Signed-off-by Andrew Jones <[email protected]>
--- arm/cstart64.S | 4 ++-- lib/arm/asm-offsets.c | 4 ++-- lib/arm/asm/barrier.h | 4 ++++ lib/arm/asm/bitops.h | 4 ++-- lib/arm/asm/pgtable-hwdef.h | 4 ++++ lib/arm/asm/pgtable.h | 4 ++++ lib/arm/asm/ptrace.h | 4 ++++ lib/arm/asm/sysreg.h | 4 ++++ lib/arm/asm/thread_info.h | 4 ++-- lib/arm/bitops.c | 6 +++--- lib/arm/eabi_compat.c | 4 ++++ lib/arm64/asm-offsets.c | 4 ++-- lib/arm64/asm/barrier.h | 4 ++++ lib/arm64/asm/bitops.h | 4 ++-- lib/arm64/asm/esr.h | 4 ++++ lib/arm64/asm/io.h | 4 ++++ lib/arm64/asm/page.h | 4 ++-- lib/arm64/asm/pgtable-hwdef.h | 5 +++++ lib/arm64/asm/pgtable.h | 4 ++++ lib/arm64/asm/ptrace.h | 4 ++++ lib/asm-generic/io.h | 4 ++-- lib/asm-generic/page.h | 4 ++-- lib/bitops.h | 6 +++--- lib/virtio-mmio.c | 4 ++-- lib/virtio-mmio.h | 4 ++-- lib/virtio.c | 4 ++-- lib/virtio.h | 4 ++-- 27 files changed, 81 insertions(+), 32 deletions(-)
arm/cstart64.S +2 -2
@@ -1,9 +1,9 @@ /* * Boot entry point and assembler functions for aarch64 tests. * - * Copyright (C) 2014, Red Hat Inc, Andrew Jones <[email protected]> + * Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> * - * This work is licensed under the terms of the GNU LGPL, version 2. + * This work is licensed under the terms of the GNU GPL, version 2. */ #define __ASSEMBLY__ #include <asm/asm-offsets.h>
lib/arm/asm-offsets.c +2 -2
@@ -1,9 +1,9 @@/* * Adapted from arch/arm/kernel/asm-offsets.c * -* Copyright (C) 2014, Red Hat Inc, Andrew Jones <[email protected]> +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> * -* This work is licensed under the terms of the GNU LGPL, version 2. +* This work is licensed under the terms of the GNU GPL, version 2. */ #include <libcflat.h> #include <kbuild.h>
lib/arm/asm/barrier.h +4 -0
@@ -2,6 +2,10 @@#define _ASMARM_BARRIER_H_/* * Adapted from arch/arm/include/asm/barrier.h +* +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. */ #define sev () asm volatile("sev" : : : "memory")
lib/arm/asm/bitops.h +2 -2
@@ -4,9 +4,9 @@* Adapated from * arch/arm/lib/bitops.h * -* Copyright (C) 2015, Red Hat Inc, Andrew Jones <[email protected]> +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> * -* This work is licensed under the terms of the GNU LGPL, version 2. +* This work is licensed under the terms of the GNU GPL, version 2. */ #ifndef _BITOPS_H_
lib/arm/asm/pgtable-hwdef.h +4 -0
@@ -3,6 +3,10 @@/* * From arch/arm/include/asm/pgtable-3level.h * arch/arm/include/asm/pgtable-3level-hwdef.h +* +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. */ #define PTRS_PER_PGD 4
lib/arm/asm/pgtable.h +4 -0
@@ -9,6 +9,10 @@* Note: some Linux function APIs have been modified. Nothing crazy, * but if a function took, for example, an mm_struct, then * that was either removed or replaced. +* +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. */ #include <alloc.h> #include <asm/setup.h>
lib/arm/asm/ptrace.h +4 -0
@@ -4,6 +4,10 @@* Adapted from Linux kernel headers * arch/arm/include/asm/ptrace.h * arch/arm/include/uapi/asm/ptrace.h +* +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. */ /*
lib/arm/asm/sysreg.h +4 -0
@@ -3,6 +3,10 @@/* * From the Linux kernel arch/arm/include/asm/cp15.h * +* This work is licensed under the terms of the GNU GPL, version 2. +*/ + +/* * CR1 bits (CP#15 CR1) */ #define CR_M (1 << 0)/* MMU enable */
lib/arm/asm/thread_info.h +2 -2
@@ -3,9 +3,9 @@/* * Adapted from arch/arm64/include/asm/thread_info.h * -* Copyright (C) 2015, Red Hat Inc, Andrew Jones <[email protected]> +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> * -* This work is licensed under the terms of the GNU LGPL, version 2. +* This work is licensed under the terms of the GNU GPL, version 2. */ #include <asm/page.h>
lib/arm/bitops.c +3 -3
@@ -1,10 +1,10 @@/* -* Adapated from +* Adapted from * include/asm-generic/bitops/atomic.h * -* Copyright (C) 2015, Red Hat Inc, Andrew Jones <[email protected]> +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> * -* This work is licensed under the terms of the GNU LGPL, version 2. +* This work is licensed under the terms of the GNU GPL, version 2. */ #include <bitops.h> #include <asm/barrier.h>
lib/arm/eabi_compat.c +4 -0
@@ -1,5 +1,9 @@/* * Adapted from u-boot's arch/arm/lib/eabi_compat.c +* +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. */ #include <libcflat.h>
lib/arm64/asm-offsets.c +2 -2
@@ -1,9 +1,9 @@/* * Adapted from arch/arm64/kernel/asm-offsets.c * -* Copyright (C) 2014, Red Hat Inc, Andrew Jones <[email protected]> +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> * -* This work is licensed under the terms of the GNU LGPL, version 2. +* This work is licensed under the terms of the GNU GPL, version 2. */ #include <libcflat.h> #include <kbuild.h>
lib/arm64/asm/barrier.h +4 -0
@@ -2,6 +2,10 @@#define _ASMARM64_BARRIER_H_/* * From Linux arch/arm64/include/asm/barrier.h +* +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. */ #define sev () asm volatile("sev" : : : "memory")
lib/arm64/asm/bitops.h +2 -2
@@ -4,9 +4,9 @@* Adapated from * arch/arm64/lib/bitops.S * -* Copyright (C) 2015, Red Hat Inc, Andrew Jones <[email protected]> +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> * -* This work is licensed under the terms of the GNU LGPL, version 2. +* This work is licensed under the terms of the GNU GPL, version 2. */ #ifndef _BITOPS_H_
lib/arm64/asm/esr.h +4 -0
@@ -1,5 +1,9 @@/* * From Linux kernel arch/arm64/include/asm/esr.h +* +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. */ #ifndef _ASMARM64_ESR_H_#define _ASMARM64_ESR_H_
lib/arm64/asm/io.h +4 -0
@@ -3,6 +3,10 @@/* * From Linux arch/arm64/include/asm/io.h * Generic IO read/write. These perform native-endian accesses. +* +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. */ #include <libcflat.h> #include <asm/barrier.h>
lib/arm64/asm/page.h +2 -2
@@ -6,9 +6,9 @@* include/asm-generic/pgtable-nopud.h * include/asm-generic/pgtable-nopmd.h * -* Copyright (C) 2014, Red Hat Inc, Andrew Jones <[email protected]> +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> * -* This work is licensed under the terms of the GNU LGPL, version 2. +* This work is licensed under the terms of the GNU GPL, version 2. */ #include <linux/const.h>
lib/arm64/asm/pgtable-hwdef.h +5 -0
@@ -3,7 +3,12 @@/* * From arch/arm64/include/asm/pgtable-hwdef.h * arch/arm64/include/asm/memory.h +* +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. */ +#define UL (x) _AC(x, UL)#define PTRS_PER_PTE (1 << (PAGE_SHIFT - 3))
lib/arm64/asm/pgtable.h +4 -0
@@ -9,6 +9,10 @@* Note: some Linux function APIs have been modified. Nothing crazy, * but if a function took, for example, an mm_struct, then * that was either removed or replaced. +* +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. */ #include <alloc.h> #include <asm/setup.h>
lib/arm64/asm/ptrace.h +4 -0
@@ -4,6 +4,10 @@* Adapted from Linux kernel headers * arch/arm64/include/asm/ptrace.h * arch/arm64/include/uapi/asm/ptrace.h +* +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. */ /* Current Exception Level values, as contained in CurrentEL */
lib/asm-generic/io.h +2 -2
@@ -5,9 +5,9 @@* adapted from the Linux kernel's include/asm-generic/io.h * and arch/arm/include/asm/io.h * -* Copyright (C) 2014, Red Hat Inc, Andrew Jones <[email protected]> +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> * -* This work is licensed under the terms of the GNU LGPL, version 2. +* This work is licensed under the terms of the GNU GPL, version 2. */ #include "libcflat.h" #include "asm/page.h"
lib/asm-generic/page.h +2 -2
@@ -4,9 +4,9 @@* asm-generic/page.h * adapted from the Linux kernel's include/asm-generic/page.h * -* Copyright (C) 2014, Red Hat Inc, Andrew Jones <[email protected]> +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> * -* This work is licensed under the terms of the GNU LGPL, version 2. +* This work is licensed under the terms of the GNU GPL, version 2. */ #include <linux/const.h>
lib/bitops.h +3 -3
@@ -2,12 +2,12 @@#define _BITOPS_H_/* -* Adapated from +* Adapted from * include/linux/bitops.h * -* Copyright (C) 2015, Red Hat Inc, Andrew Jones <[email protected]> +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> * -* This work is licensed under the terms of the GNU LGPL, version 2. +* This work is licensed under the terms of the GNU GPL, version 2. */ #define BITS_PER_LONG_LONG 64
lib/virtio-mmio.c +2 -2
@@ -1,9 +1,9 @@/* * virtqueue support adapted from the Linux kernel. * -* Copyright (C) 2014, Red Hat Inc, Andrew Jones <[email protected]> +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> * -* This work is licensed under the terms of the GNU LGPL, version 2. +* This work is licensed under the terms of the GNU GPL, version 2. */ #include "libcflat.h" #include "devicetree.h"
lib/virtio-mmio.h +2 -2
@@ -3,9 +3,9 @@/* * A minimal implementation of virtio-mmio. Adapted from the Linux Kernel. * -* Copyright (C) 2014, Red Hat Inc, Andrew Jones <[email protected]> +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> * -* This work is licensed under the terms of the GNU LGPL, version 2. +* This work is licensed under the terms of the GNU GPL, version 2. */ #include "libcflat.h" #include "asm/page.h"
lib/virtio.c +2 -2
@@ -1,9 +1,9 @@/* * virtqueue support adapted from the Linux kernel. * -* Copyright (C) 2014, Red Hat Inc, Andrew Jones <[email protected]> +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> * -* This work is licensed under the terms of the GNU LGPL, version 2. +* This work is licensed under the terms of the GNU GPL, version 2. */ #include "libcflat.h" #include "asm/io.h"
lib/virtio.h +2 -2
@@ -4,9 +4,9 @@* A minimal implementation of virtio. * Structures adapted from the Linux Kernel. * -* Copyright (C) 2014, Red Hat Inc, Andrew Jones <[email protected]> +* Copyright (C) 2017, Red Hat Inc, Andrew Jones <[email protected]> * -* This work is licensed under the terms of the GNU LGPL, version 2. +* This work is licensed under the terms of the GNU GPL, version 2. */ #include "libcflat.h"
Signature · 1 line
2.9.4
2017-05-29 17:48+0200, Andrew Jones:
Quoted 5 lines
Also update copyrights.
Reported-by Thomas Huth <[email protected]>Signed-off-by Andrew Jones <[email protected]>---
Fixed two more "Adapated" while applying, thanks.