10364 vnode: cast between incompatible function types

Review Request #1442 — Created Feb. 10, 2019 and submitted

tsoome
illumos-gate
10364
e93f746...
general
../../common/fs/vnode.c:306:6: 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]
      (fs_generic_func_p) fs_rwunlock,
      ^
../../common/fs/vnode.c:307:6: 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]
      (fs_generic_func_p) fs_rwunlock, /* no errors allowed */
      ^
../../common/fs/vnode.c:357:6: error: cast between incompatible function types from 'void (*)(struct vnode *, page_t *, int,  int,  struct cred *, caller_context_t *)' {aka 'void (*)(struct vnode *, struct page *, int,  int,  struct cred *, struct caller_context *)'} to 'int (*)()' [-Werror=cast-function-type]
      (fs_generic_func_p) fs_dispose,
      ^
../../common/fs/vnode.c:358:6: error: cast between incompatible function types from 'void (*)(struct vnode *, page_t *, int,  int,  struct cred *, caller_context_t *)' {aka 'void (*)(struct vnode *, struct page *, int,  int,  struct cred *, struct caller_context *)'} to 'int (*)()' [-Werror=cast-function-type]
      (fs_generic_func_p) fs_nodispose,
      ^
cc1: all warnings being treated as errors


jlevon
  1. Ship It!
  2. 
      
alarcher
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...