From: Akinobu Mita The test_bit() routines are defined to work on a pointer to unsigned long. But thread_info.flags is __u32 (unsigned int) on sh and it is passed to flag set/clear/test wrappers in include/linux/thread_info.h. So the compiler will print warnings. This patch changes to unsigned long instead. Signed-off-by: Akinobu Mita Signed-off-by: Andrew Morton --- include/asm-sh/thread_info.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN include/asm-sh/thread_info.h~bitops-make-thread_infoflags-an-unsigned-long include/asm-sh/thread_info.h --- devel/include/asm-sh/thread_info.h~bitops-make-thread_infoflags-an-unsigned-long 2006-02-20 21:02:49.000000000 -0800 +++ devel-akpm/include/asm-sh/thread_info.h 2006-02-20 21:02:49.000000000 -0800 @@ -18,7 +18,7 @@ struct thread_info { struct task_struct *task; /* main task structure */ struct exec_domain *exec_domain; /* execution domain */ - __u32 flags; /* low level flags */ + unsigned long flags; /* low level flags */ __u32 cpu; int preempt_count; /* 0 => preemptable, <0 => BUG */ struct restart_block restart_block; _