mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 16:25:07 +07:00
d9c5252295
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 commitb24413180f
("License cleanup: add SPDX GPL-2.0 license identifier to files with no license"). Just run: $ git show --onelineb24413180f
-- 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 <yamada.masahiro@socionext.com> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
35 lines
1.3 KiB
C
35 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
|
|
/*
|
|
* Copyright (C) 2012 ARM Ltd.
|
|
* Copyright (C) 2017 SiFive, Inc.
|
|
*
|
|
* This file was copied from arch/arm64/include/uapi/asm/ucontext.h
|
|
*/
|
|
#ifndef _UAPI__ASM_UCONTEXT_H
|
|
#define _UAPI__ASM_UCONTEXT_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct ucontext {
|
|
unsigned long uc_flags;
|
|
struct ucontext *uc_link;
|
|
stack_t uc_stack;
|
|
sigset_t uc_sigmask;
|
|
/* There's some padding here to allow sigset_t to be expanded in the
|
|
* future. Though this is unlikely, other architectures put uc_sigmask
|
|
* at the end of this structure and explicitly state it can be
|
|
* expanded, so we didn't want to box ourselves in here. */
|
|
__u8 __unused[1024 / 8 - sizeof(sigset_t)];
|
|
/* We can't put uc_sigmask at the end of this structure because we need
|
|
* to be able to expand sigcontext in the future. For example, the
|
|
* vector ISA extension will almost certainly add ISA state. We want
|
|
* to ensure all user-visible ISA state can be saved and restored via a
|
|
* ucontext, so we're putting this at the end in order to allow for
|
|
* infinite extensibility. Since we know this will be extended and we
|
|
* assume sigset_t won't be extended an extreme amount, we're
|
|
* prioritizing this. */
|
|
struct sigcontext uc_mcontext;
|
|
};
|
|
|
|
#endif /* _UAPI__ASM_UCONTEXT_H */
|