net: Use proper prototype for SYSINIT functions

MFC after:	1 week

(cherry picked from commit 6f8259eae61981d7e5d049be7eed9235f0e8172e)
(cherry picked from commit fa80382b99)
This commit is contained in:
Zhenlei Huang 2025-10-13 18:12:32 +08:00 committed by Franco Fichtner
parent c760cc40f2
commit 3bf7558be1
3 changed files with 3 additions and 3 deletions

View file

@ -87,7 +87,7 @@ static int rt_ifdelroute(const struct rtentry *rt, const struct nhop_object *,
* SI_ORDER_MIDDLE.
*/
static void
route_init(void)
route_init(void *dummy __unused)
{
nhops_init();

View file

@ -186,7 +186,7 @@ rtables_prison_destructor(void *data)
}
static void
rtables_init(void)
rtables_init(void *dummy __unused)
{
osd_method_t methods[PR_MAXMETHOD] = {
[PR_METHOD_ATTACH] = rtables_check_proc_fib,

View file

@ -311,7 +311,7 @@ rtsock_notify_event(uint32_t fibnum, const struct rib_cmd_info *rc)
}
static void
rtsock_init(void)
rtsock_init(void *dummy __unused)
{
rtsbridge_orig_p = rtsock_callback_p;
rtsock_callback_p = &rtsbridge;