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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/bootfs/bootfs_vfsops.c
          +++ new/usr/src/uts/common/fs/bootfs/bootfs_vfsops.c
↓ open down ↓ 215 lines elided ↑ open up ↑
 216  216  
 217  217          (void) cmpldev(&d32, vfsp->vfs_dev);
 218  218          sbp->f_fsid = d32;
 219  219          (void) strlcpy(sbp->f_basetype, bootfs_name, FSTYPSZ);
 220  220          bzero(sbp->f_fstr, sizeof (sbp->f_fstr));
 221  221  
 222  222          return (0);
 223  223  }
 224  224  
 225  225  static const fs_operation_def_t bootfs_vfsops_tmpl[] = {
 226      -        VFSNAME_MOUNT,          { .vfs_mount = bootfs_mount },
 227      -        VFSNAME_UNMOUNT,        { .vfs_unmount = bootfs_unmount },
 228      -        VFSNAME_ROOT,           { .vfs_root = bootfs_root },
 229      -        VFSNAME_STATVFS,        { .vfs_statvfs = bootfs_statvfs },
 230      -        NULL,                   NULL
      226 +        { VFSNAME_MOUNT,        { .vfs_mount = bootfs_mount } },
      227 +        { VFSNAME_UNMOUNT,      { .vfs_unmount = bootfs_unmount } },
      228 +        { VFSNAME_ROOT,         { .vfs_root = bootfs_root } },
      229 +        { VFSNAME_STATVFS,      { .vfs_statvfs = bootfs_statvfs } },
      230 +        { NULL,                 { NULL } }
 231  231  };
 232  232  
 233  233  static int
 234  234  bootfs_init(int fstype, char *name)
 235  235  {
 236  236          int ret;
 237  237  
 238  238          bootfs_fstype = fstype;
 239  239          ASSERT(bootfs_fstype != 0);
 240  240  
↓ open down ↓ 27 lines elided ↑ open up ↑
 268  268          bootfs_init,
 269  269          VSW_HASPROTO|VSW_STATS,
 270  270          &bootfs_mntopts
 271  271  };
 272  272  
 273  273  static struct modlfs bootfs_modlfs = {
 274  274          &mod_fsops, "boot-time modules file system", &bootfs_vfsdef
 275  275  };
 276  276  
 277  277  static struct modlinkage bootfs_modlinkage = {
 278      -        MODREV_1, &bootfs_modlfs, NULL
      278 +        MODREV_1, { &bootfs_modlfs, NULL }
 279  279  };
 280  280  
 281  281  int
 282  282  _init(void)
 283  283  {
 284  284          bootfs_node_cache = kmem_cache_create("bootfs_node_cache",
 285  285              sizeof (bootfs_node_t), 0, bootfs_node_constructor,
 286  286              bootfs_node_destructor, NULL, NULL, NULL, 0);
 287  287          bootfs_idspace = id_space_create("bootfs_minors", 1, INT32_MAX);
 288  288          mutex_init(&bootfs_lock, NULL, MUTEX_DEFAULT, NULL);
↓ open down ↓ 33 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX