arc-mm-convert-to-generic_ioremap.patch removed from -mm tree
The quilt patch titled
Subject: arc: mm: convert to GENERIC_IOREMAP
has been removed from the -mm tree. Its filename was
arc-mm-convert-to-generic_ioremap.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Baoquan He <[email protected]>
Subject: arc: mm: convert to GENERIC_IOREMAP
Date: Thu, 6 Jul 2023 23:45:08 +0800
By taking GENERIC_IOREMAP method, the generic generic_ioremap_prot(), generic_iounmap(), and their generic wrapper ioremap_prot(), ioremap() and iounmap() are all visible and available to arch. Arch needs to provide wrapper functions to override the generic versions if there's arch specific handling in its ioremap_prot(), ioremap() or iounmap(). This change will simplify implementation by removing duplicated code with generic_ioremap_prot() and generic_iounmap(), and has the equivalent functioality as before.
Here, add wrapper functions ioremap_prot() and iounmap() for arc's special operation when ioremap_prot() and iounmap().
---
arch/arc/Kconfig | 1 arch/arc/include/asm/io.h | 7 ++--- arch/arc/mm/ioremap.c | 49 ++---------------------------------- 3 files changed, 8 insertions(+), 49 deletions(-)
arch/arc/include/asm/io.h renamed from arch/arc/include/asm/io.h~arc-mm-convert-to-generic_ioremap +3 -4
@@ -21,8 +21,9 @@#endif extern void __iomem *ioremap (phys_addr_t paddr,unsigned long size); -extern void __iomem *ioremap_prot (phys_addr_t paddr,unsigned long size, -unsigned long flags); +#define ioremap ioremap +#define ioremap_prot ioremap_prot +#define iounmap iounmapstatic inline void __iomem *ioport_map (unsigned long port,unsigned int nr) {return (void __iomem *)port;
@@ -32,8 +33,6 @@ static inline void ioport_unmap(void __i { } -extern void iounmap (const volatile void __iomem *addr); -/* * io{read,write}{16,32}be() macros */
arch/arc/Kconfig renamed from arch/arc/Kconfig~arc-mm-convert-to-generic_ioremap +1 -0
@@ -26,6 +26,7 @@ config ARC select GENERIC_PENDING_IRQ if SMP select GENERIC_SCHED_CLOCK select GENERIC_SMP_IDLE_THREAD + select GENERIC_IOREMAP select HAVE_ARCH_KGDB select HAVE_ARCH_TRACEHOOK select HAVE_ARCH_TRANSPARENT_HUGEPAGE if ARC_MMU_V4
arch/arc/mm/ioremap.c renamed from arch/arc/mm/ioremap.c~arc-mm-convert-to-generic_ioremap +4 -45
79 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
net-altera-tse-make-altera_tse-depend-on-has_iomem.patch irqchip-al-fic-make-al_fic-depend-on-has_iomem.patch