Skip to content
Commit 9555b47f authored by Ricardo Ribalda's avatar Ricardo Ribalda Committed by David S. Miller
Browse files

sparc: io_64.h: Replace io function-link macros



Function like macros cannot be assigned to function pointers. This patch
convert the function-like macros into object-macros, that the
precompiler will replace with the name of the final function.

With this patch this kind of code will work:

if (priv->mode_big_endian)
	priv.read = ioread32be;
else
	priv.read = ioread32;

Same approach has been taken on asm-generic/io.h

Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Fixes: 99082eab

 spi/xilinx: Remove iowrite/ioread wrappers
Signed-off-by: default avatarRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 94ab5990
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment