hpet-replace-deprecated-mmap-hook-with-mmap_prepare.patch removed from -mm tree
The quilt patch titled
Subject: hpet: replace deprecated mmap hook with mmap_prepare
has been removed from the -mm tree. Its filename was
hpet-replace-deprecated-mmap-hook-with-mmap_prepare.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: "Lorenzo Stoakes (Oracle)" <[email protected]>
Subject: hpet: replace deprecated mmap hook with mmap_prepare
Date: Fri, 20 Mar 2026 22:39:39 +0000
The f_op->mmap interface is deprecated, so update driver to use its successor, mmap_prepare.
The driver previously used vm_iomap_memory(), so this change replaces it with its mmap_prepare equivalent, mmap_action_simple_ioremap().
---
drivers/char/hpet.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
drivers/char/hpet.c renamed from drivers/char/hpet.c~hpet-replace-deprecated-mmap-hook-with-mmap_prepare +7 -5
@@ -354,8 +354,9 @@ static __init int hpet_mmap_enable(char }__setup ("hpet_mmap=" , hpet_mmap_enable); -static int hpet_mmap (struct file *file,struct vm_area_struct *vma) +static int hpet_mmap_prepare (struct vm_area_desc *desc) { +struct file *file = desc->file;struct hpet_dev *devp;unsigned long addr;
@@ -368,11 +369,12 @@ static int hpet_mmap(struct file *file,if (addr & (PAGE_SIZE -1 ))return -ENOSYS ; - vma->vm_page_prot =pgprot_noncached (vma->vm_page_prot); - return vm_iomap_memory(vma, addr, PAGE_SIZE); + desc->page_prot =pgprot_noncached (desc->page_prot); +mmap_action_simple_ioremap (desc, addr,PAGE_SIZE ); + return 0; }#else -static int hpet_mmap (struct file *file,struct vm_area_struct *vma) +static int hpet_mmap_prepare (struct vm_area_desc *desc) {return -ENOSYS ; }
@@ -710,7 +712,7 @@ static const struct file_operations hpet .open = hpet_open, .release = hpet_release, .fasync = hpet_fasync, - .mmap = hpet_mmap, + .mmap_prepare = hpet_mmap_prepare, };static int hpet_is_known (struct hpet_data *hdp)
_
Patches currently in -mm which might be from [email protected] are
maintainers-update-mglru-entry-to-reflect-current-status.patch selftests-mm-add-merge-test-for-partial-msealed-range.patch