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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/pcfs/pc_vfsops.c
          +++ new/usr/src/uts/common/fs/pcfs/pc_vfsops.c
↓ open down ↓ 162 lines elided ↑ open up ↑
 163  163  extern struct mod_ops mod_fsops;
 164  164  
 165  165  static struct modlfs modlfs = {
 166  166          &mod_fsops,
 167  167          "PC filesystem",
 168  168          &vfw
 169  169  };
 170  170  
 171  171  static struct modlinkage modlinkage = {
 172  172          MODREV_1,
 173      -        &modlfs,
 174      -        NULL
      173 +        { &modlfs, NULL }
 175  174  };
 176  175  
 177  176  int
 178  177  _init(void)
 179  178  {
 180  179          int     error;
 181  180  
 182  181  #if !defined(lint)
 183  182          /* make sure the on-disk structures are sane */
 184  183          ASSERT(sizeof (struct pcdir) == 32);
↓ open down ↓ 41 lines elided ↑ open up ↑
 226  225  _info(struct modinfo *modinfop)
 227  226  {
 228  227          return (mod_info(&modlinkage, modinfop));
 229  228  }
 230  229  
 231  230  /* ARGSUSED1 */
 232  231  static int
 233  232  pcfsinit(int fstype, char *name)
 234  233  {
 235  234          static const fs_operation_def_t pcfs_vfsops_template[] = {
 236      -                VFSNAME_MOUNT,          { .vfs_mount = pcfs_mount },
 237      -                VFSNAME_UNMOUNT,        { .vfs_unmount = pcfs_unmount },
 238      -                VFSNAME_ROOT,           { .vfs_root = pcfs_root },
 239      -                VFSNAME_STATVFS,        { .vfs_statvfs = pcfs_statvfs },
 240      -                VFSNAME_SYNC,           { .vfs_sync = pcfs_sync },
 241      -                VFSNAME_VGET,           { .vfs_vget = pcfs_vget },
 242      -                VFSNAME_FREEVFS,        { .vfs_freevfs = pcfs_freevfs },
 243      -                NULL,                   NULL
      235 +                { VFSNAME_MOUNT,        { .vfs_mount = pcfs_mount } },
      236 +                { VFSNAME_UNMOUNT,      { .vfs_unmount = pcfs_unmount } },
      237 +                { VFSNAME_ROOT,         { .vfs_root = pcfs_root } },
      238 +                { VFSNAME_STATVFS,      { .vfs_statvfs = pcfs_statvfs } },
      239 +                { VFSNAME_SYNC,         { .vfs_sync = pcfs_sync } },
      240 +                { VFSNAME_VGET,         { .vfs_vget = pcfs_vget } },
      241 +                { VFSNAME_FREEVFS,      { .vfs_freevfs = pcfs_freevfs } },
      242 +                { NULL,                 { NULL } }
 244  243          };
 245  244          int error;
 246  245  
 247  246          error = vfs_setfsops(fstype, pcfs_vfsops_template, NULL);
 248  247          if (error != 0) {
 249  248                  cmn_err(CE_WARN, "pcfsinit: bad vfs ops template");
 250  249                  return (error);
 251  250          }
 252  251  
 253  252          error = vn_make_ops("pcfs", pcfs_fvnodeops_template, &pcfs_fvnodeops);
↓ open down ↓ 2462 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX