11593 iscsi: cast between incompatible function types

Review Request #2246 — Created Aug. 21, 2019 and submitted

tsoome
illumos-gate
11593
bec11d0...
general
../../common/io/scsi/adapters/iscsi/iscsi_login.c:238:8: error: cast between incompatible function types from 'iscsi_status_t (*)(void *)' {aka 'enum iscsi_status (*)(void *)'} to 'void (*)()' [-Werror=cast-function-type]
        (void(*)())iscsi_login_start, itp, DDI_SLEEP) !=
        ^
../../common/io/scsi/adapters/iscsi/iscsi_conn.c:1052:6: error: cast between incompatible function types from 'iscsi_status_t (*)(void *)' {aka 'enum iscsi_status (*)(void *)'} to 'void (*)()' [-Werror=cast-function-type]
      (void(*)())iscsi_login_start, itp, DDI_SLEEP) !=
      ^
cc1: all warnings being treated as errors


  • 0
  • 0
  • 1
  • 0
  • 1
Description From Last Updated
andy_js
  1. Ship It!
  2. 
      
yuri.pankov
  1. 
      
  2. The name looks too generic, may be iscsi_login_cb?

  3. 
      
tsoome
yuripv
  1. Ship It!
  2. 
      
tsoome
tsoome
Review request changed

Status: Closed (submitted)

Loading...