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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/devfs/devfs_vfsops.c
          +++ new/usr/src/uts/common/fs/devfs/devfs_vfsops.c
↓ open down ↓ 84 lines elided ↑ open up ↑
  85   85  static struct devfs_data *devfs_mntinfo;        /* linked list of instances */
  86   86  
  87   87  /*
  88   88   * Module linkage information
  89   89   */
  90   90  static struct modlfs modlfs = {
  91   91          &mod_fsops, "devices filesystem", &devfs_vfssw
  92   92  };
  93   93  
  94   94  static struct modlinkage modlinkage = {
  95      -        MODREV_1, (void *)&modlfs, NULL
       95 +        MODREV_1, { (void *)&modlfs, NULL }
  96   96  };
  97   97  
  98   98  int
  99   99  _init(void)
 100  100  {
 101  101          int e;
 102  102  
 103  103          mutex_init(&devfs_lock, "devfs lock", MUTEX_DEFAULT, NULL);
 104  104          dv_node_cache_init();
 105  105          if ((e = mod_install(&modlinkage)) != 0) {
↓ open down ↓ 15 lines elided ↑ open up ↑
 121  121  _info(struct modinfo *modinfop)
 122  122  {
 123  123          return (mod_info(&modlinkage, modinfop));
 124  124  }
 125  125  
 126  126  /*ARGSUSED1*/
 127  127  static int
 128  128  devfsinit(int fstype, char *name)
 129  129  {
 130  130          static const fs_operation_def_t devfs_vfsops_template[] = {
 131      -                VFSNAME_MOUNT,          { .vfs_mount = devfs_mount },
 132      -                VFSNAME_UNMOUNT,        { .vfs_unmount = devfs_unmount },
 133      -                VFSNAME_ROOT,           { .vfs_root = devfs_root },
 134      -                VFSNAME_STATVFS,        { .vfs_statvfs = devfs_statvfs },
 135      -                VFSNAME_SYNC,           { .vfs_sync = fs_sync },
 136      -                VFSNAME_MOUNTROOT,      { .vfs_mountroot = devfs_mountroot },
 137      -                NULL,                   NULL
      131 +                { VFSNAME_MOUNT,        { .vfs_mount = devfs_mount } },
      132 +                { VFSNAME_UNMOUNT,      { .vfs_unmount = devfs_unmount } },
      133 +                { VFSNAME_ROOT,         { .vfs_root = devfs_root } },
      134 +                { VFSNAME_STATVFS,      { .vfs_statvfs = devfs_statvfs } },
      135 +                { VFSNAME_SYNC,         { .vfs_sync = fs_sync } },
      136 +                { VFSNAME_MOUNTROOT,    { .vfs_mountroot = devfs_mountroot } },
      137 +                { NULL,                 { NULL } }
 138  138          };
 139  139          int error;
 140  140          int dev;
 141  141          extern major_t getudev(void);   /* gack - what a function */
 142  142  
 143  143          devfstype = fstype;
 144  144          /*
 145  145           * Associate VFS ops vector with this fstype
 146  146           */
 147  147          error = vfs_setfsops(fstype, devfs_vfsops_template, NULL);
↓ open down ↓ 421 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX