Module: xenomai-forge Branch: master Commit: fef0cf3a176b4b79e59b5932451e3a146ce631cd URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=fef0cf3a176b4b79e59b5932451e3a146ce631cd
Author: Philippe Gerum <r...@xenomai.org> Date: Mon Sep 3 10:13:38 2012 +0200 cobalt/wrappers: fix cpu_online_map/mask wrapping --- include/asm-generic/wrappers.h | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h index 50401b0..fabf78c 100644 --- a/include/asm-generic/wrappers.h +++ b/include/asm-generic/wrappers.h @@ -58,10 +58,13 @@ static inline struct task_struct *wrap_find_task_by_pid(pid_t nr) #if LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0) -#define cpu_online_mask &(cpu_online_map) - #include <linux/sched.h> #include <linux/mm.h> +#include <linux/smp.h> + +#ifndef cpu_online_map +#define cpu_online_mask (&cpu_online_map) +#endif static inline unsigned long vm_mmap(struct file *file, unsigned long addr, _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git