Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Sep 2021 20:27:42 GMT
From:      Vladimir Kondratyev <wulf@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 37eba5b77a57 - main - LinuxKPI: Cast offset_in_page() parameter to unsigned long
Message-ID:  <202109292027.18TKRgwq038723@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by wulf:

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

commit 37eba5b77a5733ac711b119141619c89b8446471
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2021-09-29 20:14:47 +0000
Commit:     Vladimir Kondratyev <wulf@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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109292027.18TKRgwq038723>