mm-ioremap-remove-unneeded-ioremap_allowed-and-iounmap_allowed.patch removed from -mm tree
The quilt patch titled
Subject: mm: ioremap: remove unneeded ioremap_allowed and iounmap_allowed
has been removed from the -mm tree. Its filename was
mm-ioremap-remove-unneeded-ioremap_allowed-and-iounmap_allowed.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: mm: ioremap: remove unneeded ioremap_allowed and iounmap_allowed
Date: Thu, 6 Jul 2023 23:45:20 +0800
Now there are no users of ioremap_allowed and iounmap_allowed, clean them up.
---
include/asm-generic/io.h | 26 -------------------------- mm/ioremap.c | 6 ------ 2 files changed, 32 deletions(-)
include/asm-generic/io.h renamed from include/asm-generic/io.h~mm-ioremap-remove-unneeded-ioremap_allowed-and-iounmap_allowed +0 -26
@@ -1047,32 +1047,6 @@ static inline void iounmap(volatile void#elif defined(CONFIG_GENERIC_IOREMAP )#include <linux/pgtable.h> -/* -* Arch code can implement the following two hooks when using GENERIC_IOREMAP -* ioremap_allowed() return a bool, -* - true means continue to remap -* - false means skip remap and return directly -* iounmap_allowed() return a bool, -* - true means continue to vunmap -* - false means skip vunmap and return directly -*/ -#ifndef ioremap_allowed -#define ioremap_allowed ioremap_allowed -static inline bool ioremap_allowed (phys_addr_t phys_addr,size_t size, -unsigned long prot) -{ -return true; -} -#endif - -#ifndef iounmap_allowed -#define iounmap_allowed iounmap_allowed -static inline bool iounmap_allowed (void *addr) -{ -return true; -} -#endif -void __iomem *generic_ioremap_prot (phys_addr_t phys_addr,size_t size,pgprot_t prot);
mm/ioremap.c renamed from mm/ioremap.c~mm-ioremap-remove-unneeded-ioremap_allowed-and-iounmap_allowed +0 -6
@@ -33,9 +33,6 @@ void __iomem *generic_ioremap_prot(phys_ phys_addr -= offset; size =PAGE_ALIGN (size + offset); -if (!ioremap_allowed (phys_addr, size,pgprot_val (prot))) -return NULL ; - area =__get_vm_area_caller (size,VM_IOREMAP ,IOREMAP_START ,IOREMAP_END ,__builtin_return_address (0 ));if (!area)
@@ -64,9 +61,6 @@ void generic_iounmap(volatile void __iom {void *vaddr = (void *)((unsigned long )addr &PAGE_MASK ); -if (!iounmap_allowed (vaddr)) -return ; -if (is_ioremap_addr (vaddr))vunmap (vaddr); }
_
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