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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/lofs/lofs_vfsops.c
          +++ new/usr/src/uts/common/fs/lofs/lofs_vfsops.c
↓ open down ↓ 91 lines elided ↑ open up ↑
  92   92  
  93   93  /*
  94   94   * Module linkage information for the kernel.
  95   95   */
  96   96  
  97   97  static struct modlfs modlfs = {
  98   98          &mod_fsops, "filesystem for lofs", &vfw
  99   99  };
 100  100  
 101  101  static struct modlinkage modlinkage = {
 102      -        MODREV_1, (void *)&modlfs, NULL
      102 +        MODREV_1, { (void *)&modlfs, NULL }
 103  103  };
 104  104  
 105  105  /*
 106  106   * This is the module initialization routine.
 107  107   */
 108  108  
 109  109  int
 110  110  _init(void)
 111  111  {
 112  112          int status;
↓ open down ↓ 432 lines elided ↑ open up ↑
 545  545          struct loinfo *li = vtoli(vfsp);
 546  546  
 547  547          ldestroy(li);
 548  548          kmem_free(li, sizeof (struct loinfo));
 549  549  }
 550  550  
 551  551  static int
 552  552  lofsinit(int fstyp, char *name)
 553  553  {
 554  554          static const fs_operation_def_t lo_vfsops_template[] = {
 555      -                VFSNAME_MOUNT,          { .vfs_mount = lo_mount },
 556      -                VFSNAME_UNMOUNT,        { .vfs_unmount = lo_unmount },
 557      -                VFSNAME_ROOT,           { .vfs_root = lo_root },
 558      -                VFSNAME_STATVFS,        { .vfs_statvfs = lo_statvfs },
 559      -                VFSNAME_SYNC,           { .vfs_sync = lo_sync },
 560      -                VFSNAME_VGET,           { .vfs_vget = lo_vget },
 561      -                VFSNAME_FREEVFS,        { .vfs_freevfs = lo_freevfs },
 562      -                NULL,                   NULL
      555 +                { VFSNAME_MOUNT,        { .vfs_mount = lo_mount } },
      556 +                { VFSNAME_UNMOUNT,      { .vfs_unmount = lo_unmount } },
      557 +                { VFSNAME_ROOT,         { .vfs_root = lo_root } },
      558 +                { VFSNAME_STATVFS,      { .vfs_statvfs = lo_statvfs } },
      559 +                { VFSNAME_SYNC,         { .vfs_sync = lo_sync } },
      560 +                { VFSNAME_VGET,         { .vfs_vget = lo_vget } },
      561 +                { VFSNAME_FREEVFS,      { .vfs_freevfs = lo_freevfs } },
      562 +                { NULL,                 { NULL } }
 563  563          };
 564  564          int error;
 565  565  
 566  566          error = vfs_setfsops(fstyp, lo_vfsops_template, &lo_vfsops);
 567  567          if (error != 0) {
 568  568                  cmn_err(CE_WARN, "lofsinit: bad vfs ops template");
 569  569                  return (error);
 570  570          }
 571  571  
 572  572          error = vn_make_ops(name, lo_vnodeops_template, &lo_vnodeops);
 573  573          if (error != 0) {
 574  574                  (void) vfs_freevfsops_by_type(fstyp);
 575  575                  cmn_err(CE_WARN, "lofsinit: bad vnode ops template");
 576  576                  return (error);
 577  577          }
 578  578  
 579  579          lofsfstype = fstyp;
 580  580  
 581  581          return (0);
 582  582  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX