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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/dev/sdev_vfsops.c
          +++ new/usr/src/uts/common/fs/dev/sdev_vfsops.c
↓ open down ↓ 97 lines elided ↑ open up ↑
  98   98  
  99   99  
 100  100  /*
 101  101   * Module linkage information
 102  102   */
 103  103  static struct modlfs modlfs = {
 104  104          &mod_fsops, "/dev filesystem", &sdev_vfssw
 105  105  };
 106  106  
 107  107  static struct modlinkage modlinkage = {
 108      -        MODREV_1, (void *)&modlfs, NULL
      108 +        MODREV_1, { (void *)&modlfs, NULL }
 109  109  };
 110  110  
 111  111  int
 112  112  _init(void)
 113  113  {
 114  114          int e;
 115  115  
 116  116          mutex_init(&sdev_lock, NULL, MUTEX_DEFAULT, NULL);
 117  117          sdev_node_cache_init();
 118  118          sdev_devfsadm_lockinit();
↓ open down ↓ 19 lines elided ↑ open up ↑
 138  138  _info(struct modinfo *modinfop)
 139  139  {
 140  140          return (mod_info(&modlinkage, modinfop));
 141  141  }
 142  142  
 143  143  /*ARGSUSED*/
 144  144  static int
 145  145  devinit(int fstype, char *name)
 146  146  {
 147  147          static const fs_operation_def_t dev_vfsops_tbl[] = {
 148      -                VFSNAME_MOUNT,          { .vfs_mount = sdev_mount },
 149      -                VFSNAME_UNMOUNT,        { .vfs_unmount = sdev_unmount },
 150      -                VFSNAME_ROOT,           { .vfs_root = sdev_root },
 151      -                VFSNAME_STATVFS,        { .vfs_statvfs = sdev_statvfs },
 152      -                NULL,                   NULL
      148 +                { VFSNAME_MOUNT,        { .vfs_mount = sdev_mount } },
      149 +                { VFSNAME_UNMOUNT,      { .vfs_unmount = sdev_unmount } },
      150 +                { VFSNAME_ROOT,         { .vfs_root = sdev_root } },
      151 +                { VFSNAME_STATVFS,      { .vfs_statvfs = sdev_statvfs } },
      152 +                { NULL,                 { NULL } }
 153  153          };
 154  154  
 155  155          int     error;
 156  156          extern major_t getudev(void);
 157  157  
 158  158          devtype = fstype;
 159  159  
 160  160          error = vfs_setfsops(fstype, dev_vfsops_tbl, NULL);
 161  161          if (error != 0) {
 162  162                  cmn_err(CE_WARN, "devinit: bad vfs ops tbl");
↓ open down ↓ 361 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX