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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/mntfs/mntvfsops.c
          +++ new/usr/src/uts/common/fs/mntfs/mntvfsops.c
↓ open down ↓ 71 lines elided ↑ open up ↑
  72   72  /*
  73   73   * Module linkage information for the kernel.
  74   74   */
  75   75  extern struct mod_ops mod_fsops;
  76   76  
  77   77  static struct modlfs modlfs = {
  78   78          &mod_fsops, "mount information file system", &vfw
  79   79  };
  80   80  
  81   81  static struct modlinkage modlinkage = {
  82      -        MODREV_1, (void *)&modlfs, NULL
       82 +        MODREV_1, { (void *)&modlfs, NULL }
  83   83  };
  84   84  
  85   85  int
  86   86  _init(void)
  87   87  {
  88   88          return (mod_install(&modlinkage));
  89   89  }
  90   90  
  91   91  int
  92   92  _info(struct modinfo *modinfop)
↓ open down ↓ 32 lines elided ↑ open up ↑
 125  125          vp->v_flag = VROOT|VNOCACHE|VNOMAP|VNOSWAP|VNOMOUNT;
 126  126          vn_setops(vp, mntvnodeops);
 127  127          vp->v_type = VREG;
 128  128          vp->v_data = (caddr_t)mnp;
 129  129  }
 130  130  
 131  131  static int
 132  132  mntinit(int fstype, char *name)
 133  133  {
 134  134          static const fs_operation_def_t mnt_vfsops_template[] = {
 135      -                VFSNAME_MOUNT,          { .vfs_mount = mntmount },
 136      -                VFSNAME_UNMOUNT,        { .vfs_unmount = mntunmount },
 137      -                VFSNAME_ROOT,           { .vfs_root = mntroot },
 138      -                VFSNAME_STATVFS,        { .vfs_statvfs = mntstatvfs },
 139      -                NULL,                   NULL
      135 +                { VFSNAME_MOUNT,        { .vfs_mount = mntmount } },
      136 +                { VFSNAME_UNMOUNT,      { .vfs_unmount = mntunmount } },
      137 +                { VFSNAME_ROOT,         { .vfs_root = mntroot } },
      138 +                { VFSNAME_STATVFS,      { .vfs_statvfs = mntstatvfs } },
      139 +                { NULL,                 { NULL } }
 140  140          };
 141  141          extern const fs_operation_def_t mnt_vnodeops_template[];
 142  142          int error;
 143  143  
 144  144          mntfstype = fstype;
 145  145          ASSERT(mntfstype != 0);
 146  146          /*
 147  147           * Associate VFS ops vector with this fstype.
 148  148           */
 149  149          error = vfs_setfsops(fstype, mnt_vfsops_template, NULL);
↓ open down ↓ 153 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX