Skip to content

Commit ac4b165

Browse files
Christoph Hellwigmartinkpetersen
authored andcommitted
scsi: qla1280: properly handle 64-bit DMA
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>
1 parent f20f43c commit ac4b165

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/scsi/qla1280.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,7 @@
383383

384384
#include "qla1280.h"
385385

386-
#ifndef BITS_PER_LONG
387-
#error "BITS_PER_LONG not defined!"
388-
#endif
389-
#if (BITS_PER_LONG == 64) || defined CONFIG_HIGHMEM
386+
#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
390387
#define QLA_64BIT_PTR 1
391388
#endif
392389

0 commit comments

Comments
 (0)