Module: xenomai-jki Branch: for-upstream Commit: bb57f6aaf099a7a0e51538b7498c8cefdea0a646 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=bb57f6aaf099a7a0e51538b7498c8cefdea0a646
Author: Jan Kiszka <[email protected]> Date: Fri Apr 2 11:37:33 2010 +0200 Add list_first_entry wrapper for older kernels CC: Philippe Gerum <[email protected]> Signed-off-by: Jan Kiszka <[email protected]> --- include/asm-generic/wrappers.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h index 64ec43f..d864397 100644 --- a/include/asm-generic/wrappers.h +++ b/include/asm-generic/wrappers.h @@ -559,6 +559,11 @@ static inline void wrap_proc_dir_entry_owner(struct proc_dir_entry *entry) #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) */ #endif /* CONFIG_PROC_FS */ +#ifndef list_first_entry +#define list_first_entry(ptr, type, member) \ + list_entry((ptr)->next, type, member) +#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32) #define rthal_irq_descp(irq) (irq_desc + (irq)) #else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32) */ _______________________________________________ Xenomai-git mailing list [email protected] https://mail.gna.org/listinfo/xenomai-git
