e50db34efd
I get a few build failures along the lines of ./arch/riscv/include/uapi/asm/sigcontext.h:19:36: error: field ‘v_state’ has incomplete type 19 | struct __riscv_v_ext_state v_state; | ^~~~~~~ ./arch/riscv/include/uapi/asm/sigcontext.h:32:49: error: field ‘sc_extdesc’ has incomplete type 32 | struct __riscv_extra_ext_header sc_extdesc; The V structures in question are defined for !assembly, so let's just do so for the others. Fixes: 8ee0b41898fa ("riscv: signal: Add sigcontext save/restore for vector") Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20230619172101.18692-1-palmer@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
41 lines
926 B
C
41 lines
926 B
C
/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
|
|
/*
|
|
* Copyright (C) 2012 Regents of the University of California
|
|
*/
|
|
|
|
#ifndef _UAPI_ASM_RISCV_SIGCONTEXT_H
|
|
#define _UAPI_ASM_RISCV_SIGCONTEXT_H
|
|
|
|
#include <asm/ptrace.h>
|
|
|
|
/* The Magic number for signal context frame header. */
|
|
#define RISCV_V_MAGIC 0x53465457
|
|
#define END_MAGIC 0x0
|
|
|
|
/* The size of END signal context header. */
|
|
#define END_HDR_SIZE 0x0
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
struct __sc_riscv_v_state {
|
|
struct __riscv_v_ext_state v_state;
|
|
} __attribute__((aligned(16)));
|
|
|
|
/*
|
|
* Signal context structure
|
|
*
|
|
* This contains the context saved before a signal handler is invoked;
|
|
* it is restored by sys_sigreturn / sys_rt_sigreturn.
|
|
*/
|
|
struct sigcontext {
|
|
struct user_regs_struct sc_regs;
|
|
union {
|
|
union __riscv_fp_state sc_fpregs;
|
|
struct __riscv_extra_ext_header sc_extdesc;
|
|
};
|
|
};
|
|
|
|
#endif /*!__ASSEMBLY__*/
|
|
|
|
#endif /* _UAPI_ASM_RISCV_SIGCONTEXT_H */
|