Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Aug 2024 22:27:35 GMT
From:      Vladimir Kondratyev <wulf@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 80ade5b6940e - stable/14 - LinuxKPI: Move page_address definition from linux/gfp.h to linux/mm.h
Message-ID:  <202408012227.471MRZbY027441@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by wulf:

URL: https://cgit.FreeBSD.org/src/commit/?id=80ade5b6940e6f29cbb429ecc807da3f40a4edac

commit 80ade5b6940e6f29cbb429ecc807da3f40a4edac
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2024-06-06 20:42:06 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2024-08-01 21:09:39 +0000

    LinuxKPI: Move page_address definition from linux/gfp.h to linux/mm.h
    
    To match Linux. Some future changes may depend on proper location.
    
    Sponsored by:   Serenity Cyber Security, LLC
    MFC after:      1 week
    Reviewed by:    bz, emaste
    Differential Revision:  https://reviews.freebsd.org/D45448
    
    (cherry picked from commit cb8bfc4db8ca8f4ed03406a554e77a013696c8e0)
---
 sys/compat/linuxkpi/common/include/linux/gfp.h | 9 ---------
 sys/compat/linuxkpi/common/include/linux/mm.h  | 8 ++++++++
 2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/sys/compat/linuxkpi/common/include/linux/gfp.h b/sys/compat/linuxkpi/common/include/linux/gfp.h
index e5dd2e44b0fa..e285f8591a3c 100644
--- a/sys/compat/linuxkpi/common/include/linux/gfp.h
+++ b/sys/compat/linuxkpi/common/include/linux/gfp.h
@@ -85,15 +85,6 @@ struct page_frag_cache {
 	int pagecnt_bias;
 };
 
-/*
- * Resolve a page into a virtual address:
- *
- * NOTE: This function only works for pages allocated by the kernel.
- */
-void *linux_page_address(struct page *);
-
-#define	page_address(page) linux_page_address(page)
-
 /*
  * Page management for unmapped pages:
  */
diff --git a/sys/compat/linuxkpi/common/include/linux/mm.h b/sys/compat/linuxkpi/common/include/linux/mm.h
index 109bfffe7d6a..41af4be4c015 100644
--- a/sys/compat/linuxkpi/common/include/linux/mm.h
+++ b/sys/compat/linuxkpi/common/include/linux/mm.h
@@ -178,6 +178,14 @@ get_order(unsigned long size)
 	return (order);
 }
 
+/*
+ * Resolve a page into a virtual address:
+ *
+ * NOTE: This function only works for pages allocated by the kernel.
+ */
+void *linux_page_address(struct page *);
+#define	page_address(page) linux_page_address(page)
+
 static inline void *
 lowmem_page_address(struct page *page)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202408012227.471MRZbY027441>