event/subsystem: remove unused params from g_next_subsystem->fini

Change-Id: I61ee650848cefe592fda23af8e1ed9aa6efb8b88
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/386890
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Dariusz Stojaczyk 2017-11-13 17:57:27 +01:00 committed by Daniel Verkamp
parent 8bd0514b35
commit f91894490b
8 changed files with 9 additions and 9 deletions

View File

@ -55,7 +55,7 @@ struct spdk_subsystem {
const char *name;
/* User must call spdk_subsystem_init_next() when they are done with their initialization. */
void (*init)(void);
void (*fini)(void *arg1, void *arg2);
void (*fini)(void);
void (*config)(FILE *fp);
TAILQ_ENTRY(spdk_subsystem) tailq;
};

View File

@ -190,7 +190,7 @@ _spdk_subsystem_fini_next(void *arg1, void *arg2)
while (g_next_subsystem) {
if (g_next_subsystem->fini) {
g_next_subsystem->fini(NULL, NULL);
g_next_subsystem->fini();
return;
}
g_next_subsystem = TAILQ_PREV(g_next_subsystem, spdk_subsystem_list, tailq);

View File

@ -78,7 +78,7 @@ spdk_bdev_subsystem_finish_done(void *cb_arg)
}
static void
spdk_bdev_subsystem_finish(void *arg1, void *arg2)
spdk_bdev_subsystem_finish(void)
{
spdk_bdev_finish(spdk_bdev_subsystem_finish_done, NULL);
}

View File

@ -55,7 +55,7 @@ spdk_copy_engine_subsystem_finish_done(void *cb_arg)
}
static void
spdk_copy_engine_subsystem_finish(void *arg1, void *arg2)
spdk_copy_engine_subsystem_finish(void)
{
spdk_copy_engine_finish(spdk_copy_engine_subsystem_finish_done, NULL);
}

View File

@ -54,7 +54,7 @@ spdk_iscsi_subsystem_fini_done(void *arg)
}
static void
spdk_iscsi_subsystem_fini(void *arg1, void *arg2)
spdk_iscsi_subsystem_fini(void)
{
spdk_iscsi_fini(spdk_iscsi_subsystem_fini_done, NULL);
}

View File

@ -48,7 +48,7 @@ spdk_interface_subsystem_init(void)
}
static void
spdk_interface_subsystem_destroy(void *arg1, void *arg2)
spdk_interface_subsystem_destroy(void)
{
spdk_interface_destroy();
spdk_subsystem_fini_next();
@ -68,7 +68,7 @@ spdk_net_subsystem_start(void)
}
static void
spdk_net_subsystem_fini(void *arg1, void *arg2)
spdk_net_subsystem_fini(void)
{
spdk_net_framework_fini();
spdk_subsystem_fini_next();

View File

@ -48,7 +48,7 @@ spdk_scsi_subsystem_init(void)
}
static void
spdk_scsi_subsystem_fini(void *arg1, void *arg2)
spdk_scsi_subsystem_fini(void)
{
spdk_scsi_fini();
spdk_subsystem_fini_next();

View File

@ -48,7 +48,7 @@ spdk_vhost_subsystem_init(void)
}
static void
spdk_vhost_subsystem_fini(void *arg1, void *arg2)
spdk_vhost_subsystem_fini(void)
{
spdk_vhost_fini();
spdk_subsystem_fini_next();