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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/ufs/ufs_vfsops.c
          +++ new/usr/src/uts/common/fs/ufs/ufs_vfsops.c
↓ open down ↓ 200 lines elided ↑ open up ↑
 201  201  /*
 202  202   * Module linkage information for the kernel.
 203  203   */
 204  204  extern struct mod_ops mod_fsops;
 205  205  
 206  206  static struct modlfs modlfs = {
 207  207          &mod_fsops, "filesystem for ufs", &vfw
 208  208  };
 209  209  
 210  210  static struct modlinkage modlinkage = {
 211      -        MODREV_1, (void *)&modlfs, NULL
      211 +        MODREV_1,  { (void *)&modlfs, NULL }
 212  212  };
 213  213  
 214  214  /*
 215  215   * An attempt has been made to make this module unloadable.  In order to
 216  216   * test it, we need a system in which the root fs is NOT ufs.  THIS HAS NOT
 217  217   * BEEN DONE
 218  218   */
 219  219  
 220  220  extern kstat_t *ufs_inode_kstat;
 221  221  extern uint_t ufs_lockfs_key;
↓ open down ↓ 1842 lines elided ↑ open up ↑
2064 2064  
2065 2065  errout:
2066 2066          *vpp = NULL;
2067 2067          return (error);
2068 2068  }
2069 2069  
2070 2070  static int
2071 2071  ufsinit(int fstype, char *name)
2072 2072  {
2073 2073          static const fs_operation_def_t ufs_vfsops_template[] = {
2074      -                VFSNAME_MOUNT,          { .vfs_mount = ufs_mount },
2075      -                VFSNAME_UNMOUNT,        { .vfs_unmount = ufs_unmount },
2076      -                VFSNAME_ROOT,           { .vfs_root = ufs_root },
2077      -                VFSNAME_STATVFS,        { .vfs_statvfs = ufs_statvfs },
2078      -                VFSNAME_SYNC,           { .vfs_sync = ufs_sync },
2079      -                VFSNAME_VGET,           { .vfs_vget = ufs_vget },
2080      -                VFSNAME_MOUNTROOT,      { .vfs_mountroot = ufs_mountroot },
2081      -                NULL,                   NULL
     2074 +                { VFSNAME_MOUNT,        { .vfs_mount = ufs_mount } },
     2075 +                { VFSNAME_UNMOUNT,      { .vfs_unmount = ufs_unmount } },
     2076 +                { VFSNAME_ROOT,         { .vfs_root = ufs_root } },
     2077 +                { VFSNAME_STATVFS,      { .vfs_statvfs = ufs_statvfs } },
     2078 +                { VFSNAME_SYNC,         { .vfs_sync = ufs_sync } },
     2079 +                { VFSNAME_VGET,         { .vfs_vget = ufs_vget } },
     2080 +                { VFSNAME_MOUNTROOT,    { .vfs_mountroot = ufs_mountroot } },
     2081 +                { NULL,                 { NULL } }
2082 2082          };
2083 2083          int error;
2084 2084  
2085 2085          ufsfstype = fstype;
2086 2086  
2087 2087          error = vfs_setfsops(fstype, ufs_vfsops_template, &ufs_vfsops);
2088 2088          if (error != 0) {
2089 2089                  cmn_err(CE_WARN, "ufsinit: bad vfs ops template");
2090 2090                  return (error);
2091 2091          }
↓ open down ↓ 207 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX