All of lore.kernel.org
 help / color / mirror / Atom feed
* + m32r-add-io_rep-helpers.patch added to -mm tree
@ 2015-12-22 21:20 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2015-12-22 21:20 UTC (permalink / raw)
  To: sudipm.mukherjee, sudip, mm-commits


The patch titled
     Subject: m32r: add io*_rep helpers
has been added to the -mm tree.  Its filename is
     m32r-add-io_rep-helpers.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/m32r-add-io_rep-helpers.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/m32r-add-io_rep-helpers.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Subject: m32r: add io*_rep helpers

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>
---

 arch/m32r/include/asm/io.h |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff -puN arch/m32r/include/asm/io.h~m32r-add-io_rep-helpers arch/m32r/include/asm/io.h
--- a/arch/m32r/include/asm/io.h~m32r-add-io_rep-helpers
+++ a/arch/m32r/include/asm/io.h
@@ -168,13 +168,21 @@ static inline void _writel(unsigned long
 #define writew_relaxed writew
 #define writel_relaxed writel
 
-#define ioread8 read
+#define ioread8 readb
 #define ioread16 readw
 #define ioread32 readl
 #define iowrite8 writeb
 #define iowrite16 writew
 #define iowrite32 writel
 
+#define ioread8_rep(p, dst, count) insb((unsigned long)(p), (dst), (count))
+#define ioread16_rep(p, dst, count) insw((unsigned long)(p), (dst), (count))
+#define ioread32_rep(p, dst, count) insl((unsigned long)(p), (dst), (count))
+
+#define iowrite8_rep(p, src, count) outsb((unsigned long)(p), (src), (count))
+#define iowrite16_rep(p, src, count) outsw((unsigned long)(p), (src), (count))
+#define iowrite32_rep(p, src, count) outsl((unsigned long)(p), (src), (count))
+
 #define ioread16be(addr)	be16_to_cpu(readw(addr))
 #define ioread32be(addr)	be32_to_cpu(readl(addr))
 #define iowrite16be(v, addr)	writew(cpu_to_be16(v), (addr))
_

Patches currently in -mm which might be from sudipm.mukherjee@gmail.com are

m32r-fix-build-failure.patch
m32r-add-io_rep-helpers.patch
arch-uapi-asm-mmanh-let-madv_free-have-same-value-for-all-architectures-fix-fix-2-fix-4.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-12-22 21:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-22 21:20 + m32r-add-io_rep-helpers.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.