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:
parent
8bd0514b35
commit
f91894490b
@ -55,7 +55,7 @@ struct spdk_subsystem {
|
|||||||
const char *name;
|
const char *name;
|
||||||
/* User must call spdk_subsystem_init_next() when they are done with their initialization. */
|
/* User must call spdk_subsystem_init_next() when they are done with their initialization. */
|
||||||
void (*init)(void);
|
void (*init)(void);
|
||||||
void (*fini)(void *arg1, void *arg2);
|
void (*fini)(void);
|
||||||
void (*config)(FILE *fp);
|
void (*config)(FILE *fp);
|
||||||
TAILQ_ENTRY(spdk_subsystem) tailq;
|
TAILQ_ENTRY(spdk_subsystem) tailq;
|
||||||
};
|
};
|
||||||
|
@ -190,7 +190,7 @@ _spdk_subsystem_fini_next(void *arg1, void *arg2)
|
|||||||
|
|
||||||
while (g_next_subsystem) {
|
while (g_next_subsystem) {
|
||||||
if (g_next_subsystem->fini) {
|
if (g_next_subsystem->fini) {
|
||||||
g_next_subsystem->fini(NULL, NULL);
|
g_next_subsystem->fini();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
g_next_subsystem = TAILQ_PREV(g_next_subsystem, spdk_subsystem_list, tailq);
|
g_next_subsystem = TAILQ_PREV(g_next_subsystem, spdk_subsystem_list, tailq);
|
||||||
|
@ -78,7 +78,7 @@ spdk_bdev_subsystem_finish_done(void *cb_arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
spdk_bdev_subsystem_finish(void *arg1, void *arg2)
|
spdk_bdev_subsystem_finish(void)
|
||||||
{
|
{
|
||||||
spdk_bdev_finish(spdk_bdev_subsystem_finish_done, NULL);
|
spdk_bdev_finish(spdk_bdev_subsystem_finish_done, NULL);
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ spdk_copy_engine_subsystem_finish_done(void *cb_arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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);
|
spdk_copy_engine_finish(spdk_copy_engine_subsystem_finish_done, NULL);
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@ spdk_iscsi_subsystem_fini_done(void *arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
spdk_iscsi_subsystem_fini(void *arg1, void *arg2)
|
spdk_iscsi_subsystem_fini(void)
|
||||||
{
|
{
|
||||||
spdk_iscsi_fini(spdk_iscsi_subsystem_fini_done, NULL);
|
spdk_iscsi_fini(spdk_iscsi_subsystem_fini_done, NULL);
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ spdk_interface_subsystem_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
spdk_interface_subsystem_destroy(void *arg1, void *arg2)
|
spdk_interface_subsystem_destroy(void)
|
||||||
{
|
{
|
||||||
spdk_interface_destroy();
|
spdk_interface_destroy();
|
||||||
spdk_subsystem_fini_next();
|
spdk_subsystem_fini_next();
|
||||||
@ -68,7 +68,7 @@ spdk_net_subsystem_start(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
spdk_net_subsystem_fini(void *arg1, void *arg2)
|
spdk_net_subsystem_fini(void)
|
||||||
{
|
{
|
||||||
spdk_net_framework_fini();
|
spdk_net_framework_fini();
|
||||||
spdk_subsystem_fini_next();
|
spdk_subsystem_fini_next();
|
||||||
|
@ -48,7 +48,7 @@ spdk_scsi_subsystem_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
spdk_scsi_subsystem_fini(void *arg1, void *arg2)
|
spdk_scsi_subsystem_fini(void)
|
||||||
{
|
{
|
||||||
spdk_scsi_fini();
|
spdk_scsi_fini();
|
||||||
spdk_subsystem_fini_next();
|
spdk_subsystem_fini_next();
|
||||||
|
@ -48,7 +48,7 @@ spdk_vhost_subsystem_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
spdk_vhost_subsystem_fini(void *arg1, void *arg2)
|
spdk_vhost_subsystem_fini(void)
|
||||||
{
|
{
|
||||||
spdk_vhost_fini();
|
spdk_vhost_fini();
|
||||||
spdk_subsystem_fini_next();
|
spdk_subsystem_fini_next();
|
||||||
|
Loading…
Reference in New Issue
Block a user