Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Apr 2026 15:29:14 +0000
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 251267aa38af - stable/15 - arm: Make init_proc0 static
Message-ID:  <69eb8c4a.363ae.31641c09@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/15 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=251267aa38afd6e8ab1cc13468ba24b25eaef5e2

commit 251267aa38afd6e8ab1cc13468ba24b25eaef5e2
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2026-01-27 18:30:23 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2026-04-24 15:26:39 +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
    
    (cherry picked from commit 05609c5eff27ea7b382237bd2a937c01c1ceb59a)
---
 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 3287485d684e..0b395d42fc4a 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);


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69eb8c4a.363ae.31641c09>