diff options
author | Christoph Hellwig <hch@lst.de> | 2018-10-18 15:03:36 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-11-06 21:31:28 -0500 |
commit | ac4b1657b75251f9c8731403e5b79fa812e0b05c (patch) | |
tree | 7df2f2261bca724c1bcbfbda901f6a3a73ef300f /drivers/scsi/qla1280.c | |
parent | f20f43c35aa4ebce8fed57168cb358611259c634 (diff) | |
download | lwn-ac4b1657b75251f9c8731403e5b79fa812e0b05c.tar.gz lwn-ac4b1657b75251f9c8731403e5b79fa812e0b05c.zip |
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>
Diffstat (limited to 'drivers/scsi/qla1280.c')
-rw-r--r-- | drivers/scsi/qla1280.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c index f19e8d192d36..9c5b67304a76 100644 --- a/drivers/scsi/qla1280.c +++ b/drivers/scsi/qla1280.c @@ -383,10 +383,7 @@ #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 |