git: 73f3589120e6 - main - LinuxKPI: Add kmap_local_page function

From: Vladimir Kondratyev <wulf_at_FreeBSD.org>
Date: Wed, 26 Jun 2024 20:54:39 UTC
The branch main has been updated by wulf:

URL: https://cgit.FreeBSD.org/src/commit/?id=73f3589120e61b4b9df1ef60c5be12ccd81878f2

commit 73f3589120e61b4b9df1ef60c5be12ccd81878f2
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2024-06-26 20:43:43 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2024-06-26 20:43:43 +0000

    LinuxKPI: Add kmap_local_page function
    
    kmap_local_page maps a page for temporary usage
    
    Sponsored by:   Serenity CyberSecurity, LLC
    MFC after:      1 week
    Reviewed by:    manu
    Differential Revision:  https://reviews.freebsd.org/D45609
---
 sys/compat/linuxkpi/common/include/linux/highmem.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/highmem.h b/sys/compat/linuxkpi/common/include/linux/highmem.h
index f770bef6b3b7..252d16b2ea70 100644
--- a/sys/compat/linuxkpi/common/include/linux/highmem.h
+++ b/sys/compat/linuxkpi/common/include/linux/highmem.h
@@ -93,6 +93,12 @@ kmap_atomic(struct page *page)
 	return (kmap_atomic_prot(page, VM_PROT_ALL));
 }
 
+static inline void *
+kmap_local_page(struct page *page)
+{
+	return (kmap(page));
+}
+
 static inline void *
 kmap_local_page_prot(struct page *page, pgprot_t prot)
 {