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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_vfsops.c
          +++ new/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_vfsops.c
↓ open down ↓ 119 lines elided ↑ open up ↑
 120  120          &smbfs_mntopts                  /* mount options table prototype */
 121  121  };
 122  122  
 123  123  static struct modlfs modlfs = {
 124  124          &mod_fsops,
 125  125          "SMBFS filesystem",
 126  126          &vfw
 127  127  };
 128  128  
 129  129  static struct modlinkage modlinkage = {
 130      -        MODREV_1, (void *)&modlfs, NULL
      130 +        MODREV_1, { (void *)&modlfs, NULL }
 131  131  };
 132  132  
 133  133  /*
 134  134   * Mutex to protect the following variables:
 135  135   *        smbfs_major
 136  136   *        smbfs_minor
 137  137   */
 138  138  extern  kmutex_t        smbfs_minor_lock;
 139  139  extern  int             smbfs_major;
 140  140  extern  int             smbfs_minor;
↓ open down ↓ 120 lines elided ↑ open up ↑
 261  261  
 262  262  static const fs_operation_def_t smbfs_vfsops_template[] = {
 263  263          { VFSNAME_MOUNT, { .vfs_mount = smbfs_mount } },
 264  264          { VFSNAME_UNMOUNT, { .vfs_unmount = smbfs_unmount } },
 265  265          { VFSNAME_ROOT, { .vfs_root = smbfs_root } },
 266  266          { VFSNAME_STATVFS, { .vfs_statvfs = smbfs_statvfs } },
 267  267          { VFSNAME_SYNC, { .vfs_sync = smbfs_sync } },
 268  268          { VFSNAME_VGET, { .error = fs_nosys } },
 269  269          { VFSNAME_MOUNTROOT, { .error = fs_nosys } },
 270  270          { VFSNAME_FREEVFS, { .vfs_freevfs = smbfs_freevfs } },
 271      -        { NULL, NULL }
      271 +        { NULL, { NULL } }
 272  272  };
 273  273  
 274  274  int
 275  275  smbfsinit(int fstyp, char *name)
 276  276  {
 277  277          int             error;
 278  278  
 279  279          error = vfs_setfsops(fstyp, smbfs_vfsops_template, &smbfs_vfsops);
 280  280          if (error != 0) {
 281  281                  zcmn_err(GLOBAL_ZONEID, CE_WARN,
↓ open down ↓ 737 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX