From: Ricardo Ribalda Date: Thu, 29 Jan 2015 14:52:02 +0000 (+0100) Subject: sparc: io_64.h: Replace io function-link macros X-Git-Tag: omap-for-v4.1/fixes-rc1~305^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9555b47fab149ee23bddc842c264dd6f3b51f52d;p=pandora-kernel.git 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: kbuild test robot Fixes: 99082eab63449f9d spi/xilinx: Remove iowrite/ioread wrappers Signed-off-by: Ricardo Ribalda Delgado Acked-by: David S. Miller Signed-off-by: David S. Miller --- Reading git-diff-tree failed