Module Name: src
Committed By: skrll
Date: Sun Dec 23 11:45:39 UTC 2018
Modified Files:
src/sys/arch/evbarm/fdt: fdt_machdep.c
Log Message:
Appease clang. Tested by roy.
To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/arch/evbarm/fdt/fdt_machdep.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/arch/evbarm/fdt/fdt_machdep.c
diff -u src/sys/arch/evbarm/fdt/fdt_machdep.c:1.56 src/sys/arch/evbarm/fdt/fdt_machdep.c:1.57
--- src/sys/arch/evbarm/fdt/fdt_machdep.c:1.56 Wed Nov 28 09:16:19 2018
+++ src/sys/arch/evbarm/fdt/fdt_machdep.c Sun Dec 23 11:45:39 2018
@@ -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 <[email protected]>
@@ -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 @@ initarm(void *arg)
* 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);