git: 37eba5b77a57 - main - LinuxKPI: Cast offset_in_page() parameter to unsigned long
Vladimir Kondratyev
wulf at FreeBSD.org
Wed Sep 29 20:27:43 UTC 2021
The branch main has been updated by wulf:
URL: https://cgit.FreeBSD.org/src/commit/?id=37eba5b77a5733ac711b119141619c89b8446471
commit 37eba5b77a5733ac711b119141619c89b8446471
Author: Vladimir Kondratyev <wulf at FreeBSD.org>
AuthorDate: 2021-09-29 20:14:47 +0000
Commit: Vladimir Kondratyev <wulf at FreeBSD.org>
CommitDate: 2021-09-29 20:14:47 +0000
LinuxKPI: Cast offset_in_page() parameter to unsigned long
to reduce number of patches in drm-kmod
Reviewed by: hselasky
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D32093
---
sys/compat/linuxkpi/common/include/linux/mm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/compat/linuxkpi/common/include/linux/mm.h b/sys/compat/linuxkpi/common/include/linux/mm.h
index dc75ae4483c3..871d16cb06ff 100644
--- a/sys/compat/linuxkpi/common/include/linux/mm.h
+++ b/sys/compat/linuxkpi/common/include/linux/mm.h
@@ -229,7 +229,7 @@ vma_pages(struct vm_area_struct *vma)
return ((vma->vm_end - vma->vm_start) >> PAGE_SHIFT);
}
-#define offset_in_page(off) ((off) & (PAGE_SIZE - 1))
+#define offset_in_page(off) ((unsigned long)(off) & (PAGE_SIZE - 1))
static inline void
set_page_dirty(struct vm_page *page)
More information about the dev-commits-src-main
mailing list