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

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 <roman.stratiienko@globallogic.com>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 20e0ba04
......@@ -49,4 +49,8 @@
#define ipipe_root_nr_syscalls(ti) NR_syscalls
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
typedef siginfo_t kernel_siginfo_t;
#endif
#endif /* !_COBALT_LINUX_WRAPPERS_H */
......@@ -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;
primary_mode_only();
......@@ -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