Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm nkmempages should be size_t
details: https://anonhg.NetBSD.org/src/rev/45015afee469
branches: trunk
changeset: 373758:45015afee469
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Feb 26 07:27:14 2023 +0000
description:
nkmempages should be size_t
diffstat:
sys/rump/librump/rumpkern/emul.c | 6 +++---
sys/uvm/uvm_extern.h | 4 ++--
sys/uvm/uvm_km.c | 8 ++++----
3 files changed, 9 insertions(+), 9 deletions(-)
diffs (81 lines):
diff -r a2d87afd96f8 -r 45015afee469 sys/rump/librump/rumpkern/emul.c
--- a/sys/rump/librump/rumpkern/emul.c Sun Feb 26 07:13:54 2023 +0000
+++ b/sys/rump/librump/rumpkern/emul.c Sun Feb 26 07:27:14 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: emul.c,v 1.196 2020/04/30 03:28:19 riastradh Exp $ */
+/* $NetBSD: emul.c,v 1.197 2023/02/26 07:27:14 skrll Exp $ */
/*
* Copyright (c) 2007-2011 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.196 2020/04/30 03:28:19 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.197 2023/02/26 07:27:14 skrll Exp $");
#include <sys/param.h>
#include <sys/cprng.h>
@@ -57,7 +57,7 @@
*/
#define PHYSMEM 512*256
psize_t physmem = PHYSMEM;
-int nkmempages = PHYSMEM/2; /* from le chapeau */
+size_t nkmempages = PHYSMEM/2; /* from le chapeau */
#undef PHYSMEM
struct vnode *rootvp;
diff -r a2d87afd96f8 -r 45015afee469 sys/uvm/uvm_extern.h
--- a/sys/uvm/uvm_extern.h Sun Feb 26 07:13:54 2023 +0000
+++ b/sys/uvm/uvm_extern.h Sun Feb 26 07:27:14 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_extern.h,v 1.232 2021/05/31 10:57:02 riastradh Exp $ */
+/* $NetBSD: uvm_extern.h,v 1.233 2023/02/26 07:27:14 skrll Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -840,7 +840,7 @@
/* kern_malloc.c */
void kmeminit_nkmempages(void);
-extern int nkmempages;
+extern size_t nkmempages;
#endif /* _KERNEL */
diff -r a2d87afd96f8 -r 45015afee469 sys/uvm/uvm_km.c
--- a/sys/uvm/uvm_km.c Sun Feb 26 07:13:54 2023 +0000
+++ b/sys/uvm/uvm_km.c Sun Feb 26 07:27:14 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_km.c,v 1.163 2023/02/12 16:28:32 andvar Exp $ */
+/* $NetBSD: uvm_km.c,v 1.164 2023/02/26 07:27:14 skrll Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -152,7 +152,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_km.c,v 1.163 2023/02/12 16:28:32 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_km.c,v 1.164 2023/02/26 07:27:14 skrll Exp $");
#include "opt_uvmhist.h"
@@ -201,7 +201,7 @@
static struct vm_map_entry kernel_image_mapent_store;
static struct vm_map_entry kernel_kmem_mapent_store;
-int nkmempages = 0;
+size_t nkmempages = 0;
vaddr_t kmembase;
vsize_t kmemsize;
@@ -216,7 +216,7 @@
void
kmeminit_nkmempages(void)
{
- int npages;
+ size_t npages;
if (nkmempages != 0) {
/*
Home |
Main Index |
Thread Index |
Old Index