git: 9ddec7bde2b1 - stable/14 - arm: Use proper prototype for SYSINIT functions

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Sat, 31 Jan 2026 18:28:02 UTC
The branch stable/14 has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=9ddec7bde2b1f65e8347d8b1b550d4e7f80037ba

commit 9ddec7bde2b1f65e8347d8b1b550d4e7f80037ba
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2025-10-13 10:12:35 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2026-01-31 18:25:06 +0000

    arm: Use proper prototype for SYSINIT functions
    
    The only possible return value of function module_info_init() is 0. Make
    it return void to match the prototype of SYSINIT.
    
    MFC after:      1 week
    
    (cherry picked from commit 0b9c12fa976446705635a94984f45232f034eecf)
    (cherry picked from commit fcdc37febbb6b6c4efb7f4f42162466992f90523)
---
 sys/arm/arm/pmap-v6.c | 2 +-
 sys/arm/arm/unwind.c  | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/sys/arm/arm/pmap-v6.c b/sys/arm/arm/pmap-v6.c
index 737e215b44b6..ce56119e283e 100644
--- a/sys/arm/arm/pmap-v6.c
+++ b/sys/arm/arm/pmap-v6.c
@@ -1247,7 +1247,7 @@ pmap_bootstrap(vm_offset_t firstaddr)
 }
 
 static void
-pmap_init_reserved_pages(void)
+pmap_init_reserved_pages(void *dummy __unused)
 {
 	struct pcpu *pc;
 	vm_offset_t pages;
diff --git a/sys/arm/arm/unwind.c b/sys/arm/arm/unwind.c
index 591bae3dfc26..d012b29980cc 100644
--- a/sys/arm/arm/unwind.c
+++ b/sys/arm/arm/unwind.c
@@ -279,7 +279,7 @@ unwind_module_unloaded(struct linker_file *lf)
  * the unwind tables might be stripped, so instead we have to use the
  * _exidx_start/end symbols created by ldscript.arm.
  */
-static int
+static void
 module_info_init(void *arg __unused)
 {
 	struct linker_file thekernel;
@@ -292,8 +292,6 @@ module_info_init(void *arg __unused)
 	thekernel.exidx_addr = CADDR(&_exidx_start);
 	thekernel.exidx_size = UADDR(&_exidx_end) - UADDR(&_exidx_start);
 	populate_module_info(create_module_info(), &thekernel);
-
-	return (0);
 }
 SYSINIT(unwind_init, SI_SUB_KMEM, SI_ORDER_ANY, module_info_init, NULL);