diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-01-30 07:30:55 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:55 -0500 |
commit | 5548fecdff5617ba3a2f09f0e585e1ac6e1bd25c (patch) | |
tree | 9761144d3140a554c062a289a40c1e0a5e206ef8 /include | |
parent | 1c54d77078056cde0f195b1a982cb681850efc08 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/cpufeature.h | 2 | ||||
-rw-r--r-- | include/asm-x86/numa_64.h | 2 | ||||
-rw-r--r-- | include/linux/thread_info.h | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/include/asm-x86/cpufeature.h b/include/asm-x86/cpufeature.h index acbf6681740d..761922972f6f 100644 --- a/include/asm-x86/cpufeature.h +++ b/include/asm-x86/cpufeature.h | |||
@@ -124,7 +124,7 @@ | |||
124 | (((bit)>>5)==6 && (1UL<<((bit)&31) & REQUIRED_MASK6)) || \ | 124 | (((bit)>>5)==6 && (1UL<<((bit)&31) & REQUIRED_MASK6)) || \ |
125 | (((bit)>>5)==7 && (1UL<<((bit)&31) & REQUIRED_MASK7)) ) \ | 125 | (((bit)>>5)==7 && (1UL<<((bit)&31) & REQUIRED_MASK7)) ) \ |
126 | ? 1 : \ | 126 | ? 1 : \ |
127 | test_bit(bit, (c)->x86_capability)) | 127 | test_bit(bit, (unsigned long *)(c)->x86_capability)) |
128 | #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) | 128 | #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) |
129 | 129 | ||
130 | #define cpu_has_fpu boot_cpu_has(X86_FEATURE_FPU) | 130 | #define cpu_has_fpu boot_cpu_has(X86_FEATURE_FPU) |
diff --git a/include/asm-x86/numa_64.h b/include/asm-x86/numa_64.h index c3c20db1fba3..4449889bb0c0 100644 --- a/include/asm-x86/numa_64.h +++ b/include/asm-x86/numa_64.h | |||
@@ -32,7 +32,7 @@ extern void __init init_cpu_to_node(void); | |||
32 | 32 | ||
33 | static inline void clear_node_cpumask(int cpu) | 33 | static inline void clear_node_cpumask(int cpu) |
34 | { | 34 | { |
35 | clear_bit(cpu, &node_to_cpumask_map[cpu_to_node(cpu)]); | 35 | clear_bit(cpu, (unsigned long *)&node_to_cpumask_map[cpu_to_node(cpu)]); |
36 | } | 36 | } |
37 | 37 | ||
38 | #else | 38 | #else |
diff --git a/include/linux/thread_info.h b/include/linux/thread_info.h index 9c4ad755d7e5..dfbdfb9836f4 100644 --- a/include/linux/thread_info.h +++ b/include/linux/thread_info.h | |||
@@ -42,27 +42,27 @@ extern long do_no_restart_syscall(struct restart_block *parm); | |||
42 | 42 | ||
43 | static inline void set_ti_thread_flag(struct thread_info *ti, int flag) | 43 | static inline void set_ti_thread_flag(struct thread_info *ti, int flag) |
44 | { | 44 | { |
45 | set_bit(flag,&ti->flags); | 45 | set_bit(flag, (unsigned long *)&ti->flags); |
46 | } | 46 | } |
47 | 47 | ||
48 | static inline void clear_ti_thread_flag(struct thread_info *ti, int flag) | 48 | static inline void clear_ti_thread_flag(struct thread_info *ti, int flag) |
49 | { | 49 | { |
50 | clear_bit(flag,&ti->flags); | 50 | clear_bit(flag, (unsigned long *)&ti->flags); |
51 | } | 51 | } |
52 | 52 | ||
53 | static inline int test_and_set_ti_thread_flag(struct thread_info *ti, int flag) | 53 | static inline int test_and_set_ti_thread_flag(struct thread_info *ti, int flag) |
54 | { | 54 | { |
55 | return test_and_set_bit(flag,&ti->flags); | 55 | return test_and_set_bit(flag, (unsigned long *)&ti->flags); |
56 | } | 56 | } |
57 | 57 | ||
58 | static inline int test_and_clear_ti_thread_flag(struct thread_info *ti, int flag) | 58 | static inline int test_and_clear_ti_thread_flag(struct thread_info *ti, int flag) |
59 | { | 59 | { |
60 | return test_and_clear_bit(flag,&ti->flags); | 60 | return test_and_clear_bit(flag, (unsigned long *)&ti->flags); |
61 | } | 61 | } |
62 | 62 | ||
63 | static inline int test_ti_thread_flag(struct thread_info *ti, int flag) | 63 | static inline int test_ti_thread_flag(struct thread_info *ti, int flag) |
64 | { | 64 | { |
65 | return test_bit(flag,&ti->flags); | 65 | return test_bit(flag, (unsigned long *)&ti->flags); |
66 | } | 66 | } |
67 | 67 | ||
68 | #define set_thread_flag(flag) \ | 68 | #define set_thread_flag(flag) \ |