git: 95eec982c37a - stable/15 - vm/swap_pager.c: silence compiler warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Jan 2026 00:32:33 UTC
The branch stable/15 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=95eec982c37a7982e7a1b116554fbaa39466f281
commit 95eec982c37a7982e7a1b116554fbaa39466f281
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-01-17 03:30:09 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-01-24 00:26:45 +0000
vm/swap_pager.c: silence compiler warning
(cherry picked from commit 325baf00735756d024b903bfcee50b4f09e90129)
---
sys/vm/swap_pager.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index f6d201309349..834c757aa385 100644
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -1370,7 +1370,7 @@ swap_pager_getpages_locked(struct pctrie_iter *blks, vm_object_t object,
KASSERT((object->flags & OBJ_SWAP) != 0,
("%s: object not swappable", __func__));
- for (i = 0; i < count; i++) {
+ for (pindex = 0, i = 0; i < count; i++) {
m = ma[i];
if (m != bogus_page) {
pindex = m->pindex - i;