Project

General

Profile

Actions

Bug #12092

closed

s10_brand: cast between incompatible function types

Added by Toomas Soome almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with gcc 8:

    ../common/s10_brand.c: In function 's10_lwp_private':
    ../common/s10_brand.c:1698:7: error: cast between incompatible function types from 'int (*)(sysret_t *, ucontext_t *, int,  id_t *)' {aka 'int (*)(struct <anonymous> *, struct ucontext *, int,  int *)'} to 'long int (*)()' [-Werror=cast-function-type]
           (sysent_cb_t)s10_lwp_create_correct_fs;
           ^
    In file included from ../common/s10_brand.c:67:
    ../common/s10_brand.c: At top level:
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1907:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_forkall, 0 | RV_32RVAL2), /*   2 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1910:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_open, 3 | RV_DEFAULT), /*   5 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1912:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_wait, 0 | RV_32RVAL2), /*   7 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1913:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_creat, 2 | RV_DEFAULT), /*   8 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1914:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_link, 2 | RV_DEFAULT), /*   9 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1915:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_unlink, 1 | RV_DEFAULT), /*  10 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)(sysret_t *, const char *, const char **)' {aka 'int (*)(struct <anonymous> *, const char *, const char **)'} to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1916:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_exec, 2 | RV_DEFAULT), /*  11 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1919:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_mknod, 3 | RV_DEFAULT), /*  14 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1920:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_chmod, 2 | RV_DEFAULT), /*  15 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1921:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_chown, 3 | RV_DEFAULT), /*  16 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1923:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_stat, 2 | RV_DEFAULT), /*  18 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1927:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_umount, 1 | RV_DEFAULT), /*  22 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1933:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_fstat, 2 | RV_DEFAULT), /*  28 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1935:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_utime, 2 | RV_DEFAULT), /*  30 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1938:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_access, 2 | RV_DEFAULT), /*  33 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1942:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_kill, 2 | RV_DEFAULT), /*  37 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1946:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_dup, 1 | RV_DEFAULT), /*  41 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)(sysret_t *)' {aka 'int (*)(struct <anonymous> *)'} to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1947:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_pipe, 0 | RV_32RVAL2), /*  42 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)(sysret_t *, int,  int,  intptr_t)' {aka 'int (*)(struct <anonymous> *, int,  int,  long int)'} to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1959:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_ioctl, 3 | RV_DEFAULT), /*  54 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)(sysret_t *, const char *, const char **, const char **)' {aka 'int (*)(struct <anonymous> *, const char *, const char **, const char **)'} to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1964:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_execve, 3 | RV_DEFAULT), /*  59 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)(sysret_t *, int,  void *, size_t)' {aka 'int (*)(struct <anonymous> *, int,  void *, long unsigned int)'} to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1976:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_acctctl, 3 | RV_DEFAULT), /*  71 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)(sysret_t *)' {aka 'int (*)(struct <anonymous> *)'} to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1980:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_issetugid, 0 | RV_DEFAULT), /*  75 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1981:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_fsat, 6 | RV_DEFAULT), /*  76 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1984:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_rmdir, 1 | RV_DEFAULT), /*  79 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1985:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_mkdir, 2 | RV_DEFAULT), /*  80 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)(sysret_t *, int,  struct dirent *, size_t)' {aka 'int (*)(struct <anonymous> *, int,  struct dirent *, long unsigned int)'} to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1986:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_getdents, 3 | RV_DEFAULT), /*  81 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1992:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_poll, 3 | RV_DEFAULT), /*  87 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1993:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_lstat, 2 | RV_DEFAULT), /*  88 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1994:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_symlink, 2 | RV_DEFAULT), /*  89 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1995:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_readlink, 3 | RV_DEFAULT), /*  90 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1998:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_fchmod, 2 | RV_DEFAULT), /*  93 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:1999:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_fchown, 3 | RV_DEFAULT), /*  94 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2000:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_sigprocmask, 3 | RV_DEFAULT), /*  95 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2001:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_sigsuspend, 1 | RV_DEFAULT), /*  96 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2003:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_sigaction, 3 | RV_DEFAULT), /*  98 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2004:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_sigpending, 2 | RV_DEFAULT), /*  99 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2012:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_waitid, 4 | RV_DEFAULT), /* 107 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2013:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_sigsendsys, 2 | RV_DEFAULT), /* 108 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2029:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_xstat, 3 | RV_DEFAULT), /* 123 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2030:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_lxstat, 3 | RV_DEFAULT), /* 124 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2031:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_fxstat, 3 | RV_DEFAULT), /* 125 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2032:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_xmknod, 4 | RV_DEFAULT), /* 126 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2042:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_lchown, 3 | RV_DEFAULT), /* 130 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2046:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_rename, 2 | RV_DEFAULT), /* 134 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)(sysret_t *, int)' {aka 'int (*)(struct <anonymous> *, int)'} to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2049:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_sysconfig, 1 | RV_DEFAULT), /* 137 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)(sysret_t *, int,  char *, long int)' {aka 'int (*)(struct <anonymous> *, int,  char *, long int)'} to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2051:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_sysinfo, 3 | RV_DEFAULT), /* 139 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2055:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_fork1, 0 | RV_32RVAL2), /* 143 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2056:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_sigtimedwait, 3 | RV_DEFAULT), /* 144 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2059:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_lwp_sema_wait, 1 | RV_DEFAULT), /* 147 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2066:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_utimes, 2 | RV_DEFAULT), /* 154 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2071:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_lwp_create, 3 | RV_DEFAULT), /* 159 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2075:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_lwp_kill, 2 | RV_DEFAULT), /* 163 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2077:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_lwp_sigmask, 3 | RV_32RVAL2), /* 165 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)(sysret_t *, int,  int,  uintptr_t)' {aka 'int (*)(struct <anonymous> *, int,  int,  long unsigned int)'} to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2079:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_lwp_private, 3 | RV_DEFAULT), /* 166 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2085:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_lwp_mutex_lock, 1 | RV_DEFAULT), /* 169 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)(sysret_t *, int,  const void *, size_t,  off_t)' {aka 'int (*)(struct <anonymous> *, int,  const void *, long unsigned int,  long int)'} to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2090:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_pwrite, 4 | RV_DEFAULT), /* 174 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)(sysret_t *, const char *, int,  int,  void *)' {aka 'int (*)(struct <anonymous> *, const char *, int,  int,  void *)'} to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2101:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_acl, 4 | RV_DEFAULT), /* 185 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)(sysret_t *, int,  intptr_t,  intptr_t,  intptr_t)' {aka 'int (*)(struct <anonymous> *, int,  long int,  long int,  long int)'} to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2102:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_auditsys, 4 | RV_64RVAL), /* 186 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2106:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_sigqueue, 4 | RV_DEFAULT), /* 190 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)(sysret_t *, int,  int,  int,  void *)' {aka 'int (*)(struct <anonymous> *, int,  int,  int,  void *)'} to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2116:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_facl, 4 | RV_DEFAULT), /* 200 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)()' to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2121:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_signotify, 3 | RV_DEFAULT), /* 205 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)(sysret_t *, lwp_mutex_t *, timespec_t *)' {aka 'int (*)(struct <anonymous> *, struct _lwp_mutex *, struct timespec *)'} to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2126:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_lwp_mutex_timedlock, 2 | RV_DEFAULT), /* 210 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)(sysret_t *, int,  void *, void *, void *, void *)' {aka 'int (*)(struct <anonymous> *, int,  void *, void *, void *, void *)'} to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2159:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_zone, 5 | RV_DEFAULT), /* 227 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)(sysret_t *, int,  int,  int,  char *, int)' {aka 'int (*)(struct <anonymous> *, int,  int,  int,  char *, int)'} to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2162:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_so_socket, 5 | RV_DEFAULT), /* 230 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)(sysret_t *, int,  struct sockaddr *, uint_t *, int)' {aka 'int (*)(struct <anonymous> *, int,  struct sockaddr *, unsigned int *, int)'} to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2166:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_accept, 4 | RV_DEFAULT), /* 234 */
      ^~~~~~~
    /code/illumos-gate/usr/src/lib/brand/shared/brand/sys/brand_misc.h:164:29: error: cast between incompatible function types from 'int (*)(sysret_t *, lwp_mutex_t *)' {aka 'int (*)(struct <anonymous> *, struct _lwp_mutex *)'} to 'long int (*)()' [-Werror=cast-function-type]
     #define EMULATE(cb, args) { (sysent_cb_t)(cb), (args) }
                                 ^
    ../common/s10_brand.c:2183:2: note: in expansion of macro 'EMULATE'
      EMULATE(s10_lwp_mutex_trylock, 1 | RV_DEFAULT), /* 251 */
      ^~~~~~~
    cc1: all warnings being treated as errors

Testing done: build/install/boot

Actions #1

Updated by Toomas Soome almost 2 years ago

  • Description updated (diff)
Actions #2

Updated by Electric Monk almost 2 years ago

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

git commit c3232c9513a02e659ae9307db0fc93d9730704f6

commit  c3232c9513a02e659ae9307db0fc93d9730704f6
Author: Toomas Soome <tsoome@me.com>
Date:   2019-12-27T12:49:40.000Z

    12092 s10_brand: cast between incompatible function types
    Reviewed by: Matthias Scheler <mscheler@tintri.com>
    Approved by: Robert Mustacchi <rm@fingolfin.org>

Actions

Also available in: Atom PDF