Project

General

Profile

Bug #11593

iscsi: cast between incompatible function types

Added by Toomas Soome 30 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build errors with gcc 8:

    ../../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

Also available in: Atom PDF