From: Nick Desaulniers <ndesaulniers@google.com>
To: bcain@codeaurora.org
Cc: Nick Desaulniers <ndesaulniers@google.com>,
lee.jones@linaro.org, andriy.shevchenko@linux.intel.com,
ztuowen@gmail.com, mika.westerberg@linux.intel.com,
mcgrof@kernel.org, gregkh@linuxfoundation.org,
alexios.zavras@intel.com, allison@lohutok.net, will@kernel.org,
rfontana@redhat.com, tglx@linutronix.de, peterz@infradead.org,
boqun.feng@gmail.com, mingo@redhat.com,
akpm@linux-foundation.org, geert@linux-m68k.org,
linux-hexagon@vger.kernel.org,
clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org,
Nathan Chancellor <natechancellor@gmail.com>
Subject: [PATCH 1/2] hexagon: define ioremap_uc
Date: Mon, 9 Dec 2019 14:29:55 -0800 [thread overview]
Message-ID: <20191209222956.239798-2-ndesaulniers@google.com> (raw)
In-Reply-To: <20191209222956.239798-1-ndesaulniers@google.com>
Similar to
commit 38e45d81d14e ("sparc64: implement ioremap_uc")
define ioremap_uc for hexagon to avoid errors from
-Wimplicit-function-definition.
Fixes: e537654b7039 ("lib: devres: add a helper function for ioremap_uc")
Link: https://github.com/ClangBuiltLinux/linux/issues/797
Suggested-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
---
arch/hexagon/include/asm/io.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/hexagon/include/asm/io.h b/arch/hexagon/include/asm/io.h
index 539e3efcf39c..b0dbc3473172 100644
--- a/arch/hexagon/include/asm/io.h
+++ b/arch/hexagon/include/asm/io.h
@@ -173,6 +173,7 @@ static inline void writel(u32 data, volatile void __iomem *addr)
void __iomem *ioremap(unsigned long phys_addr, unsigned long size);
#define ioremap_nocache ioremap
+#define ioremap_uc(X, Y) ioremap((X), (Y))
#define __raw_writel writel
--
2.24.0.393.g34dc348eaf-goog
next prev parent reply other threads:[~2019-12-09 22:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-09 22:29 [PATCH 0/2] Hexagon fixes Nick Desaulniers
2019-12-09 22:29 ` Nick Desaulniers [this message]
2019-12-10 1:05 ` [PATCH 1/2] hexagon: define ioremap_uc Brian Cain
2019-12-10 8:09 ` Geert Uytterhoeven
2019-12-09 22:29 ` [PATCH 2/2] hexagon: parenthesize registers in asm predicates Nick Desaulniers
2019-12-10 1:05 ` Brian Cain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191209222956.239798-2-ndesaulniers@google.com \
--to=ndesaulniers@google.com \
--cc=akpm@linux-foundation.org \
--cc=alexios.zavras@intel.com \
--cc=allison@lohutok.net \
--cc=andriy.shevchenko@linux.intel.com \
--cc=bcain@codeaurora.org \
--cc=boqun.feng@gmail.com \
--cc=clang-built-linux@googlegroups.com \
--cc=geert@linux-m68k.org \
--cc=gregkh@linuxfoundation.org \
--cc=lee.jones@linaro.org \
--cc=linux-hexagon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mcgrof@kernel.org \
--cc=mika.westerberg@linux.intel.com \
--cc=mingo@redhat.com \
--cc=natechancellor@gmail.com \
--cc=peterz@infradead.org \
--cc=rfontana@redhat.com \
--cc=tglx@linutronix.de \
--cc=will@kernel.org \
--cc=ztuowen@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).