Skip to content

Commit d9c5252

Browse files
masahir0ygregkh
authored andcommitted
treewide: add "WITH Linux-syscall-note" to SPDX tag of uapi headers
UAPI headers licensed under GPL are supposed to have exception "WITH Linux-syscall-note" so that they can be included into non-GPL user space application code. The exception note is missing in some UAPI headers. Some of them slipped in by the treewide conversion commit b244131 ("License cleanup: add SPDX GPL-2.0 license identifier to files with no license"). Just run: $ git show --oneline b244131 -- arch/x86/include/uapi/asm/ I believe they are not intentional, and should be fixed too. This patch was generated by the following script: git grep -l --not -e Linux-syscall-note --and -e SPDX-License-Identifier \ -- :arch/*/include/uapi/asm/*.h :include/uapi/ :^*/Kbuild | while read file do sed -i -e '/[[:space:]]OR[[:space:]]/s/\(GPL-[^[:space:]]*\)/(\1 WITH Linux-syscall-note)/g' \ -e '/[[:space:]]or[[:space:]]/s/\(GPL-[^[:space:]]*\)/(\1 WITH Linux-syscall-note)/g' \ -e '/[[:space:]]OR[[:space:]]/!{/[[:space:]]or[[:space:]]/!s/\(GPL-[^[:space:]]*\)/\1 WITH Linux-syscall-note/g}' $file done After this patch is applied, there are 5 UAPI headers that do not contain "WITH Linux-syscall-note". They are kept untouched since this exception applies only to GPL variants. $ git grep --not -e Linux-syscall-note --and -e SPDX-License-Identifier \ -- :arch/*/include/uapi/asm/*.h :include/uapi/ :^*/Kbuild include/uapi/drm/panfrost_drm.h:/* SPDX-License-Identifier: MIT */ include/uapi/linux/batman_adv.h:/* SPDX-License-Identifier: MIT */ include/uapi/linux/qemu_fw_cfg.h:/* SPDX-License-Identifier: BSD-3-Clause */ include/uapi/linux/vbox_err.h:/* SPDX-License-Identifier: MIT */ include/uapi/linux/virtio_iommu.h:/* SPDX-License-Identifier: BSD-3-Clause */ Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5f9e832 commit d9c5252

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+49
-49
lines changed

arch/arm64/include/uapi/asm/bpf_perf_event.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0 */
1+
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22
#ifndef _UAPI__ASM_BPF_PERF_EVENT_H__
33
#define _UAPI__ASM_BPF_PERF_EVENT_H__
44

arch/csky/include/uapi/asm/byteorder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0 */
1+
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22
// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
33

44
#ifndef __ASM_CSKY_BYTEORDER_H

arch/csky/include/uapi/asm/cachectl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0 */
1+
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22

33
#ifndef __ASM_CSKY_CACHECTL_H
44
#define __ASM_CSKY_CACHECTL_H

arch/csky/include/uapi/asm/perf_regs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0 */
1+
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22
// Copyright (C) 2019 Hangzhou C-SKY Microsystems co.,ltd.
33

44
#ifndef _ASM_CSKY_PERF_REGS_H

arch/csky/include/uapi/asm/ptrace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0 */
1+
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22
// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
33

44
#ifndef _CSKY_PTRACE_H

arch/csky/include/uapi/asm/sigcontext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0 */
1+
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22
// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
33

44
#ifndef __ASM_CSKY_SIGCONTEXT_H

arch/csky/include/uapi/asm/unistd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0 */
1+
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22
// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
33

44
#define __ARCH_WANT_SYS_CLONE

arch/nds32/include/uapi/asm/auxvec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0 */
1+
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22
// Copyright (C) 2005-2017 Andes Technology Corporation
33

44
#ifndef __ASM_AUXVEC_H

arch/nds32/include/uapi/asm/byteorder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0 */
1+
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22
// Copyright (C) 2005-2017 Andes Technology Corporation
33

44
#ifndef __NDS32_BYTEORDER_H__

arch/nds32/include/uapi/asm/cachectl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* SPDX-License-Identifier: GPL-2.0 */
1+
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22
// Copyright (C) 1994, 1995, 1996 by Ralf Baechle
33
// Copyright (C) 2005-2017 Andes Technology Corporation
44
#ifndef _ASM_CACHECTL

0 commit comments

Comments
 (0)