Commit 18ab00b7 authored by Fino Meng's avatar Fino Meng Committed by Jan Kiszka

cobalt/kernel: fix compile error for incompatible pointer type

Signed-off-by: default avatarFino Meng <fino.meng@linux.intel.com>
Signed-off-by: default avatarMingliang Hu <mingliang.hu@intel.com>
[Jan: reformat]
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 844c5738
......@@ -58,7 +58,9 @@ do { \
#define xnstat_exectime_set_current(sched, new_account) \
({ \
xnstat_exectime_t *__prev; \
__prev = (xnstat_exectime_t *)atomic_long_xchg(&(sched)->current_account, (long)(new_account)); \
__prev = (xnstat_exectime_t *) \
atomic_long_xchg((atomic_long_t *)&(sched)->current_account, \
(long)(new_account)); \
__prev; \
})
......
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