Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Oct 2021 10:53:40 GMT
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ff479cc6c9ee - main - linuxkpi: add PAGE_ALIGNED macro
Message-ID:  <202110111053.19BAreS2041845@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by arichardson:

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

commit ff479cc6c9eeab2fd6f0f98310c65c0906299d82
Author:     Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2021-10-08 08:33:21 +0000
Commit:     Alex Richardson <arichardson@FreeBSD.org>
CommitDate: 2021-10-11 10:51:43 +0000

    linuxkpi: add PAGE_ALIGNED macro
    
    Needed for the virtio-gpu driver.
    
    Reviewed By:    #linuxkpi, manu, bz, hselasky
    Differential Revision: https://reviews.freebsd.org/D32366
---
 sys/compat/linuxkpi/common/include/linux/mm.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/mm.h b/sys/compat/linuxkpi/common/include/linux/mm.h
index ec88f39ac410..00583937318b 100644
--- a/sys/compat/linuxkpi/common/include/linux/mm.h
+++ b/sys/compat/linuxkpi/common/include/linux/mm.h
@@ -294,4 +294,6 @@ void si_meminfo(struct sysinfo *si);
 void lkpi_unmap_mapping_range(void *obj, loff_t const holebegin __unused,
     loff_t const holelen, int even_cows __unused);
 
+#define PAGE_ALIGNED(p)	__is_aligned(p, PAGE_SIZE)
+
 #endif					/* _LINUX_MM_H_ */



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