git: 2e5a55c7af56 - stable/15 - MAC: Use proper prototype for SYSINIT functions

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Sat, 31 Jan 2026 17:04:29 UTC
The branch stable/15 has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=2e5a55c7af56022fb38e3d528b2e8b1257de891d

commit 2e5a55c7af56022fb38e3d528b2e8b1257de891d
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2025-10-13 10:12:35 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2026-01-31 17:01:06 +0000

    MAC: Use proper prototype for SYSINIT functions
    
    MFC after:      1 week
    
    (cherry picked from commit 12ac59a0d1f6ae2065e8e2cb36c53c00771bfc74)
---
 sys/security/mac/mac_framework.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/security/mac/mac_framework.c b/sys/security/mac/mac_framework.c
index d742b5dcbc3a..b0776160cc74 100644
--- a/sys/security/mac/mac_framework.c
+++ b/sys/security/mac/mac_framework.c
@@ -320,7 +320,7 @@ mac_policy_xlock_assert(void)
  * Initialize the MAC subsystem, including appropriate SMP locks.
  */
 static void
-mac_init(void)
+mac_init(void *dummy __unused)
 {
 
 	LIST_INIT(&mac_static_policy_list);
@@ -340,7 +340,7 @@ mac_init(void)
  * kernel, or loaded before the kernel startup.
  */
 static void
-mac_late_init(void)
+mac_late_init(void *dummy __unused)
 {
 
 	mac_late = 1;