Project

General

Profile

Actions

Bug #10299

closed

kcpc.c: 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:
2019-01-27
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
External Bug:

Description

../../common/os/kcpc.c: In function 'kcpc_cpu_stop':
../../common/os/kcpc.c:2456:15: error: cast between incompatible function types from 'void ()(boolean_t)' {aka 'void ()(enum <anonymous>)'} to 'void ()(uintptr_t, uintptr_t)' {aka 'void ()(long unsigned int, long unsigned int)'} [-Werror=cast-function-type]
cpu_call(cp, (cpu_call_func_t)kcpc_cpustop_func,
^
../../common/os/kcpc.c: In function 'kcpc_cpu_program':
../../common/os/kcpc.c:2481:15: error: cast between incompatible function types from 'void ()(kcpc_ctx_t *, uintptr_t)' {aka 'void ()(struct _kcpc_ctx , long unsigned int)'} to 'void ()(uintptr_t, uintptr_t)' {aka 'void (*)(long unsigned int, long unsigned int)'} [-Werror=cast-function-type]
cpu_call(cp, (cpu_call_func_t)kcpc_remoteprogram_func, (uintptr_t)ctx,
^
cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk over 4 years ago

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

git commit ecd7dc692599292c0012e55e5c7ca9dffca4d1a1

commit  ecd7dc692599292c0012e55e5c7ca9dffca4d1a1
Author: Toomas Soome <tsoome@me.com>
Date:   2019-01-31T22:04:30.000Z

    10299 kcpc.c: cast between incompatible function types
    Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Hans Rosenfeld <hans.rosenfeld@joyent.com>

Actions

Also available in: Atom PDF