Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm initialize a variable to appease clang
details: https://anonhg.NetBSD.org/src/rev/9bebf67c60da
branches: trunk
changeset: 366689:9bebf67c60da
user: macallan <macallan%NetBSD.org@localhost>
date: Wed Jun 08 16:55:00 2022 +0000
description:
initialize a variable to appease clang
diffstat:
sys/uvm/uvm_map.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7a5ba7e0ad69 -r 9bebf67c60da sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Wed Jun 08 13:08:44 2022 +0000
+++ b/sys/uvm/uvm_map.c Wed Jun 08 16:55:00 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_map.c,v 1.401 2022/06/06 07:00:02 rin Exp $ */
+/* $NetBSD: uvm_map.c,v 1.402 2022/06/08 16:55:00 macallan Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.401 2022/06/06 07:00:02 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.402 2022/06/08 16:55:00 macallan Exp $");
#include "opt_ddb.h"
#include "opt_pax.h"
@@ -1822,7 +1822,7 @@
#define INVARIANTS() \
uvm_findspace_invariants(map, orig_hint, length, uobj, uoffset, align,\
flags, hint, entry, __LINE__)
- struct vm_map_entry *entry;
+ struct vm_map_entry *entry = NULL;
struct vm_map_entry *child, *prev, *tmp;
vaddr_t orig_hint __diagused;
const int topdown = map->flags & VM_MAP_TOPDOWN;
Home |
Main Index |
Thread Index |
Old Index