Project

General

Profile

Actions

Bug #13779

closed

su: cast between incompatible function types

Added by Toomas Soome about 1 year ago. Updated about 1 year ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build error on SPARC with gcc 10:

    ../../sun4/io/su_driver.c:219:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
      219 |  (int (*)())asyrsrv,
          |  ^
    ../../sun4/io/su_driver.c:228: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]
      228 |  (int (*)())asywput,
          |  ^
    cc1: all warnings being treated as errors

Testing done: build/install/boot

Actions

Also available in: Atom PDF