The branch main has been updated by arichardson:

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

commit ff479cc6c9eeab2fd6f0f98310c65c0906299d82
Author:     Alex Richardson <[email protected]>
AuthorDate: 2021-10-08 08:33:21 +0000
Commit:     Alex Richardson <[email protected]>
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_ */

Reply via email to