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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/udfs/udf_vfsops.c
          +++ new/usr/src/uts/common/fs/udfs/udf_vfsops.c
↓ open down ↓ 132 lines elided ↑ open up ↑
 133  133  /*
 134  134   * Module linkage information for the kernel.
 135  135   */
 136  136  extern struct mod_ops mod_fsops;
 137  137  
 138  138  static struct modlfs modlfs = {
 139  139          &mod_fsops, "filesystem for UDFS", &vfw
 140  140  };
 141  141  
 142  142  static struct modlinkage modlinkage = {
 143      -        MODREV_1, (void *)&modlfs, NULL
      143 +        MODREV_1, { (void *)&modlfs, NULL }
 144  144  };
 145  145  
 146  146  int32_t udf_fstype = -1;
 147  147  
 148  148  int
 149  149  _init()
 150  150  {
 151  151          return (mod_install(&modlinkage));
 152  152  }
 153  153  
↓ open down ↓ 1751 lines elided ↑ open up ↑
1905 1905          /*
1906 1906           * Did not find AVD at all the locations
1907 1907           */
1908 1908          return (0);
1909 1909  }
1910 1910  
1911 1911  static int
1912 1912  udfinit(int fstype, char *name)
1913 1913  {
1914 1914          static const fs_operation_def_t udf_vfsops_template[] = {
1915      -                VFSNAME_MOUNT,          { .vfs_mount = udf_mount },
1916      -                VFSNAME_UNMOUNT,        { .vfs_unmount = udf_unmount },
1917      -                VFSNAME_ROOT,           { .vfs_root = udf_root },
1918      -                VFSNAME_STATVFS,        { .vfs_statvfs = udf_statvfs },
1919      -                VFSNAME_SYNC,           { .vfs_sync = udf_sync },
1920      -                VFSNAME_VGET,           { .vfs_vget = udf_vget },
1921      -                VFSNAME_MOUNTROOT,      { .vfs_mountroot = udf_mountroot },
1922      -                NULL,                   NULL
     1915 +                { VFSNAME_MOUNT,        { .vfs_mount = udf_mount } },
     1916 +                { VFSNAME_UNMOUNT,      { .vfs_unmount = udf_unmount } },
     1917 +                { VFSNAME_ROOT,         { .vfs_root = udf_root } },
     1918 +                { VFSNAME_STATVFS,      { .vfs_statvfs = udf_statvfs } },
     1919 +                { VFSNAME_SYNC,         { .vfs_sync = udf_sync } },
     1920 +                { VFSNAME_VGET,         { .vfs_vget = udf_vget } },
     1921 +                { VFSNAME_MOUNTROOT,    { .vfs_mountroot = udf_mountroot } },
     1922 +                { NULL,                 { NULL } }
1923 1923          };
1924 1924          extern struct vnodeops *udf_vnodeops;
1925 1925          extern const fs_operation_def_t udf_vnodeops_template[];
1926 1926          int error;
1927 1927  
1928 1928          ud_printf("udfinit\n");
1929 1929  
1930 1930          error = vfs_setfsops(fstype, udf_vfsops_template, NULL);
1931 1931          if (error != 0) {
1932 1932                  cmn_err(CE_WARN, "udfinit: bad vfs ops template");
↓ open down ↓ 16 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX