Project

General

Profile

Bug #11805

generic_cpu: cast between incompatible function types

Added by Toomas Soome 6 months ago. Updated 5 months ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build errors with gcc 8:

    ../../i86xpv/cpu/generic_cpu/gcpu_poll_xpv.c:197:7: error: cast between incompatible function types from 'uint_t (*)(void)' {aka 'unsigned int (*)(void)'} to 'uint_t (*)(char *, char *)' {aka 'unsigned int (*)(char *, char *)'} [-Werror=cast-function-type]
           (avfunc)gcpu_xpv_virq_intr, "MCA", gcpu_xpv_virq_vect,
           ^
    cc1: all warnings being treated as errors

Testing done: build/install/boot.

History

#1

Updated by Toomas Soome 5 months ago

  • Description updated (diff)
#2

Updated by Electric Monk 5 months ago

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

git commit 5328fc53d11d7151861fa272e4fb0248b8f0e145

commit  5328fc53d11d7151861fa272e4fb0248b8f0e145
Author: Toomas Soome <tsoome@me.com>
Date:   2019-11-14T08:19:46.000Z

    11805 generic_cpu: cast between incompatible function types
    Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF