From: Bjorn Helgaas <bhelgaas@google.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arch@vger.kernel.org,
"Luis R. Rodriguez" <mcgrof@kernel.org>,
linux-kernel@vger.kernel.org
Subject: [PATCH v1 2/3] asm-generic/io.h: Remove unused generic __ioremap() definition
Date: Fri, 17 Mar 2017 12:46:51 -0500 [thread overview]
Message-ID: <20170317174651.6308.69605.stgit@bhelgaas-glaptop.roam.corp.google.com> (raw)
In-Reply-To: <20170317172752.6308.91062.stgit@bhelgaas-glaptop.roam.corp.google.com>
Several arches use __ioremap() to help implement the generic ioremap(),
ioremap_nocache(), and ioremap_wc() interfaces, but this usage is all
inside the arch/ directory.
The only __ioremap() uses outside arch/ are in the ZorroII RAM disk driver
and some framebuffer drivers that are only buildable on m68k and powerpc,
and they use the versions provided by those arches.
There's no need for a generic version of __ioremap(), so remove it.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
include/asm-generic/io.h | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h
index 978d2e27ce1d..e0a331a22346 100644
--- a/include/asm-generic/io.h
+++ b/include/asm-generic/io.h
@@ -843,15 +843,6 @@ static inline void __iomem *ioremap(phys_addr_t offset, size_t size)
}
#endif
-#ifndef __ioremap
-#define __ioremap __ioremap
-static inline void __iomem *__ioremap(phys_addr_t offset, size_t size,
- unsigned long flags)
-{
- return ioremap(offset, size);
-}
-#endif
-
#ifndef ioremap_nocache
#define ioremap_nocache ioremap_nocache
static inline void __iomem *ioremap_nocache(phys_addr_t offset, size_t size)
next prev parent reply other threads:[~2017-03-17 17:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-17 17:46 [PATCH v1 0/3] ioremap() tidy-up Bjorn Helgaas
2017-03-17 17:46 ` [PATCH v1 1/3] asm-generic/io.h: Fix "IOMMU" typos Bjorn Helgaas
2017-03-17 17:46 ` Bjorn Helgaas [this message]
2017-03-17 17:46 ` [PATCH v1 3/3] asm-generic/io.h: Simplify ioremap() comments Bjorn Helgaas
2017-03-17 22:00 ` [PATCH v1 0/3] ioremap() tidy-up Arnd Bergmann
2017-03-20 18:17 ` Bjorn Helgaas
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=20170317174651.6308.69605.stgit@bhelgaas-glaptop.roam.corp.google.com \
--to=bhelgaas@google.com \
--cc=arnd@arndb.de \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mcgrof@kernel.org \
/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
all inboxes | Powered by JetHome®