10193 ddi_intr: cast between incompatible function types

Review Request #1352 - Created Jan. 9, 2019 and submitted - Latest diff uploaded

Information
Toomas Soome
illumos-gate
10193
f4cb6ca...
Reviewers
general
../../common/os/ddi_intr.c: In function 'ddi_add_intr':
../../common/os/ddi_intr.c:1360:50: error: cast between incompatible function types from 'uint_t (*)(char *)' {aka 'unsigned int (*)(char *)'} to 'uint_t (*)(char *, char *)' {aka 'unsigned int (*)(char *, char *)'} [-Werror=cast-function-type]
  if ((ret = ddi_intr_add_handler(hdl_p[inumber], (ddi_intr_handler_t *)
                                                  ^
../../common/os/ddi_intr.c: In function 'ddi_add_softintr':
../../common/os/ddi_intr.c:1495:6: error: cast between incompatible function types from 'uint_t (*)(char *)' {aka 'unsigned int (*)(char *)'} to 'uint_t (*)(char *, char *)' {aka 'unsigned int (*)(char *, char *)'} [-Werror=cast-function-type]
      (ddi_intr_handler_t *)int_handler, int_handler_arg)) !=
      ^
cc1: all warnings being treated as errors

  
Loading...