spa: fix signature mismatch for spa_boot_init as eventhandler required

Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: SHENGYI HONG <aokblast@FreeBSD.org>
Closes #17088
This commit is contained in:
aokblast 2025-02-26 03:28:57 +08:00 committed by GitHub
parent d7d2744711
commit a5fb5c55be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -1214,7 +1214,7 @@ extern void vdev_mirror_stat_fini(void);
/* Initialization and termination */
extern void spa_init(spa_mode_t mode);
extern void spa_fini(void);
extern void spa_boot_init(void);
extern void spa_boot_init(void *);
/* properties */
extern int spa_prop_set(spa_t *spa, nvlist_t *nvp);

View File

@ -2549,8 +2549,9 @@ spa_name_compare(const void *a1, const void *a2)
}
void
spa_boot_init(void)
spa_boot_init(void *unused)
{
(void) unused;
spa_config_load();
}