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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/autofs/auto_vfsops.c
          +++ new/usr/src/uts/common/fs/autofs/auto_vfsops.c
↓ open down ↓ 93 lines elided ↑ open up ↑
  94   94  
  95   95  /*
  96   96   * Module linkage information for the kernel.
  97   97   */
  98   98  static struct modlfs modlfs = {
  99   99          &mod_fsops, "filesystem for autofs", &vfw
 100  100  };
 101  101  
 102  102  static struct modlinkage modlinkage = {
 103  103          MODREV_1,
 104      -        &modlfs,
 105      -        &modlsys,
      104 +        {   &modlfs,
      105 +            &modlsys,
 106  106  #ifdef  _SYSCALL32_IMPL
 107      -        &modlsys32,
      107 +            &modlsys32,
 108  108  #endif
 109      -        NULL
      109 +            NULL
      110 +        }
 110  111  };
 111  112  
 112  113  /*
 113  114   * This is the module initialization routine.
 114  115   */
 115  116  int
 116  117  _init(void)
 117  118  {
 118  119          return (mod_install(&modlinkage));
 119  120  }
↓ open down ↓ 120 lines elided ↑ open up ↑
 240  241           * Start the unmounter thread for this zone.
 241  242           */
 242  243          (void) zthread_create(NULL, 0, auto_do_unmount, fngp, 0, minclsyspri);
 243  244          return (fngp);
 244  245  }
 245  246  
 246  247  int
 247  248  autofs_init(int fstype, char *name)
 248  249  {
 249  250          static const fs_operation_def_t auto_vfsops_template[] = {
 250      -                VFSNAME_MOUNT,          { .vfs_mount = auto_mount },
 251      -                VFSNAME_UNMOUNT,        { .vfs_unmount = auto_unmount },
 252      -                VFSNAME_ROOT,           { .vfs_root = auto_root },
 253      -                VFSNAME_STATVFS,        { .vfs_statvfs = auto_statvfs },
 254      -                NULL,                   NULL
      251 +                { VFSNAME_MOUNT,        { .vfs_mount = auto_mount } },
      252 +                { VFSNAME_UNMOUNT,      { .vfs_unmount = auto_unmount } },
      253 +                { VFSNAME_ROOT,         { .vfs_root = auto_root } },
      254 +                { VFSNAME_STATVFS,      { .vfs_statvfs = auto_statvfs } },
      255 +                { NULL,                 { NULL } }
 255  256          };
 256  257          int error;
 257  258  
 258  259          autofs_fstype = fstype;
 259  260          ASSERT(autofs_fstype != 0);
 260  261          /*
 261  262           * Associate VFS ops vector with this fstype
 262  263           */
 263  264          error = vfs_setfsops(fstype, auto_vfsops_template, NULL);
 264  265          if (error != 0) {
↓ open down ↓ 565 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX