x86: clean up bitops-related warnings
[firefly-linux-kernel-4.4.55.git] / include / asm-x86 / cpufeature.h
index acbf6681740d0a7416b3047f13d527baf5008dfa..761922972f6f491ce212326daefb9b2c5077a3ba 100644 (file)
           (((bit)>>5)==6 && (1UL<<((bit)&31) & REQUIRED_MASK6)) ||     \
           (((bit)>>5)==7 && (1UL<<((bit)&31) & REQUIRED_MASK7)) )      \
          ? 1 :                                                         \
-         test_bit(bit, (c)->x86_capability))
+        test_bit(bit, (unsigned long *)(c)->x86_capability))
 #define boot_cpu_has(bit)      cpu_has(&boot_cpu_data, bit)
 
 #define cpu_has_fpu            boot_cpu_has(X86_FEATURE_FPU)