The branch stable/14 has been updated by zlei:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=8f6cd5b69a10df72b7749531bc9bcb684931233c

commit 8f6cd5b69a10df72b7749531bc9bcb684931233c
Author:     Zhenlei Huang <[email protected]>
AuthorDate: 2025-10-13 10:12:35 +0000
Commit:     Zhenlei Huang <[email protected]>
CommitDate: 2026-01-31 18:25:06 +0000

    sys/sysent.h: Remove an unneeded type cast
    
    The function exec_sysvec_init() already has the right prototype.
    
    While here, remove an extra semicolon from the macro INIT_SYSENTVEC.
    
    MFC after:      1 week
    
    (cherry picked from commit 296db8c72dca1c17d9a4ce94cc8881e48df8187b)
    (cherry picked from commit 64771eeaf82f06c2af4e0f20f40baa9d5103f0dd)
---
 sys/sys/sysent.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/sys/sysent.h b/sys/sys/sysent.h
index a120c13f39cd..c0e5a265fd32 100644
--- a/sys/sys/sysent.h
+++ b/sys/sys/sysent.h
@@ -334,8 +334,7 @@ void exec_free_abi_mappings(struct proc *p);
 void exec_onexec_old(struct thread *td);
 
 #define INIT_SYSENTVEC(name, sv)                                       \
-    SYSINIT(name, SI_SUB_EXEC, SI_ORDER_ANY,                           \
-       (sysinit_cfunc_t)exec_sysvec_init, sv);
+    SYSINIT(name, SI_SUB_EXEC, SI_ORDER_ANY, exec_sysvec_init, sv)
 
 #endif /* _KERNEL */
 

Reply via email to