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
This commit is contained in:
Vladimir Kondratyev 2021-09-29 23:14:47 +03:00
parent 6efabdeede
commit 37eba5b77a

View File

@ -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)