git: ff479cc6c9ee - main - linuxkpi: add PAGE_ALIGNED macro

From: Alex Richardson <arichardson_at_FreeBSD.org>
Date: Mon, 11 Oct 2021 10:53:40 UTC
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_ */