Module Name: src
Committed By: riastradh
Date: Thu Jul 7 13:27:02 UTC 2022
Modified Files:
src/sys/uvm: uvm_device.c
Log Message:
uvm: CTASSERT about MIN_PAGE_SIZE, which is constant.
To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/sys/uvm/uvm_device.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/uvm_device.c
diff -u src/sys/uvm/uvm_device.c:1.79 src/sys/uvm/uvm_device.c:1.80
--- src/sys/uvm/uvm_device.c:1.79 Thu Jul 7 11:29:18 2022
+++ src/sys/uvm/uvm_device.c Thu Jul 7 13:27:02 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_device.c,v 1.79 2022/07/07 11:29:18 rin Exp $ */
+/* $NetBSD: uvm_device.c,v 1.80 2022/07/07 13:27:02 riastradh Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_device.c,v 1.79 2022/07/07 11:29:18 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_device.c,v 1.80 2022/07/07 13:27:02 riastradh Exp $");
#include "opt_uvmhist.h"
@@ -168,7 +168,7 @@ udv_attach(dev_t device, vm_prot_t acces
*
* off += PAGE_SIZE - 2*(VOFF_MAX + 1).
*/
- KASSERT(PAGE_SIZE >= 2);
+ CTASSERT(MIN_PAGE_SIZE >= 2);
off -= __type_max(voff_t);
off += PAGE_SIZE - 2;
off -= __type_max(voff_t);