Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jul 2026 00:10:50 +0000
From:      Bjoern A. Zeeb <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 7e06bfdd1489 - stable/15 - LinuxKPI: page.h: resort lines
Message-ID:  <6a66a20a.25fa8.611538e4@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/15 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=7e06bfdd1489e00d9fe72e596462670002d93bba

commit 7e06bfdd1489e00d9fe72e596462670002d93bba
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2026-07-17 13:12:56 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-07-26 16:49:06 +0000

    LinuxKPI: page.h: resort lines
    
    Two of the "page macros" can be abstracted elsewhere in the upcoming
    struct page work, so sort them away from the four which are here to
    stay.
    
    No functional change.
    
    Sponsored by:   The FreeBSD Foundation
    Reviewed by:    emaste
    Differential Revision: https://reviews.freebsd.org/D58299
    
    (cherry picked from commit 0b8d22019dcf708a8d047817963658783cd53c46)
---
 sys/compat/linuxkpi/common/include/linux/page.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sys/compat/linuxkpi/common/include/linux/page.h b/sys/compat/linuxkpi/common/include/linux/page.h
index eb0083f5fecc..8271d2d63021 100644
--- a/sys/compat/linuxkpi/common/include/linux/page.h
+++ b/sys/compat/linuxkpi/common/include/linux/page.h
@@ -72,13 +72,14 @@ pgprot2cachemode(pgprot_t prot)
 		return (VM_MEMATTR_DEFAULT);
 }
 
-#define	page_to_virt(page)	linux_page_address(page)
 #define	virt_to_page(x)		PHYS_TO_VM_PAGE(vtophys(x))
 #define	page_to_pfn(pp)		atop(VM_PAGE_TO_PHYS(pp))
 #define	pfn_to_page(pfn)	PHYS_TO_VM_PAGE(ptoa(pfn))
-#define	nth_page(page,n)	pfn_to_page(page_to_pfn(page) + (n))
 #define	page_to_phys(page)	VM_PAGE_TO_PHYS(page)
 
+#define	page_to_virt(page)	linux_page_address(page)
+#define	nth_page(page,n)	pfn_to_page(page_to_pfn(page) + (n))
+
 #define	pgprot_noncached(prot)		\
 	(((prot) & VM_PROT_ALL) | cachemode2protval(VM_MEMATTR_UNCACHEABLE))
 #ifdef VM_MEMATTR_WRITE_COMBINING


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a66a20a.25fa8.611538e4>