Module Name: src Committed By: pgoyette Date: Mon Oct 30 03:25:14 UTC 2017
Modified Files: src/sys/uvm/pmap: pmap.c Log Message: Remove unneeded casts to (uintptr_t). This is already taken care of in the xxxHIST_LOG() macros. No need to pull-up to -8 - the extra cast really won't hurt anything. To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/sys/uvm/pmap/pmap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/uvm/pmap/pmap.c diff -u src/sys/uvm/pmap/pmap.c:1.39 src/sys/uvm/pmap/pmap.c:1.40 --- src/sys/uvm/pmap/pmap.c:1.39 Mon Oct 30 01:19:46 2017 +++ src/sys/uvm/pmap/pmap.c Mon Oct 30 03:25:14 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.39 2017/10/30 01:19:46 pgoyette Exp $ */ +/* $NetBSD: pmap.c,v 1.40 2017/10/30 03:25:14 pgoyette Exp $ */ /*- * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc. @@ -67,7 +67,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.39 2017/10/30 01:19:46 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.40 2017/10/30 03:25:14 pgoyette Exp $"); /* * Manages physical address maps. @@ -885,7 +885,7 @@ pmap_pte_remove(pmap_t pmap, vaddr_t sva UVMHIST_FUNC(__func__); UVMHIST_CALLED(pmaphist); UVMHIST_LOG(pmaphist, "(pmap=%#jx kernel=%c va=%#jx..%#jx)", - (uintmax_t)(uintptr_t)pmap, (is_kernel_pmap_p ? 1 : 0), sva, eva); + (uintptr_t)pmap, (is_kernel_pmap_p ? 1 : 0), sva, eva); UVMHIST_LOG(pmaphist, "ptep=%#jx, flags(npte)=%#jx", (uintptr_t)ptep, flags, 0, 0); @@ -1029,8 +1029,7 @@ pmap_pte_protect(pmap_t pmap, vaddr_t sv UVMHIST_FUNC(__func__); UVMHIST_CALLED(pmaphist); UVMHIST_LOG(pmaphist, "(pmap=%#jx kernel=%jx va=%#jx..%#jx)", - (uintmax_t)(uintptr_t)pmap, (pmap == pmap_kernel() ? 1 : 0), - sva, eva); + (uintptr_t)pmap, (pmap == pmap_kernel() ? 1 : 0), sva, eva); UVMHIST_LOG(pmaphist, "ptep=%#jx, flags(npte)=%#jx)", (uintptr_t)ptep, flags, 0, 0);