Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] bitops: sh: make thread_info.flags an unsigned long

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 <mita@miraclelinux.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Akinobu Mita and committed by
Linus Torvalds
6ecf66ae f51a05c1

+1 -1
+1 -1
include/asm-sh/thread_info.h
··· 18 18 struct thread_info { 19 19 struct task_struct *task; /* main task structure */ 20 20 struct exec_domain *exec_domain; /* execution domain */ 21 - __u32 flags; /* low level flags */ 21 + unsigned long flags; /* low level flags */ 22 22 __u32 cpu; 23 23 int preempt_count; /* 0 => preemptable, <0 => BUG */ 24 24 struct restart_block restart_block;