10300 fem: cast between incompatible function types

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

tsoome
illumos-gate
10300
42a40a7...
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


  • 0
  • 0
  • 2
  • 0
  • 2
Description From Last Updated
andy_js
  1. Ship It!
  2. 
      
rm
  1. Ship It!
  2. 
      
domag02
  1. Space followed-by tab nits.
  2. usr/src/uts/common/fs/fem.c (Diff revision 1)
     
     
    Space followed by tab.
  3. usr/src/uts/common/fs/fem.c (Diff revision 1)
     
     
  4. 
      
tsoome
andy_js
  1. Ship It!
  2. 
      
rm
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...