Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Mar 2026 04:25:47 +0000
From:      Zhenlei Huang <zlei@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 5f0ab9d9e965 - main - amd64: Make start_all_aps() static
Message-ID:  <69b2404b.465a4.420e75c6@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=5f0ab9d9e965225c4af0c6ed481e01eee0ffab8f

commit 5f0ab9d9e965225c4af0c6ed481e01eee0ffab8f
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2026-03-12 04:24:59 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2026-03-12 04:24:59 +0000

    amd64: Make start_all_aps() static
    
    It is not used elsewhere since the change [1].
    
    [1] ac3ede5371af x86/xen: remove PVHv1 code
    
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D55668
---
 sys/amd64/amd64/mp_machdep.c | 3 ++-
 sys/amd64/include/smp.h      | 1 -
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c
index 05e4109e73bb..3b16845e2d87 100644
--- a/sys/amd64/amd64/mp_machdep.c
+++ b/sys/amd64/amd64/mp_machdep.c
@@ -110,6 +110,7 @@ smp_targeted_tlb_shootdown_t smp_targeted_tlb_shootdown =
  */
 
 static int start_ap(int apic_id, vm_paddr_t boot_address);
+static int start_all_aps(void);
 
 /*
  * Initialize the IPI handlers and start up the AP's.
@@ -330,7 +331,7 @@ amd64_mp_alloc_pcpu(void)
 /*
  * start each AP in our list
  */
-int
+static int
 start_all_aps(void)
 {
 	vm_page_t m_boottramp, m_pml4, m_pdp, m_pd[4];
diff --git a/sys/amd64/include/smp.h b/sys/amd64/include/smp.h
index 28c372a2e556..55ad236a4617 100644
--- a/sys/amd64/include/smp.h
+++ b/sys/amd64/include/smp.h
@@ -35,7 +35,6 @@ inthand_t
 	IDTVEC(rendezvous_pti);
 
 void	invlop_handler(void);
-int	start_all_aps(void);
 
 #endif /* !LOCORE */
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69b2404b.465a4.420e75c6>