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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/dcfs/dc_vnops.c
          +++ new/usr/src/uts/common/fs/dcfs/dc_vnops.c
↓ open down ↓ 164 lines elided ↑ open up ↑
 165  165  /*
 166  166   * Module linkage information for the kernel.
 167  167   */
 168  168  extern struct mod_ops mod_fsops;
 169  169  
 170  170  static struct modlfs modlfs = {
 171  171          &mod_fsops, "compressed filesystem", &vfw
 172  172  };
 173  173  
 174  174  static struct modlinkage modlinkage = {
 175      -        MODREV_1, (void *)&modlfs, NULL
      175 +        MODREV_1, { (void *)&modlfs, NULL }
 176  176  };
 177  177  
 178  178  int
 179  179  _init()
 180  180  {
 181  181          return (mod_install(&modlinkage));
 182  182  }
 183  183  
 184  184  int
 185  185  _info(struct modinfo *modinfop)
↓ open down ↓ 28 lines elided ↑ open up ↑
 214  214  static int dc_map(struct vnode *, offset_t, struct as *, caddr_t *, size_t,
 215  215      uchar_t, uchar_t, uint_t, struct cred *, caller_context_t *);
 216  216  static int dc_addmap(struct vnode *, offset_t, struct as *, caddr_t, size_t,
 217  217      uchar_t, uchar_t, uint_t, struct cred *, caller_context_t *);
 218  218  static int dc_delmap(struct vnode *, offset_t, struct as *, caddr_t, size_t,
 219  219      uint_t, uint_t, uint_t, struct cred *, caller_context_t *);
 220  220  
 221  221  struct vnodeops *dc_vnodeops;
 222  222  
 223  223  const fs_operation_def_t dc_vnodeops_template[] = {
 224      -        VOPNAME_OPEN,                   { .vop_open = dc_open },
 225      -        VOPNAME_CLOSE,                  { .vop_close = dc_close },
 226      -        VOPNAME_READ,                   { .vop_read = dc_read },
 227      -        VOPNAME_GETATTR,                { .vop_getattr =  dc_getattr },
 228      -        VOPNAME_SETATTR,                { .vop_setattr = dc_setattr },
 229      -        VOPNAME_ACCESS,                 { .vop_access = dc_access },
 230      -        VOPNAME_FSYNC,                  { .vop_fsync = dc_fsync },
 231      -        VOPNAME_INACTIVE,               { .vop_inactive = dc_inactive },
 232      -        VOPNAME_FID,                    { .vop_fid = dc_fid },
 233      -        VOPNAME_SEEK,                   { .vop_seek = dc_seek },
 234      -        VOPNAME_FRLOCK,                 { .vop_frlock = dc_frlock },
 235      -        VOPNAME_REALVP,                 { .vop_realvp = dc_realvp },
 236      -        VOPNAME_GETPAGE,                { .vop_getpage = dc_getpage },
 237      -        VOPNAME_PUTPAGE,                { .vop_putpage = dc_putpage },
 238      -        VOPNAME_MAP,                    { .vop_map = dc_map },
 239      -        VOPNAME_ADDMAP,                 { .vop_addmap = dc_addmap },
 240      -        VOPNAME_DELMAP,                 { .vop_delmap = dc_delmap },
 241      -        NULL,                           NULL
      224 +        { VOPNAME_OPEN,                 { .vop_open = dc_open } },
      225 +        { VOPNAME_CLOSE,                { .vop_close = dc_close } },
      226 +        { VOPNAME_READ,                 { .vop_read = dc_read } },
      227 +        { VOPNAME_GETATTR,              { .vop_getattr =  dc_getattr } },
      228 +        { VOPNAME_SETATTR,              { .vop_setattr = dc_setattr } },
      229 +        { VOPNAME_ACCESS,               { .vop_access = dc_access } },
      230 +        { VOPNAME_FSYNC,                { .vop_fsync = dc_fsync } },
      231 +        { VOPNAME_INACTIVE,             { .vop_inactive = dc_inactive } },
      232 +        { VOPNAME_FID,                  { .vop_fid = dc_fid } },
      233 +        { VOPNAME_SEEK,                 { .vop_seek = dc_seek } },
      234 +        { VOPNAME_FRLOCK,               { .vop_frlock = dc_frlock } },
      235 +        { VOPNAME_REALVP,               { .vop_realvp = dc_realvp } },
      236 +        { VOPNAME_GETPAGE,              { .vop_getpage = dc_getpage } },
      237 +        { VOPNAME_PUTPAGE,              { .vop_putpage = dc_putpage } },
      238 +        { VOPNAME_MAP,                  { .vop_map = dc_map } },
      239 +        { VOPNAME_ADDMAP,               { .vop_addmap = dc_addmap } },
      240 +        { VOPNAME_DELMAP,               { .vop_delmap = dc_delmap } },
      241 +        { NULL,                         { NULL } }
 242  242  };
 243  243  
 244  244  /*ARGSUSED*/
 245  245  static int
 246  246  dc_open(struct vnode **vpp, int flag, struct cred *cr, caller_context_t *ctp)
 247  247  {
 248  248          return (0);
 249  249  }
 250  250  
 251  251  /*ARGSUSED*/
↓ open down ↓ 624 lines elided ↑ open up ↑
 876  876          vn_reinit(vp);
 877  877          vp->v_type = VREG;
 878  878          vp->v_flag = VNOSWAP;
 879  879          vp->v_vfsp = &dc_vfs;
 880  880  }
 881  881  
 882  882  static int
 883  883  dcinit(int fstype, char *name)
 884  884  {
 885  885          static const fs_operation_def_t dc_vfsops_template[] = {
 886      -                NULL, NULL
      886 +                { NULL, { NULL } }
 887  887          };
 888  888          int error;
 889  889          major_t dev;
 890  890  
 891  891          error = vfs_setfsops(fstype, dc_vfsops_template, &dc_vfsops);
 892  892          if (error) {
 893  893                  cmn_err(CE_WARN, "dcinit: bad vfs ops template");
 894  894                  return (error);
 895  895          }
 896  896          VFS_INIT(&dc_vfs, dc_vfsops, NULL);
↓ open down ↓ 230 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX