git: 05609c5eff27 - main - arm: Make init_proc0 static
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Jan 2026 18:31:44 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=05609c5eff27ea7b382237bd2a937c01c1ceb59a
commit 05609c5eff27ea7b382237bd2a937c01c1ceb59a
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2026-01-27 18:30:23 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2026-01-27 18:30:23 +0000
arm: Make init_proc0 static
This function is not used outside of machdep.c and is already static
on arm64 and riscv.
Reviewed by: imp
Effort: CHERI upstreaming
Sponsored by: AFRL, DARPA
Differential Revision: https://reviews.freebsd.org/D54838
---
sys/arm/arm/machdep.c | 2 +-
sys/arm/include/machdep.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/sys/arm/arm/machdep.c b/sys/arm/arm/machdep.c
index cfc0b32f5102..9532e19a11b3 100644
--- a/sys/arm/arm/machdep.c
+++ b/sys/arm/arm/machdep.c
@@ -374,7 +374,7 @@ pcpu0_init(void)
/*
* Initialize proc0
*/
-void
+static void
init_proc0(vm_offset_t kstack)
{
proc_linkup0(&proc0, &thread0);
diff --git a/sys/arm/include/machdep.h b/sys/arm/include/machdep.h
index 45e44a65368b..ada2dfa502aa 100644
--- a/sys/arm/include/machdep.h
+++ b/sys/arm/include/machdep.h
@@ -15,7 +15,6 @@ extern vm_offset_t abtstack;
/* misc prototypes used by the many arm machdeps */
struct trapframe;
-void init_proc0(vm_offset_t kstack);
void halt(void);
void abort_handler(struct trapframe *, int );
void set_stackptrs(int cpu);