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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/hsfs/hsfs_vfsops.c
          +++ new/usr/src/uts/common/fs/hsfs/hsfs_vfsops.c
↓ open down ↓ 151 lines elided ↑ open up ↑
 152  152          /* We don't suppport remounting */
 153  153          VSW_HASPROTO|VSW_STATS|VSW_CANLOFI,
 154  154          &hsfs_proto_opttbl
 155  155  };
 156  156  
 157  157  static struct modlfs modlfs = {
 158  158          &mod_fsops, "filesystem for HSFS", &vfw
 159  159  };
 160  160  
 161  161  static struct modlinkage modlinkage = {
 162      -        MODREV_1, (void *)&modlfs, NULL
      162 +        MODREV_1, { (void *)&modlfs, NULL }
 163  163  };
 164  164  
 165  165  extern void hsched_init_caches(void);
 166  166  extern void hsched_fini_caches(void);
 167  167  
 168  168  
 169  169  int
 170  170  _init(void)
 171  171  {
 172  172          return (mod_install(&modlinkage));
↓ open down ↓ 70 lines elided ↑ open up ↑
 243  243          struct hs_volume *hvp);
 244  244  static void hs_copylabel(struct hs_volume *, unsigned char *, int);
 245  245  static int hs_getmdev(struct vfs *, char *fspec, int flags, dev_t *pdev,
 246  246          mode_t *mode, cred_t *cr);
 247  247  static int hs_findvoldesc(dev_t rdev, int desc_sec);
 248  248  
 249  249  static int
 250  250  hsfsinit(int fstype, char *name)
 251  251  {
 252  252          static const fs_operation_def_t hsfs_vfsops_template[] = {
 253      -                VFSNAME_MOUNT,          { .vfs_mount = hsfs_mount },
 254      -                VFSNAME_UNMOUNT,        { .vfs_unmount = hsfs_unmount },
 255      -                VFSNAME_ROOT,           { .vfs_root = hsfs_root },
 256      -                VFSNAME_STATVFS,        { .vfs_statvfs = hsfs_statvfs },
 257      -                VFSNAME_VGET,           { .vfs_vget = hsfs_vget },
 258      -                VFSNAME_MOUNTROOT,      { .vfs_mountroot = hsfs_mountroot },
 259      -                NULL,                   NULL
      253 +                { VFSNAME_MOUNT,        { .vfs_mount = hsfs_mount } },
      254 +                { VFSNAME_UNMOUNT,      { .vfs_unmount = hsfs_unmount } },
      255 +                { VFSNAME_ROOT,         { .vfs_root = hsfs_root } },
      256 +                { VFSNAME_STATVFS,      { .vfs_statvfs = hsfs_statvfs } },
      257 +                { VFSNAME_VGET,         { .vfs_vget = hsfs_vget } },
      258 +                { VFSNAME_MOUNTROOT,    { .vfs_mountroot = hsfs_mountroot } },
      259 +                { NULL,                 { NULL } }
 260  260          };
 261  261          int error;
 262  262  
 263  263          error = vfs_setfsops(fstype, hsfs_vfsops_template, NULL);
 264  264          if (error != 0) {
 265  265                  cmn_err(CE_WARN, "hsfsinit: bad vfs ops template");
 266  266                  return (error);
 267  267          }
 268  268  
 269  269          error = vn_make_ops(name, hsfs_vnodeops_template, &hsfs_vnodeops);
↓ open down ↓ 1295 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX