]> git.hungrycats.org Git - linux/commitdiff
[PATCH] undefined shifts in qla1280
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Fri, 18 Jul 2003 02:45:19 +0000 (19:45 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Fri, 18 Jul 2003 02:45:19 +0000 (19:45 -0700)
C doesn't define >> by 32 for 32bit systems, and on some gcc leaves
you with the original value...

drivers/scsi/qla1280.c

index 8b5cdf8e205e39b374c1dd1a51946a5eb8f8926f..17779d9019cdf62ca72d45e77f76488ba895cceb 100644 (file)
 /* 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