11793 mac: cast between incompatible function types
Review Request #2378 — Created Oct. 9, 2019 and submitted
Information | |
---|---|
tsoome | |
illumos-gate | |
11793 | |
5fda1a8... | |
Reviewers | |
general | |
../../common/io/mac/mac_datapath_setup.c: In function 'mac_srs_client_poll_enable': ../../common/io/mac/mac_datapath_setup.c:391:24: error: cast between incompatible function types from 'void (*)(void *)' to 'int (*)(struct __mac_intr_handle *)' [-Werror=cast-function-type] mrf.mrf_intr_enable = (mac_intr_enable_t)mac_soft_ring_intr_enable; ^ ../../common/io/mac/mac_datapath_setup.c: In function 'mac_srs_create_proto_softrings': ../../common/io/mac/mac_datapath_setup.c:1709:6: error: cast between incompatible function types from 'void (*)(void *)' to 'int (*)(struct __mac_intr_handle *)' [-Werror=cast-function-type] (mac_intr_enable_t)mac_soft_ring_intr_enable; ^ cc1: all warnings being treated as errors