qed: Fix next-ptr chains for BE / 32-bit
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Sat, 4 Jun 2016 05:20:16 +0000 (08:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Jun 2016 05:42:26 +0000 (22:42 -0700)
commit81b1251d3b761b303955408dd6a49618b5683c2b
tree1a5719ba93f79c7d19bd45c1bc55d1255fa30d71
parent03c7f70beee4c5d34881e5d3dd2b6f3e848047ef
qed: Fix next-ptr chains for BE / 32-bit

Commit a91eb52abb50 ("qed: Revisit chain implementation") contains an
incorrect implementation for BE platforms, as device's regpairs containing
addresses are LE and they're not converted correctly when read back.
In addition, it raises a compilation warning for 32-bit platforms where
dma_addr_t is a 32-bit variable.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/qed/qed_chain.h