Skip to content

Commit 23eb271

Browse files
akpm00KAGA-KOKO
authored andcommitted
x86: setup_force_cpu_cap(): don't do clear_bit(non-unsigned-long)
Another hack to make proper prototyping of x86 bitops viable. Cc: Andrea Arcangeli <andrea@qumranet.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent 0e192b9 commit 23eb271

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/asm-x86/cpufeature.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ extern const char * const x86_power_flags[32];
142142
#define clear_cpu_cap(c, bit) clear_bit(bit, (unsigned long *)((c)->x86_capability))
143143
#define setup_clear_cpu_cap(bit) do { \
144144
clear_cpu_cap(&boot_cpu_data, bit); \
145-
set_bit(bit, cleared_cpu_caps); \
145+
set_bit(bit, (unsigned long *)cleared_cpu_caps); \
146146
} while (0)
147147
#define setup_force_cpu_cap(bit) do { \
148148
set_cpu_cap(&boot_cpu_data, bit); \
149-
clear_bit(bit, cleared_cpu_caps); \
149+
clear_bit(bit, (unsigned long *)cleared_cpu_caps); \
150150
} while (0)
151151

152152
#define cpu_has_fpu boot_cpu_has(X86_FEATURE_FPU)

0 commit comments

Comments
 (0)