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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/tmpfs/tmp_vfsops.c
          +++ new/usr/src/uts/common/fs/tmpfs/tmp_vfsops.c
↓ open down ↓ 100 lines elided ↑ open up ↑
 101  101  };
 102  102  
 103  103  /*
 104  104   * Module linkage information
 105  105   */
 106  106  static struct modlfs modlfs = {
 107  107          &mod_fsops, "filesystem for tmpfs", &vfw
 108  108  };
 109  109  
 110  110  static struct modlinkage modlinkage = {
 111      -        MODREV_1, &modlfs, NULL
      111 +        MODREV_1, { &modlfs, NULL }
 112  112  };
 113  113  
 114  114  int
 115  115  _init()
 116  116  {
 117  117          return (mod_install(&modlinkage));
 118  118  }
 119  119  
 120  120  int
 121  121  _fini()
↓ open down ↓ 43 lines elided ↑ open up ↑
 165  165  static kmutex_t tmpfs_minor_lock;
 166  166  
 167  167  /*
 168  168   * initialize global tmpfs locks and such
 169  169   * called when loading tmpfs module
 170  170   */
 171  171  static int
 172  172  tmpfsinit(int fstype, char *name)
 173  173  {
 174  174          static const fs_operation_def_t tmp_vfsops_template[] = {
 175      -                VFSNAME_MOUNT,          { .vfs_mount = tmp_mount },
 176      -                VFSNAME_UNMOUNT,        { .vfs_unmount = tmp_unmount },
 177      -                VFSNAME_ROOT,           { .vfs_root = tmp_root },
 178      -                VFSNAME_STATVFS,        { .vfs_statvfs = tmp_statvfs },
 179      -                VFSNAME_VGET,           { .vfs_vget = tmp_vget },
 180      -                NULL,                   NULL
      175 +                { VFSNAME_MOUNT,        { .vfs_mount = tmp_mount } },
      176 +                { VFSNAME_UNMOUNT,      { .vfs_unmount = tmp_unmount } },
      177 +                { VFSNAME_ROOT,         { .vfs_root = tmp_root } },
      178 +                { VFSNAME_STATVFS,      { .vfs_statvfs = tmp_statvfs } },
      179 +                { VFSNAME_VGET,         { .vfs_vget = tmp_vget } },
      180 +                { NULL,                 { NULL } }
 181  181          };
 182  182          int error;
 183  183          extern  void    tmpfs_hash_init();
 184  184  
 185  185          tmpfs_hash_init();
 186  186          tmpfsfstype = fstype;
 187  187          ASSERT(tmpfsfstype != 0);
 188  188  
 189  189          error = vfs_setfsops(fstype, tmp_vfsops_template, NULL);
 190  190          if (error != 0) {
↓ open down ↓ 507 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX