Project

General

Profile

Actions

Bug #11733

closed

acpica: cast between incompatible function types

Added by Toomas Soome over 4 years ago. Updated over 4 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

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

Actions

Also available in: Atom PDF