Project

General

Profile

Bug #10489

mr_sas: cast between incompatible function types

Added by Toomas Soome 8 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2019-03-02
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

Build error with gcc 8:

    ../../common/io/mr_sas/mr_sas.c: In function 'mrsas_add_intrs':
    ../../common/io/mr_sas/mr_sas.c:7355:7: error: cast between incompatible function types from 'uint_t (*)(struct mrsas_instance *)' {aka 'unsigned int (*)(struct mrsas_instance *)'} to 'uint_t (*)(char *, char *)' {aka 'unsigned int (*)(char *, char *)'} [-Werror=cast-function-type]
           (ddi_intr_handler_t *)mrsas_isr, (caddr_t)instance,
           ^
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 7 months ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit ff2c0cbf8b71c56c475188b2be1d96686bc645e9

commit  ff2c0cbf8b71c56c475188b2be1d96686bc645e9
Author: Toomas Soome <tsoome@me.com>
Date:   2019-03-15T20:47:04.000Z

    10489 mr_sas: cast between incompatible function types
    Reviewed by: Gergő Doma <domag02@gmail.com>
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Reviewed by: C Fraire <cfraire@me.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF