linux-stable/arch/sparc/include/uapi/asm/utrap.h
Greg Kroah-Hartman 6f52b16c5b License cleanup: add SPDX license identifier to uapi header files with no license
Many user space API headers are missing licensing information, which
makes it hard for compliance tools to determine the correct license.

By default are files without license information under the default
license of the kernel, which is GPLV2.  Marking them GPLV2 would exclude
them from being included in non GPLV2 code, which is obviously not
intended. The user space API headers fall under the syscall exception
which 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 SPDX
license identifier.  The chosen identifier is 'GPL-2.0 WITH
Linux-syscall-note' which is the officially assigned identifier for the
Linux syscall exception.  SPDX license identifiers are 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.  See the previous patch in this series for the
methodology 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>
2017-11-02 11:19:54 +01:00

52 lines
1.5 KiB
C

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
* include/asm/utrap.h
*
* Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
*/
#ifndef __ASM_SPARC64_UTRAP_H
#define __ASM_SPARC64_UTRAP_H
#define UT_INSTRUCTION_EXCEPTION 1
#define UT_INSTRUCTION_ERROR 2
#define UT_INSTRUCTION_PROTECTION 3
#define UT_ILLTRAP_INSTRUCTION 4
#define UT_ILLEGAL_INSTRUCTION 5
#define UT_PRIVILEGED_OPCODE 6
#define UT_FP_DISABLED 7
#define UT_FP_EXCEPTION_IEEE_754 8
#define UT_FP_EXCEPTION_OTHER 9
#define UT_TAG_OVERVIEW 10
#define UT_DIVISION_BY_ZERO 11
#define UT_DATA_EXCEPTION 12
#define UT_DATA_ERROR 13
#define UT_DATA_PROTECTION 14
#define UT_MEM_ADDRESS_NOT_ALIGNED 15
#define UT_PRIVILEGED_ACTION 16
#define UT_ASYNC_DATA_ERROR 17
#define UT_TRAP_INSTRUCTION_16 18
#define UT_TRAP_INSTRUCTION_17 19
#define UT_TRAP_INSTRUCTION_18 20
#define UT_TRAP_INSTRUCTION_19 21
#define UT_TRAP_INSTRUCTION_20 22
#define UT_TRAP_INSTRUCTION_21 23
#define UT_TRAP_INSTRUCTION_22 24
#define UT_TRAP_INSTRUCTION_23 25
#define UT_TRAP_INSTRUCTION_24 26
#define UT_TRAP_INSTRUCTION_25 27
#define UT_TRAP_INSTRUCTION_26 28
#define UT_TRAP_INSTRUCTION_27 29
#define UT_TRAP_INSTRUCTION_28 30
#define UT_TRAP_INSTRUCTION_29 31
#define UT_TRAP_INSTRUCTION_30 32
#define UT_TRAP_INSTRUCTION_31 33
#define UTH_NOCHANGE (-1)
#ifndef __ASSEMBLY__
typedef int utrap_entry_t;
typedef void *utrap_handler_t;
#endif /* __ASSEMBLY__ */
#endif /* !(__ASM_SPARC64_PROCESSOR_H) */