summaryrefslogtreecommitdiff
path: root/arch/sparc/include/asm/perf_event.h
diff options
context:
space:
mode:
authorRicardo Ribalda <ricardo.ribalda@gmail.com>2015-01-29 15:52:02 +0100
committerDavid S. Miller <davem@davemloft.net>2015-03-01 21:48:22 -0800
commit9555b47fab149ee23bddc842c264dd6f3b51f52d (patch)
tree86947a615ea0b909bc002519101c13896e7ce0d8 /arch/sparc/include/asm/perf_event.h
parent94ab5990760a54bb1f0fca99e0d374260cae3b8b (diff)
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 <fengguang.wu@intel.com> Fixes: 99082eab63449f9d spi/xilinx: Remove iowrite/ioread wrappers Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/perf_event.h')
0 files changed, 0 insertions, 0 deletions