10300 fem: cast between incompatible function types

Review Request #1393 - Created Jan. 27, 2019 and submitted

Information
Toomas Soome
illumos-gate
10300
42a40a7...
Reviewers
general
../../common/fs/fem.c:1979:22: error: cast between incompatible function types from 'void (*)(vnode_t *, cred_t *, caller_context_t *)' {aka 'void (*)(struct vnode *, struct cred *, struct caller_context *)'} to 'int (*)()' [-Werror=cast-function-type]
  { VOPNAME_INACTIVE, (femop_t *)vhead_inactive },
                      ^
../../common/fs/fem.c:1982:22: error: cast between incompatible function types from 'void (*)(vnode_t *, int,  caller_context_t *)' {aka 'void (*)(struct vnode *, int,  struct caller_context *)'} to 'int (*)()' [-Werror=cast-function-type]
  { VOPNAME_RWUNLOCK, (femop_t *)vhead_rwunlock },
                      ^
../../common/fs/fem.c:1998:21: error: cast between incompatible function types from 'void (*)(vnode_t *, struct page *, int,  int,  cred_t *, caller_context_t *)' {aka 'void (*)(struct vnode *, struct page *, int,  int,  struct cred *, struct caller_context *)'} to 'int (*)()' [-Werror=cast-function-type]
  { VOPNAME_DISPOSE, (femop_t *)vhead_dispose },
                     ^
../../common/fs/fem.c:2021:21: error: cast between incompatible function types from 'void (*)(vfs_t *)' {aka 'void (*)(struct vfs *)'} to 'int (*)()' [-Werror=cast-function-type]
  { VFSNAME_FREEVFS, (femop_t *)fshead_freevfs },
                     ^
cc1: all warnings being treated as errors

  

Issues

  • 0
  • 2
  • 0
  • 2
Description From Last Updated
Andrew Stormont
Robert Mustacchi
Gergő Mihály Doma
Toomas Soome
Andrew Stormont
Robert Mustacchi
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...