mirror of
https://git.freebsd.org/src.git
synced 2026-01-12 06:54:03 +00:00
libkern: Use proper prototype for SYSINIT functions
MFC after: 1 week
This commit is contained in:
parent
a988393b46
commit
850a88e8db
2 changed files with 5 additions and 3 deletions
|
|
@ -156,7 +156,7 @@ chacha20_randomstir(struct chacha20_s *chacha20)
|
|||
* Initialize the contexts.
|
||||
*/
|
||||
static void
|
||||
chacha20_init(void)
|
||||
chacha20_init(void *dummy __unused)
|
||||
{
|
||||
struct chacha20_s *chacha20;
|
||||
|
||||
|
|
@ -176,7 +176,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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue