git: 8cf87dd59ff7 - stable/13 - LinuxKPI: Cast offset_in_page() parameter to unsigned long
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 Oct 2021 09:19:18 UTC
The branch stable/13 has been updated by wulf:
URL: https://cgit.FreeBSD.org/src/commit/?id=8cf87dd59ff7f58db2a449c05d15f3315244d466
commit 8cf87dd59ff7f58db2a449c05d15f3315244d466
Author: Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2021-09-29 20:14:47 +0000
Commit: Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2021-10-13 09:04:58 +0000
LinuxKPI: Cast offset_in_page() parameter to unsigned long
to reduce number of patches in drm-kmod
Reviewed by: hselasky
Differential revision: https://reviews.freebsd.org/D32093
(cherry picked from commit 37eba5b77a5733ac711b119141619c89b8446471)
---
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)