git: 5d1cf19810bb - stable/14 - libkern: Use proper prototype for SYSINIT functions
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 31 Jan 2026 18:27:48 UTC
The branch stable/14 has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=5d1cf19810bb46afe3ed487a71971a2163f710d8
commit 5d1cf19810bb46afe3ed487a71971a2163f710d8
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2025-10-13 10:12:31 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2026-01-31 18:25:03 +0000
libkern: Use proper prototype for SYSINIT functions
MFC after: 1 week
(cherry picked from commit 850a88e8db761c55b9aa56c2cf4da258dc61dec5)
(cherry picked from commit 2b27541988072b3c1e5f2f901e622f38af0be4c9)
---
sys/libkern/arc4random.c | 4 ++--
sys/libkern/x86/crc32_sse42.c | 4 +++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/sys/libkern/arc4random.c b/sys/libkern/arc4random.c
index adb496cf76b7..eabc63e4e499 100644
--- a/sys/libkern/arc4random.c
+++ b/sys/libkern/arc4random.c
@@ -157,7 +157,7 @@ chacha20_randomstir(struct chacha20_s *chacha20)
* Initialize the contexts.
*/
static void
-chacha20_init(void)
+chacha20_init(void *dummy __unused)
{
struct chacha20_s *chacha20;
@@ -177,7 +177,7 @@ SYSINIT(chacha20, SI_SUB_LOCK, SI_ORDER_ANY, chacha20_init, NULL);
static void
-chacha20_uninit(void)
+chacha20_uninit(void *dummy __unused)
{
struct chacha20_s *chacha20;
diff --git a/sys/libkern/x86/crc32_sse42.c b/sys/libkern/x86/crc32_sse42.c
index b79c7afbeeb1..94ffdc178910 100644
--- a/sys/libkern/x86/crc32_sse42.c
+++ b/sys/libkern/x86/crc32_sse42.c
@@ -199,8 +199,10 @@ crc32c_shift(uint32_t zeros[][256], uint32_t crc)
static void
#ifndef _KERNEL
__attribute__((__constructor__))
-#endif
crc32c_init_hw(void)
+#else
+crc32c_init_hw(void *dummy __unused)
+#endif
{
crc32c_zeros(crc32c_long, LONG);
crc32c_zeros(crc32c_2long, 2 * LONG);