diff options
| author | Toomas Soome <tsoome@me.com> | 2018-10-21 18:47:25 +0300 |
|---|---|---|
| committer | Toomas Soome <tsoome@me.com> | 2019-10-01 12:39:37 +0300 |
| commit | 7a2e057ded7c57de0de12bba546e48c437d4aba0 (patch) | |
| tree | 6e6c4a6cc7671e8a8601622b4b28ff8d5e448dd4 | |
| parent | 16d00323713cfa922181df7d69d973398dea15ff (diff) | |
| download | illumos-joyent-7a2e057ded7c57de0de12bba546e48c437d4aba0.tar.gz | |
11734 pcic: cast between incompatible function types
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
Approved by: Dan McDonald <danmcd@joyent.com>
| -rw-r--r-- | usr/src/uts/common/io/pcic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/common/io/pcic.c b/usr/src/uts/common/io/pcic.c index bbf9e11f9e..b2bcc0e91b 100644 --- a/usr/src/uts/common/io/pcic.c +++ b/usr/src/uts/common/io/pcic.c @@ -4744,7 +4744,7 @@ pcic_set_interrupt(dev_info_t *dip, set_irq_handler_t *handler) } pcic->irq_current->intr = - (ddi_intr_handler_t *)handler->handler; + (ddi_intr_handler_t *)(uintptr_t)handler->handler; pcic->irq_current->handler_id = handler->handler_id; pcic->irq_current->arg1 = handler->arg1; pcic->irq_current->arg2 = handler->arg2; @@ -4757,7 +4757,7 @@ pcic_set_interrupt(dev_info_t *dip, set_irq_handler_t *handler) break; default: - intr->intr = (ddi_intr_handler_t *)handler->handler; + intr->intr = (ddi_intr_handler_t *)(uintptr_t)handler->handler; intr->handler_id = handler->handler_id; intr->arg1 = handler->arg1; intr->arg2 = handler->arg2; |
