11580 dtrace: cast between incompatible function types

Review Request #2239 - Created Aug. 19, 2019 and submitted

Information
Toomas Soome
illumos-gate
11580
5b0998d...
Reviewers
general
../../common/dtrace/dtrace.c:256:2: error: cast between incompatible function types from 'int (*)(void)' to 'int (*)(void *, dtrace_id_t,  void *)' {aka 'int (*)(void *, unsigned int,  void *)'} [-Werror=cast-function-type]
  (int (*)(void *, dtrace_id_t, void *))dtrace_enable_nullop,
  ^
../../common/dtrace/dtrace.c: In function 'dtrace_unregister':
../../common/dtrace/dtrace.c:8358:6: error: cast between incompatible function types from 'int (*)(void)' to 'int (*)(void *, dtrace_id_t,  void *)' {aka 'int (*)(void *, unsigned int,  void *)'} [-Werror=cast-function-type]
      (int (*)(void *, dtrace_id_t, void *))dtrace_enable_nullop) {
      ^
../../common/dtrace/dtrace.c: In function 'dtrace_attach':
../../common/dtrace/dtrace.c:16036:26: error: cast between incompatible function types from 'int (*)(cpu_setup_t,  processorid_t)' {aka 'int (*)(enum <anonymous>,  int)'} to 'int (*)(cpu_setup_t,  int,  void *)' {aka 'int (*)(enum <anonymous>,  int,  void *)'} [-Werror=cast-function-type]
  register_cpu_setup_func((cpu_setup_func_t *)dtrace_cpu_setup, NULL);
                          ^
../../common/dtrace/dtrace.c: In function 'dtrace_detach':
../../common/dtrace/dtrace.c:17150:28: error: cast between incompatible function types from 'int (*)(cpu_setup_t,  processorid_t)' {aka 'int (*)(enum <anonymous>,  int)'} to 'int (*)(cpu_setup_t,  int,  void *)' {aka 'int (*)(enum <anonymous>,  int,  void *)'} [-Werror=cast-function-type]
  unregister_cpu_setup_func((cpu_setup_func_t *)dtrace_cpu_setup, NULL);
                            ^
cc1: all warnings being treated as errors

  
C Fraire
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...