diff options
author | Toomas Soome <tsoome@me.com> | 2018-10-21 22:37:40 +0300 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2019-11-07 08:27:18 +0200 |
commit | 327c8d1665439dd2540c1b460773bd9f0c1c0fa9 (patch) | |
tree | b39748c1897371f390449ca1fc4618fb08c6597a | |
parent | 22f89f96cd7b45b9686231ed7d98e610077df6c6 (diff) | |
download | illumos-joyent-327c8d1665439dd2540c1b460773bd9f0c1c0fa9.tar.gz |
11792 ibtl: cast between incompatible function types
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/uts/common/io/ib/ibtl/ibtl_handlers.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/uts/common/io/ib/ibtl/ibtl_handlers.c b/usr/src/uts/common/io/ib/ibtl/ibtl_handlers.c index b4046299a0..4604334971 100644 --- a/usr/src/uts/common/io/ib/ibtl/ibtl_handlers.c +++ b/usr/src/uts/common/io/ib/ibtl/ibtl_handlers.c @@ -505,8 +505,8 @@ ibt_cisco_embedded_sm_rereg_fix(void *arg) hca_guid = hca_devp->hd_hca_attr->hca_node_guid; mutex_exit(&ibtl_clnt_list_mutex); - ibt_status = ((ibtl_node_info_cb_t)mgrp->mgr_async_handler)(hca_guid, - port, sm_lid, &node_info); + ibt_status = ((ibtl_node_info_cb_t)(uintptr_t) + mgrp->mgr_async_handler)(hca_guid, port, sm_lid, &node_info); if (ibt_status == IBT_SUCCESS) { if ((node_info.n_vendor_id == IBT_VENDOR_CISCO) && (node_info.n_node_type == IBT_NODE_TYPE_SWITCH)) { @@ -740,7 +740,7 @@ ibtl_do_hca_asyncs(ibtl_hca_devinfo_t *hca_devp) if ((code == IBT_PORT_CHANGE_EVENT) && eventp->ev_port_flags & IBT_PORT_CHANGE_SM_LID) ibtl_cm_get_node_info(hca_devp, - (ibt_async_handler_t)ibtl_node_info_cb); + (ibt_async_handler_t)(uintptr_t)ibtl_node_info_cb); /* wait for node info task to complete */ while (hca_devp->hd_async_task_cnt != 0) cv_wait(&hca_devp->hd_async_task_cv, |