Mercurial > illumos > git > illumos-gate
changeset 19200:9a74cf4d90f0
11794 usba: cast between incompatible function types
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Approved by: Dan McDonald <danmcd@joyent.com>
author | Toomas Soome <tsoome@me.com> |
---|---|
date | Sun, 21 Oct 2018 22:48:51 +0300 |
parents | 851015e1f0cd |
children | 3b8becb32af2 |
files | usr/src/uts/common/io/usb/usba/usbai.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/io/usb/usba/usbai.c Sun Oct 21 22:40:53 2018 +0300 +++ b/usr/src/uts/common/io/usb/usba/usbai.c Sun Oct 21 22:48:51 2018 +0300 @@ -1040,7 +1040,7 @@ } } if (ddi_add_event_handler(dip, usba_device->rm_cookie, - (peh_t)disconnect_event_handler, + (peh_t)(uintptr_t)disconnect_event_handler, NULL, &evdata->ev_rm_cb_id) != DDI_SUCCESS) { USB_DPRINTF_L2(DPRINT_MASK_USBAI, usbai_log_handle, "usb_register_hotplug_cbs: add disconnect handler failed"); @@ -1058,7 +1058,7 @@ } } if (ddi_add_event_handler(dip, usba_device->ins_cookie, - (peh_t)reconnect_event_handler, + (peh_t)(uintptr_t)reconnect_event_handler, NULL, &evdata->ev_ins_cb_id) != DDI_SUCCESS) { USB_DPRINTF_L2(DPRINT_MASK_USBAI, usbai_log_handle, "usb_register_hotplug_cbs: add reconnect handler failed"); @@ -1129,7 +1129,7 @@ } } if (ddi_add_event_handler(dip, usba_device->rm_cookie, - (peh_t)usb_evdata->disconnect_event_handler, + (peh_t)(uintptr_t)usb_evdata->disconnect_event_handler, NULL, &evdata->ev_rm_cb_id) != DDI_SUCCESS) { goto fail; @@ -1144,7 +1144,7 @@ } } if (ddi_add_event_handler(dip, usba_device->ins_cookie, - (peh_t)usb_evdata->reconnect_event_handler, + (peh_t)(uintptr_t)usb_evdata->reconnect_event_handler, NULL, &evdata->ev_ins_cb_id) != DDI_SUCCESS) { goto fail; @@ -1159,7 +1159,7 @@ } } if (ddi_add_event_handler(dip, usba_device->resume_cookie, - (peh_t)usb_evdata->post_resume_event_handler, + (peh_t)(uintptr_t)usb_evdata->post_resume_event_handler, NULL, &evdata->ev_resume_cb_id) != DDI_SUCCESS) { goto fail; @@ -1174,7 +1174,7 @@ } } if (ddi_add_event_handler(dip, usba_device->suspend_cookie, - (peh_t)usb_evdata->pre_suspend_event_handler, + (peh_t)(uintptr_t)usb_evdata->pre_suspend_event_handler, NULL, &evdata->ev_suspend_cb_id) != DDI_SUCCESS) { goto fail;