Commit 93cf74a8 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] undefined shifts in qla1280

C doesn't define >> by 32 for 32bit systems, and on some gcc leaves
you with the original value...
parent b3fee650
......@@ -327,7 +327,7 @@
/* 3.16 */
#ifdef QLA_64BIT_PTR
#define pci_dma_lo32(a) (a & 0xffffffff)
#define pci_dma_hi32(a) (a >> 32)
#define pci_dma_hi32(a) ((a >> 16)>>16)
#else
#define pci_dma_lo32(a) (a & 0xffffffff)
#define pci_dma_hi32(a) 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment