From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 18 Sep 2020 00:56:39 +0800 From: Fino Meng Subject: [PATCH 3/4] cobalt/kernel: fix compile error for incompatible pointer type Message-ID: <20200917165636.GA6221@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org Signed-off-by: Fino Meng --- include/cobalt/kernel/stat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cobalt/kernel/stat.h b/include/cobalt/kernel/stat.h index b857cd19f..be529ad72 100644 --- a/include/cobalt/kernel/stat.h +++ b/include/cobalt/kernel/stat.h @@ -58,7 +58,7 @@ 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; \ }) -- 2.20.1