Project

General

Profile

Bug #11720

rpcmod: 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 errors with gcc 8:

    ../../common/rpc/rpcmod.c:240: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]
      (int (*)())rmm_rput,
      ^
    ../../common/rpc/rpcmod.c:241:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
      (int (*)())rmm_rsrv,
      ^
    ../../common/rpc/rpcmod.c:255: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]
      (int (*)())rmm_wput,
      ^
    ../../common/rpc/rpcmod.c:256:2: error: cast between incompatible function types from 'void (*)(queue_t *)' {aka 'void (*)(struct queue *)'} to 'int (*)()' [-Werror=cast-function-type]
      (int (*)())rmm_wsrv,
      ^

    ../../common/rpc/clnt_clts.c: In function 'endpnt_repossess':
    ../../common/rpc/clnt_clts.c:2008:7: error: cast between incompatible function types from 'void (*)(zoneid_t)' {aka 'void (*)(int)'} to 'void (*)(void *)' [-Werror=cast-function-type]
           (task_func_t *)endpnt_reclaim, (void *)ALL_ZONES,
           ^

    cc1: all warnings being treated as errors

Also available in: Atom PDF