Project

General

Profile

Bug #10299

kcpc.c: cast between incompatible function types

Added by Toomas Soome 11 months ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
kernel
Start date:
2019-01-27
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

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

History

#1

Updated by Electric Monk 11 months ago

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

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>

Also available in: Atom PDF