Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/fdt Appease clang. Tested by roy.
details: https://anonhg.NetBSD.org/src/rev/c84408661408
branches: trunk
changeset: 995441:c84408661408
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Dec 23 11:45:39 2018 +0000
description:
Appease clang. Tested by roy.
diffstat:
sys/arch/evbarm/fdt/fdt_machdep.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r df134d810ce1 -r c84408661408 sys/arch/evbarm/fdt/fdt_machdep.c
--- a/sys/arch/evbarm/fdt/fdt_machdep.c Sun Dec 23 11:42:13 2018 +0000
+++ b/sys/arch/evbarm/fdt/fdt_machdep.c Sun Dec 23 11:45:39 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_machdep.c,v 1.56 2018/11/28 09:16:19 ryo Exp $ */
+/* $NetBSD: fdt_machdep.c,v 1.57 2018/12/23 11:45:39 skrll Exp $ */
/*-
* Copyright (c) 2015-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdt_machdep.c,v 1.56 2018/11/28 09:16:19 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_machdep.c,v 1.57 2018/12/23 11:45:39 skrll Exp $");
#include "opt_machdep.h"
#include "opt_bootconfig.h"
@@ -555,7 +555,9 @@
* Now we have APs started the pages used for stacks and L1PT can
* be given to uvm
*/
- extern char __start__init_memory[], __stop__init_memory[];
+ extern char const __start__init_memory[];
+ extern char const __stop__init_memory[] __weak;
+
if (__start__init_memory != __stop__init_memory) {
const paddr_t spa = KERN_VTOPHYS((vaddr_t)__start__init_memory);
const paddr_t epa = KERN_VTOPHYS((vaddr_t)__stop__init_memory);
Home |
Main Index |
Thread Index |
Old Index