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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/fd/fdops.c
          +++ new/usr/src/uts/common/fs/fd/fdops.c
↓ open down ↓ 310 lines elided ↑ open up ↑
 311  311                  return;
 312  312          }
 313  313          mutex_exit(&vp->v_lock);
 314  314          vn_invalid(vp);
 315  315          vn_free(vp);
 316  316  }
 317  317  
 318  318  static struct vnodeops *fd_vnodeops;
 319  319  
 320  320  static const fs_operation_def_t fd_vnodeops_template[] = {
 321      -        VOPNAME_OPEN,           { .vop_open = fdopen },
 322      -        VOPNAME_CLOSE,          { .vop_close = fdclose },
 323      -        VOPNAME_READ,           { .vop_read = fdread },
 324      -        VOPNAME_GETATTR,        { .vop_getattr = fdgetattr },
 325      -        VOPNAME_ACCESS,         { .vop_access = fdaccess },
 326      -        VOPNAME_LOOKUP,         { .vop_lookup = fdlookup },
 327      -        VOPNAME_CREATE,         { .vop_create = fdcreate },
 328      -        VOPNAME_READDIR,        { .vop_readdir = fdreaddir },
 329      -        VOPNAME_INACTIVE,       { .vop_inactive = fdinactive },
 330      -        VOPNAME_FRLOCK,         { .error = fs_error },
 331      -        VOPNAME_POLL,           { .error = fs_error },
 332      -        VOPNAME_DISPOSE,        { .error = fs_error },
 333      -        NULL,                   NULL
      321 +        { VOPNAME_OPEN,         { .vop_open = fdopen } },
      322 +        { VOPNAME_CLOSE,        { .vop_close = fdclose } },
      323 +        { VOPNAME_READ,         { .vop_read = fdread } },
      324 +        { VOPNAME_GETATTR,      { .vop_getattr = fdgetattr } },
      325 +        { VOPNAME_ACCESS,       { .vop_access = fdaccess } },
      326 +        { VOPNAME_LOOKUP,       { .vop_lookup = fdlookup } },
      327 +        { VOPNAME_CREATE,       { .vop_create = fdcreate } },
      328 +        { VOPNAME_READDIR,      { .vop_readdir = fdreaddir } },
      329 +        { VOPNAME_INACTIVE,     { .vop_inactive = fdinactive } },
      330 +        { VOPNAME_FRLOCK,       { .error = fs_error } },
      331 +        { VOPNAME_POLL,         { .error = fs_error } },
      332 +        { VOPNAME_DISPOSE,      { .error = fs_error } },
      333 +        { NULL,                 { NULL } }
 334  334  };
 335  335  
 336  336  static int
 337  337  fdget(struct vnode *dvp, char *comp, struct vnode **vpp)
 338  338  {
 339  339          int n = 0;
 340  340          struct vnode *vp;
 341  341  
 342  342          while (*comp) {
 343  343                  if (*comp < '0' || *comp > '9')
↓ open down ↓ 128 lines elided ↑ open up ↑
 472  472          sp->f_namemax = FDNSIZE;
 473  473          (void) strcpy(sp->f_fstr, "/dev/fd");
 474  474          (void) strcpy(&sp->f_fstr[8], "/dev/fd");
 475  475          return (0);
 476  476  }
 477  477  
 478  478  int
 479  479  fdinit(int fstype, char *name)
 480  480  {
 481  481          static const fs_operation_def_t fd_vfsops_template[] = {
 482      -                VFSNAME_MOUNT,          { .vfs_mount = fdmount },
 483      -                VFSNAME_UNMOUNT,        { .vfs_unmount = fdunmount },
 484      -                VFSNAME_ROOT,           { .vfs_root = fdroot },
 485      -                VFSNAME_STATVFS,        { .vfs_statvfs = fdstatvfs },
 486      -                NULL,                   NULL
      482 +                { VFSNAME_MOUNT,        { .vfs_mount = fdmount } },
      483 +                { VFSNAME_UNMOUNT,      { .vfs_unmount = fdunmount } },
      484 +                { VFSNAME_ROOT,         { .vfs_root = fdroot } },
      485 +                { VFSNAME_STATVFS,      { .vfs_statvfs = fdstatvfs } },
      486 +                { NULL,                 { NULL } }
 487  487          };
 488  488          int error;
 489  489  
 490  490          fdfstype = fstype;
 491  491          ASSERT(fdfstype != 0);
 492  492  
 493  493          /*
 494  494           * Associate VFS ops vector with this fstype.
 495  495           */
 496  496          error = vfs_setfsops(fstype, fd_vfsops_template, NULL);
↓ open down ↓ 54 lines elided ↑ open up ↑
 551  551  };
 552  552  
 553  553  static struct modlfs modlfs = {
 554  554          &mod_fsops,
 555  555          "filesystem for fd",
 556  556          &vfw
 557  557  };
 558  558  
 559  559  static struct modlinkage modlinkage = {
 560  560          MODREV_1,
 561      -        &modlfs,
 562      -        NULL
      561 +        { &modlfs, NULL }
 563  562  };
 564  563  
 565  564  int
 566  565  _init(void)
 567  566  {
 568  567          return (mod_install(&modlinkage));
 569  568  }
 570  569  
 571  570  int
 572  571  _info(struct modinfo *modinfop)
 573  572  {
 574  573          return (mod_info(&modlinkage, modinfop));
 575  574  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX