Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/include/linux Cast, because we get pas...
details: https://anonhg.NetBSD.org/src/rev/0dbe657ccb06
branches: trunk
changeset: 1028693:0dbe657ccb06
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 11:46:58 2021 +0000
description:
Cast, because we get passed void*
Author: Maya Rashish <maya%NetBSD.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>
diffstat:
sys/external/bsd/drm2/include/linux/mm.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 2958527887de -r 0dbe657ccb06 sys/external/bsd/drm2/include/linux/mm.h
--- a/sys/external/bsd/drm2/include/linux/mm.h Sun Dec 19 11:46:47 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/mm.h Sun Dec 19 11:46:58 2021 +0000
@@ -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 @@
#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)
Home |
Main Index |
Thread Index |
Old Index