Commit b1e03298 authored by Roman Stratiienko's avatar Roman Stratiienko Committed by Jan Kiszka
Browse files

kernel: cobalt: replace siginfo_t with kernel_siginfo_t

siginfo_t can't be used in kernel-space starting from v4.20-rc1 commit
ae7795bc6187 ("signal: Distinguish between kernel_siginfo and siginfo")
replace all siginfo_t to kernel_siginfo_t and create wrapper for kernel < v4.20
Signed-off-by: default avatarRoman Stratiienko <>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent 20e0ba04
......@@ -49,4 +49,8 @@
#define ipipe_root_nr_syscalls(ti) NR_syscalls
typedef siginfo_t kernel_siginfo_t;
......@@ -583,7 +583,7 @@ static inline void clear_threadinfo(void)
static inline int disable_ondemand_memory(void)
struct task_struct *p = current;
siginfo_t si;
kernel_siginfo_t si;
if ((p->mm->def_flags & VM_LOCKED) == 0) {
memset(&si, 0, sizeof(si));
......@@ -2070,7 +2070,7 @@ void xnthread_relax(int notify, int reason)
struct xnthread *thread = xnthread_current();
struct task_struct *p = current;
int cpu __maybe_unused;
siginfo_t si;
kernel_siginfo_t si;
......@@ -2183,7 +2183,7 @@ static void lostage_task_signal(struct ipipe_work_header *work)
struct lostage_signal *rq;
struct xnthread *thread;
struct task_struct *p;
siginfo_t si;
kernel_siginfo_t si;
int signo;
rq = container_of(work, struct lostage_signal, work);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment