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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/ctfs/ctfs_root.c
          +++ new/usr/src/uts/common/fs/ctfs/ctfs_root.c
↓ open down ↓ 111 lines elided ↑ open up ↑
 112  112          &ctfs_mntopts,
 113  113  };
 114  114  
 115  115  extern struct mod_ops mod_fsops;
 116  116  
 117  117  static struct modlfs modlfs = {
 118  118          &mod_fsops, "contract filesystem", &vfw
 119  119  };
 120  120  
 121  121  static struct modlinkage modlinkage = {
 122      -        MODREV_1, (void *)&modlfs, NULL
      122 +        MODREV_1, { (void *)&modlfs, NULL }
 123  123  };
 124  124  
 125  125  int
 126  126  _init(void)
 127  127  {
 128  128          return (mod_install(&modlinkage));
 129  129  }
 130  130  
 131  131  int
 132  132  _info(struct modinfo *modinfop)
↓ open down ↓ 225 lines elided ↑ open up ↑
 358  358          (void) strlcpy(sp->f_fstr, "contract", sizeof (sp->f_fstr));
 359  359  
 360  360          return (0);
 361  361  }
 362  362  
 363  363  static const fs_operation_def_t ctfs_vfstops[] = {
 364  364          { VFSNAME_MOUNT,        { .vfs_mount = ctfs_mount } },
 365  365          { VFSNAME_UNMOUNT,      { .vfs_unmount = ctfs_unmount } },
 366  366          { VFSNAME_ROOT,         { .vfs_root = ctfs_root } },
 367  367          { VFSNAME_STATVFS,      { .vfs_statvfs = ctfs_statvfs } },
 368      -        { NULL, NULL }
      368 +        { NULL,                 { NULL } }
 369  369  };
 370  370  
 371  371  /*
 372  372   * ctfs_common_getattr
 373  373   *
 374  374   * Implements functionality common to all ctfs VOP_GETATTR entry
 375  375   * points.  It assumes vap->va_size is set.
 376  376   */
 377  377  void
 378  378  ctfs_common_getattr(vnode_t *vp, vattr_t *vap)
↓ open down ↓ 131 lines elided ↑ open up ↑
 510  510  static const fs_operation_def_t ctfs_tops_root[] = {
 511  511          { VOPNAME_OPEN,         { .vop_open = ctfs_open } },
 512  512          { VOPNAME_CLOSE,        { .vop_close = ctfs_close } },
 513  513          { VOPNAME_IOCTL,        { .error = fs_inval } },
 514  514          { VOPNAME_GETATTR,      { .vop_getattr = ctfs_root_getattr } },
 515  515          { VOPNAME_ACCESS,       { .vop_access = ctfs_access_dir } },
 516  516          { VOPNAME_READDIR,      { .vop_readdir = gfs_vop_readdir } },
 517  517          { VOPNAME_LOOKUP,       { .vop_lookup = gfs_vop_lookup } },
 518  518          { VOPNAME_SEEK,         { .vop_seek = fs_seek } },
 519  519          { VOPNAME_INACTIVE,     { .vop_inactive = gfs_vop_inactive } },
 520      -        { NULL, NULL }
      520 +        { NULL,                 { NULL } }
 521  521  };
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX