Add missing GPL references of some asm headers
---
Hi list,
I don't want to be a nitpicker, nor don't have the right to mention the header licenses, but I have trouble with some asm headers not having GPL reference. For example, I was going to make use of <asm/cpu.h> in U-Boot project, but the patch was rejected due to the lack of GPL references.
I've looked closely into all <asm/[foo/]bar.h> files, it seems there're lots of headers without GPL reference. Basically, I'm not going to talk about all of them. Some are board-dependent, some are used as pipe- or proxy-method, etc. These headers might not be worth doing so.
However, some asm headers which include core MIPS defines, useful macros, useful inline assemblers, etc. will be also useful for other projects than Linux. And it's highly appreciated if such header has proper GPL referense in it.
I've created the following patch for an example. Is there any chance such changes are accepted? Any comments are appreciated.
Thanks in advance,
Shinya
include/asm-mips/asmmacro-32.h | 4 ++++ include/asm-mips/asmmacro-64.h | 4 ++++ include/asm-mips/bugs.h | 4 ++++ include/asm-mips/cmp.h | 10 +++++++--- include/asm-mips/cpu.h | 4 ++++ include/asm-mips/dma.h | 4 ++++ include/asm-mips/highmem.h | 4 ++++ include/asm-mips/mips_mt.h | 4 ++++ include/asm-mips/mipsmtregs.h | 5 +++++ include/asm-mips/smtc.h | 9 ++++++--- include/asm-mips/smtc_ipi.h | 4 ++++ include/asm-mips/smtc_proc.h | 5 +++++ include/asm-mips/smvp.h | 10 +++++++--- include/asm-mips/thread_info.h | 7 ++++++- 14 files changed, 68 insertions(+), 10 deletions(-)
include/asm-mips/asmmacro-32.h +0 -0
@@ -1,6 +1,10 @@
/*
* asmmacro.h: Assembler macros to make things easier to read.
*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
* Copyright (C) 1996 David S. Miller ([email protected])
* Copyright (C) 1998, 1999, 2003 Ralf Baechle
*/
include/asm-mips/asmmacro-64.h +0 -0
@@ -1,6 +1,10 @@
/*
* asmmacro.h: Assembler macros to make things easier to read.
*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
* Copyright (C) 1996 David S. Miller ([email protected])
* Copyright (C) 1998, 1999 Ralf Baechle
* Copyright (C) 1999 Silicon Graphics, Inc.
include/asm-mips/bugs.h +0 -0
@@ -1,6 +1,10 @@
/*
* This is included by init/main.c to check for architecture-dependent bugs. *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
* Copyright (C) 2007 Maciej W. Rozycki
*
* Needs:
include/asm-mips/cmp.h +0 -3
@@ -1,9 +1,13 @@ -#ifndef _ASM_CMP_H -#define _ASM_CMP_H -
/*
* Definitions for CMP multitasking on MIPS cores
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
*/
+#ifndef _ASM_CMP_H
+#define _ASM_CMP_H
+
struct task_struct;
extern void cmp_smp_setup(void);
include/asm-mips/cpu.h +4 -0
@@ -2,6 +2,10 @@* cpu.h: Values of the PRId register used to match up * various MIPS cpu types. * +* This file is subject to the terms and conditions of the GNU General Public +* License. See the file "COPYING" in the main directory of this archive +* for more details. +* * Copyright (C) 1996 David S. Miller ([email protected]) * Copyright (C) 2004 Maciej W. Rozycki */
include/asm-mips/dma.h +4 -0
@@ -4,6 +4,10 @@* High DMA channel support & info by Hannu Savolainen * and John Boyd, Nov. 1992. * +* This file is subject to the terms and conditions of the GNU General Public +* License. See the file "COPYING" in the main directory of this archive +* for more details. +* * NOTE: all this is true *only* for ISA/EISA expansions on Mips boards * and can only be used for expansion cards. Onboard DMA controllers, such * as the R4030 on Jazz boards behave totally different!
include/asm-mips/highmem.h +0 -0
@@ -1,6 +1,10 @@
/*
* highmem.h: virtual kernel memory mappings for high memory
*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
* Used in CONFIG_HIGHMEM systems for memory pages which
* are not addressable by direct kernel virtual addresses.
*
include/asm-mips/mips_mt.h +4 -0
@@ -2,6 +2,10 @@* Definitions and decalrations for MIPS MT support * that are common between SMTC, VSMP, and/or AP/SP * kernel models. +* +* This file is subject to the terms and conditions of the GNU General Public +* License. See the file "COPYING" in the main directory of this archive +* for more details. */
#ifndef __ASM_MIPS_MT_H
#define __ASM_MIPS_MT_H
include/asm-mips/mipsmtregs.h +0 -0
@@ -1,5 +1,10 @@
/*
* MT regs definitions, follows on from mipsregs.h
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
* Copyright (C) 2004 - 2005 MIPS Technologies, Inc. All rights reserved.
* Elizabeth Clarke et. al.
*
include/asm-mips/smtc.h +0 -3
@@ -1,9 +1,12 @@ -#ifndef _ASM_SMTC_MT_H -#define _ASM_SMTC_MT_H -
/*
* Definitions for SMTC multitasking on MIPS MT cores
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
*/
+#ifndef _ASM_SMTC_MT_H
+#define _ASM_SMTC_MT_H
#include <asm/mips_mt.h>
include/asm-mips/smtc_ipi.h +0 -0
@@ -1,5 +1,9 @@
/*
* Definitions used in MIPS MT SMTC "Interprocessor Interrupt" code.
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
*/
#ifndef __ASM_SMTC_IPI_H
#define __ASM_SMTC_IPI_H
include/asm-mips/smtc_proc.h +0 -0
@@ -1,5 +1,10 @@
/*
* Definitions for SMTC /proc entries
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
* Copyright(C) 2005 MIPS Technologies Inc.
*/
#ifndef __ASM_SMTC_PROC_H
include/asm-mips/smvp.h +0 -3
@@ -1,9 +1,13 @@ -#ifndef _ASM_SMVP_H -#define _ASM_SMVP_H -
/*
* Definitions for SMVP multitasking on MIPS MT cores
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
*/
+#ifndef _ASM_SMVP_H
+#define _ASM_SMVP_H
+
struct task_struct;
extern void smvp_smp_setup(void);
include/asm-mips/thread_info.h +6 -1
@@ -1,4 +1,9 @@ -/* thread_info.h: MIPS low-level thread information +/* +* thread_info.h: MIPS low-level thread information +* +* This file is subject to the terms and conditions of the GNU General Public +* License. See the file "COPYING" in the main directory of this archive +* for more details. * * Copyright (C) 2002 David Howells ([email protected]) * - Incorporating suggestions made by Linus Torvalds and Dave Miller