Skip to content

Commit fb2c2cd

Browse files
committed
spa: fix signature mismatch for spa_boot_init as eventhandler required
Signed-off-by: SHENGYI HONG <[email protected]>
1 parent ecc44c4 commit fb2c2cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/sys/spa.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ extern void vdev_mirror_stat_fini(void);
12141214
/* Initialization and termination */
12151215
extern void spa_init(spa_mode_t mode);
12161216
extern void spa_fini(void);
1217-
extern void spa_boot_init(void);
1217+
extern void spa_boot_init(void *);
12181218

12191219
/* properties */
12201220
extern int spa_prop_set(spa_t *spa, nvlist_t *nvp);

module/zfs/spa_misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2549,7 +2549,7 @@ spa_name_compare(const void *a1, const void *a2)
25492549
}
25502550

25512551
void
2552-
spa_boot_init(void)
2552+
spa_boot_init(void *dummy __unused)
25532553
{
25542554
spa_config_load();
25552555
}

0 commit comments

Comments
 (0)