bfa: Fix undefined bit shift on big-endian architectures with 32-bit DMA address
[pandora-kernel.git] / drivers / scsi / bfa / bfa_ioc.h
index 546d46b..506a3ee 100644 (file)
@@ -72,7 +72,7 @@ struct bfa_sge_s {
 } while (0)
 
 #define bfa_swap_words(_x)  (  \
-       ((_x) << 32) | ((_x) >> 32))
+       ((u64)(_x) << 32) | ((u64)(_x) >> 32))
 
 #ifdef __BIG_ENDIAN
 #define bfa_sge_to_be(_x)