The branch main has been updated by wulf:

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

commit 73f3589120e61b4b9df1ef60c5be12ccd81878f2
Author:     Vladimir Kondratyev <[email protected]>
AuthorDate: 2024-06-26 20:43:43 +0000
Commit:     Vladimir Kondratyev <[email protected]>
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)
 {

Reply via email to