diff -urN RC13-git5-other-helpers/arch/sparc/lib/bitext.c RC13-git5-includes/arch/sparc/lib/bitext.c --- RC13-git5-other-helpers/arch/sparc/lib/bitext.c 2005-06-17 15:48:29.000000000 -0400 +++ RC13-git5-includes/arch/sparc/lib/bitext.c 2005-09-05 16:40:40.000000000 -0400 @@ -10,6 +10,7 @@ */ #include +#include #include #include diff -urN RC13-git5-other-helpers/include/linux/hardirq.h RC13-git5-includes/include/linux/hardirq.h --- RC13-git5-other-helpers/include/linux/hardirq.h 2005-08-28 23:09:48.000000000 -0400 +++ RC13-git5-includes/include/linux/hardirq.h 2005-09-05 16:40:40.000000000 -0400 @@ -4,6 +4,7 @@ #include #include #include +#include #include #include @@ -90,6 +91,8 @@ #define nmi_enter() irq_enter() #define nmi_exit() sub_preempt_count(HARDIRQ_OFFSET) +struct task_struct; + #ifndef CONFIG_VIRT_CPU_ACCOUNTING static inline void account_user_vtime(struct task_struct *tsk) { diff -urN RC13-git5-other-helpers/include/linux/interrupt.h RC13-git5-includes/include/linux/interrupt.h --- RC13-git5-other-helpers/include/linux/interrupt.h 2005-06-17 15:48:29.000000000 -0400 +++ RC13-git5-includes/include/linux/interrupt.h 2005-09-05 16:40:40.000000000 -0400 @@ -12,6 +12,7 @@ #include #include #include +#include /* * For 2.4.x compatibility, 2.4.x can use diff -urN RC13-git5-other-helpers/include/linux/sched.h RC13-git5-includes/include/linux/sched.h --- RC13-git5-other-helpers/include/linux/sched.h 2005-09-05 16:40:39.000000000 -0400 +++ RC13-git5-includes/include/linux/sched.h 2005-09-05 16:40:40.000000000 -0400 @@ -1136,6 +1136,8 @@ spin_unlock(&p->alloc_lock); } +#ifndef __HAVE_THREAD_FUNCTIONS + #define task_thread_info(task) (task)->thread_info static inline void setup_thread_info(struct task_struct *p, struct thread_info *ti) @@ -1176,6 +1178,8 @@ return test_ti_thread_flag(task_thread_info(tsk), flag); } +#endif + static inline void set_tsk_need_resched(struct task_struct *tsk) { set_tsk_thread_flag(tsk,TIF_NEED_RESCHED); diff -urN RC13-git5-other-helpers/include/linux/smp_lock.h RC13-git5-includes/include/linux/smp_lock.h --- RC13-git5-other-helpers/include/linux/smp_lock.h 2005-06-17 15:48:29.000000000 -0400 +++ RC13-git5-includes/include/linux/smp_lock.h 2005-09-05 16:40:40.000000000 -0400 @@ -2,11 +2,10 @@ #define __LINUX_SMPLOCK_H #include +#ifdef CONFIG_LOCK_KERNEL #include #include -#ifdef CONFIG_LOCK_KERNEL - #define kernel_locked() (current->lock_depth >= 0) extern int __lockfunc __reacquire_kernel_lock(void); diff -urN RC13-git5-other-helpers/include/linux/thread_info.h RC13-git5-includes/include/linux/thread_info.h --- RC13-git5-other-helpers/include/linux/thread_info.h 2005-06-17 15:48:29.000000000 -0400 +++ RC13-git5-includes/include/linux/thread_info.h 2005-09-05 16:40:40.000000000 -0400 @@ -22,6 +22,7 @@ #ifdef __KERNEL__ +#ifndef __HAVE_THREAD_FUNCTIONS /* * flag set/clear/test wrappers * - pass TIF_xxxx constants to these functions @@ -88,5 +89,6 @@ } #endif +#endif #endif /* _LINUX_THREAD_INFO_H */