10299 kcpc.c: cast between incompatible function types

Review Request #1392 — Created Jan. 27, 2019 and submitted — Latest diff uploaded

tsoome
illumos-gate
10299
1b94e75...
general
../../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


Loading...