Project

General

Profile

Bug #11733

acpica: cast between incompatible function types

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
kernel
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with gcc 8:

    ../../intel/io/acpica/osl.c: In function 'AcpiOsInstallInterruptHandler':
    ../../intel/io/acpica/osl.c:679:37: error: cast between incompatible function types from 'uint_t (*)(char *)' {aka 'unsigned int (*)(char *)'} to 'uint_t (*)(char *, char *)' {aka 'unsigned int (*)(char *, char *)'} [-Werror=cast-function-type]
      retval = add_avintr(NULL, SCI_IPL, (avfunc)acpi_wrapper_isr,
                                         ^
    ../../intel/io/acpica/osl.c: In function 'AcpiOsRemoveInterruptHandler':
    ../../intel/io/acpica/osl.c:698:36: error: cast between incompatible function types from 'uint_t (*)(char *)' {aka 'unsigned int (*)(char *)'} to 'uint_t (*)(char *, char *)' {aka 'unsigned int (*)(char *, char *)'} [-Werror=cast-function-type]
       rem_avintr(NULL, LOCK_LEVEL - 1, (avfunc)acpi_wrapper_isr,
                                        ^
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk about 1 year ago

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

git commit 16d00323713cfa922181df7d69d973398dea15ff

commit  16d00323713cfa922181df7d69d973398dea15ff
Author: Toomas Soome <tsoome@me.com>
Date:   2019-10-01T09:37:52.000Z

    11733 acpica: cast between incompatible function types
    Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF