Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1244340

[RFC] arm64: ioremap: add ioremap_cache macro

From yalin wang <yalin.wang2010@gmail.com>
Newsgroups linux.kernel
Subject [RFC] arm64: ioremap: add ioremap_cache macro
Date 2015-10-12 04:30 +0200
Message-ID <qiB29-25v-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Add ioremap_cache macro, because some code will test if this macro
is defined or not, and will generate a generric version if not defined,
for example, memremap.c do like this.

Signed-off-by: yalin wang <yalin.wang2010@gmail.com>
---
 arch/arm64/include/asm/io.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/include/asm/io.h b/arch/arm64/include/asm/io.h
index 44be1e0..d6b620c 100644
--- a/arch/arm64/include/asm/io.h
+++ b/arch/arm64/include/asm/io.h
@@ -172,6 +172,7 @@ extern void __iomem *ioremap_cache(phys_addr_t phys_addr, size_t size);
 #define ioremap_wc(addr, size)		__ioremap((addr), (size), __pgprot(PROT_NORMAL_NC))
 #define ioremap_wt(addr, size)		__ioremap((addr), (size), __pgprot(PROT_DEVICE_nGnRE))
 #define iounmap				__iounmap
+#define ioremap_cache                  ioremap_cache
 
 /*
  * io{read,write}{16,32}be() macros
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[RFC] arm64: ioremap: add ioremap_cache macro yalin wang <yalin.wang2010@gmail.com> - 2015-10-12 04:30 +0200
  Re: [RFC] arm64: ioremap: add ioremap_cache macro Catalin Marinas <catalin.marinas@arm.com> - 2015-10-13 16:20 +0200
    Re: [RFC] arm64: ioremap: add ioremap_cache macro Arnd Bergmann <arnd@arndb.de> - 2015-10-13 16:30 +0200
    Re: [RFC] arm64: ioremap: add ioremap_cache macro Will Deacon <will.deacon@arm.com> - 2015-10-13 16:30 +0200
      Re: [RFC] arm64: ioremap: add ioremap_cache macro Catalin Marinas <catalin.marinas@arm.com> - 2015-10-13 17:30 +0200
        Re: [RFC] arm64: ioremap: add ioremap_cache macro yalin wang <yalin.wang2010@gmail.com> - 2015-10-14 04:50 +0200
          Re: [RFC] arm64: ioremap: add ioremap_cache macro Arnd Bergmann <arnd@arndb.de> - 2015-10-14 10:30 +0200
            Re: [RFC] arm64: ioremap: add ioremap_cache macro yalin wang <yalin.wang2010@gmail.com> - 2015-10-14 14:10 +0200

csiph-web