x86: clean up bitops-related warnings
Add casts to appropriate places to silence spurious bitops warnings. Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com> Cc: Andi Kleen <ak@suse.de> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:

committed by
Ingo Molnar

parent
1c54d77078
commit
5548fecdff
@@ -42,27 +42,27 @@ extern long do_no_restart_syscall(struct restart_block *parm);
|
||||
|
||||
static inline void set_ti_thread_flag(struct thread_info *ti, int flag)
|
||||
{
|
||||
set_bit(flag,&ti->flags);
|
||||
set_bit(flag, (unsigned long *)&ti->flags);
|
||||
}
|
||||
|
||||
static inline void clear_ti_thread_flag(struct thread_info *ti, int flag)
|
||||
{
|
||||
clear_bit(flag,&ti->flags);
|
||||
clear_bit(flag, (unsigned long *)&ti->flags);
|
||||
}
|
||||
|
||||
static inline int test_and_set_ti_thread_flag(struct thread_info *ti, int flag)
|
||||
{
|
||||
return test_and_set_bit(flag,&ti->flags);
|
||||
return test_and_set_bit(flag, (unsigned long *)&ti->flags);
|
||||
}
|
||||
|
||||
static inline int test_and_clear_ti_thread_flag(struct thread_info *ti, int flag)
|
||||
{
|
||||
return test_and_clear_bit(flag,&ti->flags);
|
||||
return test_and_clear_bit(flag, (unsigned long *)&ti->flags);
|
||||
}
|
||||
|
||||
static inline int test_ti_thread_flag(struct thread_info *ti, int flag)
|
||||
{
|
||||
return test_bit(flag,&ti->flags);
|
||||
return test_bit(flag, (unsigned long *)&ti->flags);
|
||||
}
|
||||
|
||||
#define set_thread_flag(flag) \
|
||||
|
Reference in New Issue
Block a user