m32r: add io*_rep helpers
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 29 Dec 2015 22:54:19 +0000 (14:54 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 12 Oct 2017 14:27:21 +0000 (15:27 +0100)
commitcefa3724f1f806bb63402962bab92687437e145a
tree64af5b4e2b72d3bc59fe2b655f74eccb6b76aec9
parentaa17149de8631218f22f0a23f3239b03f458f6e5
m32r: add io*_rep helpers

commit 92a8ed4c7643809123ef0a65424569eaacc5c6b0 upstream.

m32r allmodconfig was failing with the error:

  error: implicit declaration of function 'read'

On checking io.h it turned out that 'read' is not defined but 'readb' is
defined and 'ioread8' will then obviously mean 'readb'.

At the same time some of the helper functions ioreadN_rep() and
iowriteN_rep() were missing which also led to the build failure.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/m32r/include/asm/io.h