Skip to contentSkip to conversation

asm-generic/io.h: Unbork ioremap_np() declaration

PATCH Applied Hector Martin 3 participants 3 messages Apr 9, 2021 Generic include/asm header files

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 asm-generic/io.h: Unbork ioremap_np() declaration

It accidentally slipped into the #ifdef for ioremap_uc().

---
 include/asm-generic/io.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
include/asm-generic/io.h +1 -2
index 082e0c96db6e..76d456c516a1 100644
@@ -995,6 +995,7 @@ static inline void __iomem *ioremap_uc(phys_addr_t offset, size_t size)
 {
 	return NULL;
 }
+#endif
 
 /*
  * ioremap_np needs an explicit architecture implementation, as it
@@ -1013,8 +1014,6 @@ static inline void __iomem *ioremap_np(phys_addr_t offset, size_t size)
 }
 #endif
 
-#endif
-
 #ifdef CONFIG_HAS_IOPORT_MAP
 #ifndef CONFIG_GENERIC_IOMAP
 #ifndef ioport_map
Signature · 1 line
2.30.0
#1 lore raw

From: Arnd Bergmann <[email protected]>

Quoted 1 line · Hector Martin

It accidentally slipped into the #ifdef for ioremap_uc().

Applied to arm/apple-m1, thanks!

[1/1] asm-generic/io.h: Unbork ioremap_np() declaration

      commit: ea96292838397682530ac77a429974f8ff5f2df3

       Arnd
#2 lore raw
In reply to Hector Martin
This patch was applied to soc/soc.git (refs/heads/for-next):

Hello:

This patch was applied to soc/soc.git (refs/heads/for-next):

Quoted 6 lines · On Fri, 9 Apr 2021 14:20:38 +0900 you wrote:

It accidentally slipped into the #ifdef for ioremap_uc().

---
 include/asm-generic/io.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Here is the summary with links:
- asm-generic/io.h: Unbork ioremap_np() declaration

    https://git.kernel.org/soc/soc/c/ea9629283839

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html