Print this page
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/smbsrv/smb_fem.c
          +++ new/usr/src/uts/common/fs/smbsrv/smb_fem.c
↓ open down ↓ 51 lines elided ↑ open up ↑
  52   52  static int smb_fem_fcn_mkdir(femarg_t *, char *, vattr_t *, vnode_t **,
  53   53      cred_t *, caller_context_t *, int, vsecattr_t *);
  54   54  static int smb_fem_fcn_rmdir(femarg_t *, char *, vnode_t *, cred_t *,
  55   55      caller_context_t *, int);
  56   56  static int smb_fem_fcn_link(femarg_t *, vnode_t *, char *, cred_t *,
  57   57      caller_context_t *, int);
  58   58  static int smb_fem_fcn_symlink(femarg_t *, char *, vattr_t *,
  59   59      char *, cred_t *, caller_context_t *, int);
  60   60  
  61   61  static const fs_operation_def_t smb_fcn_tmpl[] = {
  62      -        VOPNAME_CREATE, { .femop_create = smb_fem_fcn_create },
  63      -        VOPNAME_REMOVE, {.femop_remove = smb_fem_fcn_remove},
  64      -        VOPNAME_RENAME, {.femop_rename = smb_fem_fcn_rename},
  65      -        VOPNAME_MKDIR, {.femop_mkdir = smb_fem_fcn_mkdir},
  66      -        VOPNAME_RMDIR, {.femop_rmdir = smb_fem_fcn_rmdir},
  67      -        VOPNAME_LINK, {.femop_link = smb_fem_fcn_link},
  68      -        VOPNAME_SYMLINK, {.femop_symlink = smb_fem_fcn_symlink},
  69      -        NULL, NULL
       62 +        { VOPNAME_CREATE, { .femop_create = smb_fem_fcn_create } },
       63 +        { VOPNAME_REMOVE, {.femop_remove = smb_fem_fcn_remove} },
       64 +        { VOPNAME_RENAME, {.femop_rename = smb_fem_fcn_rename} },
       65 +        { VOPNAME_MKDIR, {.femop_mkdir = smb_fem_fcn_mkdir} },
       66 +        { VOPNAME_RMDIR, {.femop_rmdir = smb_fem_fcn_rmdir} },
       67 +        { VOPNAME_LINK, {.femop_link = smb_fem_fcn_link} },
       68 +        { VOPNAME_SYMLINK, {.femop_symlink = smb_fem_fcn_symlink} },
       69 +        { NULL, {NULL} }
  70   70  };
  71   71  
  72   72  /*
  73   73   * Declarations for oplock FEM monitors
  74   74   */
  75   75  
  76   76  static int smb_fem_oplock_open(femarg_t *, int, cred_t *,
  77   77      struct caller_context *);
  78   78  static int smb_fem_oplock_read(femarg_t *, uio_t *, int, cred_t *,
  79   79      struct caller_context *);
↓ open down ↓ 1 lines elided ↑ open up ↑
  81   81      struct caller_context *);
  82   82  static int smb_fem_oplock_setattr(femarg_t *, vattr_t *, int, cred_t *,
  83   83      caller_context_t *);
  84   84  static int smb_fem_oplock_rwlock(femarg_t *, int, caller_context_t *);
  85   85  static int smb_fem_oplock_space(femarg_t *, int, flock64_t *, int,
  86   86      offset_t, cred_t *, caller_context_t *);
  87   87  static int smb_fem_oplock_vnevent(femarg_t *, vnevent_t, vnode_t *, char *,
  88   88      caller_context_t *);
  89   89  
  90   90  static const fs_operation_def_t smb_oplock_tmpl[] = {
  91      -        VOPNAME_OPEN,   { .femop_open = smb_fem_oplock_open },
  92      -        VOPNAME_READ,   { .femop_read = smb_fem_oplock_read },
  93      -        VOPNAME_WRITE,  { .femop_write = smb_fem_oplock_write },
  94      -        VOPNAME_SETATTR, { .femop_setattr = smb_fem_oplock_setattr },
  95      -        VOPNAME_RWLOCK, { .femop_rwlock = smb_fem_oplock_rwlock },
  96      -        VOPNAME_SPACE,  { .femop_space = smb_fem_oplock_space },
  97      -        VOPNAME_VNEVENT, { .femop_vnevent = smb_fem_oplock_vnevent },
  98      -        NULL, NULL
       91 +        { VOPNAME_OPEN, { .femop_open = smb_fem_oplock_open } },
       92 +        { VOPNAME_READ, { .femop_read = smb_fem_oplock_read } },
       93 +        { VOPNAME_WRITE,        { .femop_write = smb_fem_oplock_write } },
       94 +        { VOPNAME_SETATTR, { .femop_setattr = smb_fem_oplock_setattr } },
       95 +        { VOPNAME_RWLOCK, { .femop_rwlock = smb_fem_oplock_rwlock } },
       96 +        { VOPNAME_SPACE,        { .femop_space = smb_fem_oplock_space } },
       97 +        { VOPNAME_VNEVENT, { .femop_vnevent = smb_fem_oplock_vnevent } },
       98 +        { NULL, {NULL} }
  99   99  };
 100  100  
 101  101  static int smb_fem_oplock_break(femarg_t *, caller_context_t *, uint32_t);
 102  102  
 103  103  /*
 104  104   * smb_fem_init
 105  105   *
 106  106   * This function is not multi-thread safe. The caller must make sure only one
 107  107   * thread makes the call.
 108  108   */
↓ open down ↓ 512 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX