Module Name: src
Committed By: riastradh
Date: Sun Dec 19 11:46:58 UTC 2021
Modified Files:
src/sys/external/bsd/drm2/include/linux: mm.h
Log Message:
Cast, because we get passed void*
Author: Maya Rashish <[email protected]>
Committer: Taylor R Campbell <[email protected]>
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/external/bsd/drm2/include/linux/mm.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/include/linux/mm.h
diff -u src/sys/external/bsd/drm2/include/linux/mm.h:1.21 src/sys/external/bsd/drm2/include/linux/mm.h:1.22
--- src/sys/external/bsd/drm2/include/linux/mm.h:1.21 Sun Dec 19 11:33:49 2021
+++ src/sys/external/bsd/drm2/include/linux/mm.h Sun Dec 19 11:46:58 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: mm.h,v 1.21 2021/12/19 11:33:49 riastradh Exp $ */
+/* $NetBSD: mm.h,v 1.22 2021/12/19 11:46:58 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -49,7 +49,7 @@ struct file;
#define PAGE_MASK (~(PAGE_SIZE-1))
#define PAGE_ALIGN(x) (((x) + (PAGE_SIZE-1)) & ~(PAGE_SIZE-1))
-#define offset_in_page(x) ((x) & (PAGE_SIZE-1))
+#define offset_in_page(x) ((uintptr_t)(x) & (PAGE_SIZE-1))
#define untagged_addr(x) (x)