10537 softmac: cast between incompatible function types

Review Request #1557 - Created March 12, 2019 and submitted

Information
Toomas Soome
illumos-gate
10537
20db9fc...
Reviewers
general
../../common/io/softmac/softmac_dev.c:88:2: error: cast between incompatible function types from 'void (*)(queue_t *, mblk_t *)' {aka 'void (*)(struct queue *, struct msgb *)'} to 'int (*)()' [-Werror=cast-function-type]
  (pfi_t)softmac_mod_rput, /* qi_putp */
  ^
../../common/io/softmac/softmac_dev.c:97:2: error: cast between incompatible function types from 'void (*)(queue_t *, mblk_t *)' {aka 'void (*)(struct queue *, struct msgb *)'} to 'int (*)()' [-Werror=cast-function-type]
  (pfi_t)softmac_mod_wput, /* qi_putp */
  ^
../../common/io/softmac/softmac_dev.c:98:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (pfi_t)softmac_mod_wsrv, /* qi_srvp */
  ^
../../common/io/softmac/softmac_dev.c:120:2: error: cast between incompatible function types from 'void (*)(queue_t *, mblk_t *)' {aka 'void (*)(struct queue *, struct msgb *)'} to 'int (*)()' [-Werror=cast-function-type]
  (pfi_t)softmac_drv_wput, (pfi_t)softmac_drv_wsrv, NULL, NULL, NULL,
  ^
../../common/io/softmac/softmac_dev.c:120:27: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
  (pfi_t)softmac_drv_wput, (pfi_t)softmac_drv_wsrv, NULL, NULL, NULL,
                           ^
cc1: all warnings being treated as errors

  
Andrew Stormont
Andy Fiddaman
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...