Skip to content
Permalink
Browse files

10370 sunmdi: cast between incompatible function types

Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Approved by: Hans Rosenfeld <hans.rosenfeld@joyent.com>
  • Loading branch information
tsoome committed Oct 19, 2018
1 parent f2c063a commit 9426efbbd0cbf49bc29df076259d21faff4226a9
Showing with 7 additions and 2 deletions.
  1. +7 −2 usr/src/uts/common/os/sunmdi.c
@@ -1742,6 +1742,12 @@ mdi_set_lb_policy(dev_info_t *cdip, client_lb_t lb)
return (rv);
}

static void
mdi_failover_cb(void *arg)
{
(void)i_mdi_failover(arg);
}

/*
* mdi_failover():
* failover function called by the vHCI drivers to initiate
@@ -1849,8 +1855,7 @@ mdi_failover(dev_info_t *vdip, dev_info_t *cdip, int flags)
* Submit the initiate failover request via CPR safe
* taskq threads.
*/
(void) taskq_dispatch(mdi_taskq, (task_func_t *)i_mdi_failover,
ct, KM_SLEEP);
(void) taskq_dispatch(mdi_taskq, mdi_failover_cb, ct, KM_SLEEP);
return (MDI_ACCEPT);
} else {
/*

0 comments on commit 9426efb

Please sign in to comment.
You can’t perform that action at this time.