qla2x00t-32gbit: Unbreak the 32-bit build

Note: this is not an attempt to port this driver to 32-bit systems.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8991 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2020-05-31 03:29:53 +00:00
parent c6ff35fdee
commit 1adaafdab1

View File

@@ -746,7 +746,11 @@ static int qla82xx_pci_mem_read_direct(struct qla_hw_data *ha,
*(u32 *)data = readl(addr);
break;
case 8:
#ifdef CONFIG_64BIT
*(u64 *)data = readq(addr);
#else
WARN_ON_ONCE(true);
#endif
break;
default:
ret = -1;
@@ -817,7 +821,11 @@ qla82xx_pci_mem_write_direct(struct qla_hw_data *ha,
writel(*(u32 *)data, addr);
break;
case 8:
#ifdef CONFIG_64BIT
writeq(*(u64 *)data, addr);
#else
WARN_ON_ONCE(true);
#endif
break;
default:
ret = -1;