]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
scsi: qla1280: properly handle 64-bit DMA
authorChristoph Hellwig <hch@lst.de>
Thu, 18 Oct 2018 13:03:36 +0000 (15:03 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 7 Nov 2018 02:31:28 +0000 (21:31 -0500)
CONFIG_HIGHMEM is not in fact an indicator for > 32-bit dma addressing
Given that the driver is a bit weird and wants a compile time selection
switch to checking CONFIG_ARCH_DMA_ADDR_T_64BIT instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla1280.c

index f19e8d192d36b86326ef10569647cbab75cba41f..9c5b67304a768226f593cc6ea502c07dadf61c68 100644 (file)
 
 #include "qla1280.h"
 
-#ifndef BITS_PER_LONG
-#error "BITS_PER_LONG not defined!"
-#endif
-#if (BITS_PER_LONG == 64) || defined CONFIG_HIGHMEM
+#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
 #define QLA_64BIT_PTR  1
 #endif