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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/nfs/nfs_vfsops.c
          +++ new/usr/src/uts/common/fs/nfs/nfs_vfsops.c
↓ open down ↓ 147 lines elided ↑ open up ↑
 148  148   * Debug variable to check for rdma based
 149  149   * transport startup and cleanup. Controlled
 150  150   * through /etc/system. Off by default.
 151  151   */
 152  152  int rdma_debug = 0;
 153  153  
 154  154  int
 155  155  nfsinit(int fstyp, char *name)
 156  156  {
 157  157          static const fs_operation_def_t nfs_vfsops_template[] = {
 158      -                VFSNAME_MOUNT,          { .vfs_mount = nfs_mount },
 159      -                VFSNAME_UNMOUNT,        { .vfs_unmount = nfs_unmount },
 160      -                VFSNAME_ROOT,           { .vfs_root = nfs_root },
 161      -                VFSNAME_STATVFS,        { .vfs_statvfs = nfs_statvfs },
 162      -                VFSNAME_SYNC,           { .vfs_sync = nfs_sync },
 163      -                VFSNAME_VGET,           { .vfs_vget = nfs_vget },
 164      -                VFSNAME_MOUNTROOT,      { .vfs_mountroot = nfs_mountroot },
 165      -                VFSNAME_FREEVFS,        { .vfs_freevfs = nfs_freevfs },
 166      -                NULL,                   NULL
      158 +                { VFSNAME_MOUNT,        { .vfs_mount = nfs_mount } },
      159 +                { VFSNAME_UNMOUNT,      { .vfs_unmount = nfs_unmount } },
      160 +                { VFSNAME_ROOT,         { .vfs_root = nfs_root } },
      161 +                { VFSNAME_STATVFS,      { .vfs_statvfs = nfs_statvfs } },
      162 +                { VFSNAME_SYNC,         { .vfs_sync = nfs_sync } },
      163 +                { VFSNAME_VGET,         { .vfs_vget = nfs_vget } },
      164 +                { VFSNAME_MOUNTROOT,    { .vfs_mountroot = nfs_mountroot } },
      165 +                { VFSNAME_FREEVFS,      { .vfs_freevfs = nfs_freevfs } },
      166 +                { NULL,                 { NULL } }
 167  167          };
 168  168          int error;
 169  169  
 170  170          error = vfs_setfsops(fstyp, nfs_vfsops_template, &nfs_vfsops);
 171  171          if (error != 0) {
 172  172                  zcmn_err(GLOBAL_ZONEID, CE_WARN,
 173  173                      "nfsinit: bad vfs ops template");
 174  174                  return (error);
 175  175          }
 176  176  
↓ open down ↓ 1643 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX