Project

General

Profile

Bug #11793

mac: cast between incompatible function types

Added by Toomas Soome 6 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 error with gcc 8:

../../common/io/mac/mac_datapath_setup.c: In function 'mac_srs_client_poll_enable':
../../common/io/mac/mac_datapath_setup.c:391:24: error: cast between incompatible function types from 'void (*)(void *)' to 'int (*)(struct __mac_intr_handle *)' [-Werror=cast-function-type]
  mrf.mrf_intr_enable = (mac_intr_enable_t)mac_soft_ring_intr_enable;
                        ^
../../common/io/mac/mac_datapath_setup.c: In function 'mac_srs_create_proto_softrings':
../../common/io/mac/mac_datapath_setup.c:1709:6: error: cast between incompatible function types from 'void (*)(void *)' to 'int (*)(struct __mac_intr_handle *)' [-Werror=cast-function-type]
      (mac_intr_enable_t)mac_soft_ring_intr_enable;
      ^
cc1: all warnings being treated as errors

Also available in: Atom PDF