From 1adaafdab19a9dd4229b0bf5f3b7e41c16de98d3 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 31 May 2020 03:29:53 +0000 Subject: [PATCH] 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 --- qla2x00t-32gbit/qla_nx.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qla2x00t-32gbit/qla_nx.c b/qla2x00t-32gbit/qla_nx.c index 7c7e05dbd..8b94604e0 100644 --- a/qla2x00t-32gbit/qla_nx.c +++ b/qla2x00t-32gbit/qla_nx.c @@ -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;