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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/proc/prvfsops.c
          +++ new/usr/src/uts/common/fs/proc/prvfsops.c
↓ open down ↓ 75 lines elided ↑ open up ↑
  76   76  /*
  77   77   * Module linkage information for the kernel.
  78   78   */
  79   79  extern struct mod_ops mod_fsops;
  80   80  
  81   81  static struct modlfs modlfs = {
  82   82          &mod_fsops, "filesystem for proc", &vfw
  83   83  };
  84   84  
  85   85  static struct modlinkage modlinkage = {
  86      -        MODREV_1, (void *)&modlfs, NULL
       86 +        MODREV_1, { (void *)&modlfs, NULL }
  87   87  };
  88   88  
  89   89  int
  90   90  _init(void)
  91   91  {
  92   92          return (mod_install(&modlinkage));
  93   93  }
  94   94  
  95   95  int
  96   96  _info(struct modinfo *modinfop)
↓ open down ↓ 37 lines elided ↑ open up ↑
 134  134          vp->v_data = (caddr_t)pnp;
 135  135          pnp->pr_type = PR_PROCDIR;
 136  136          pnp->pr_mode = 0555;    /* read-search by everyone */
 137  137          vn_exists(vp);
 138  138  }
 139  139  
 140  140  static int
 141  141  prinit(int fstype, char *name)
 142  142  {
 143  143          static const fs_operation_def_t pr_vfsops_template[] = {
 144      -                VFSNAME_MOUNT,          { .vfs_mount = prmount },
 145      -                VFSNAME_UNMOUNT,        { .vfs_unmount = prunmount },
 146      -                VFSNAME_ROOT,           { .vfs_root = prroot },
 147      -                VFSNAME_STATVFS,        { .vfs_statvfs = prstatvfs },
 148      -                NULL,                   NULL
      144 +                { VFSNAME_MOUNT,        { .vfs_mount = prmount } },
      145 +                { VFSNAME_UNMOUNT,      { .vfs_unmount = prunmount } },
      146 +                { VFSNAME_ROOT,         { .vfs_root = prroot } },
      147 +                { VFSNAME_STATVFS,      { .vfs_statvfs = prstatvfs } },
      148 +                { NULL,                 { NULL } }
 149  149          };
 150  150          extern const fs_operation_def_t pr_vnodeops_template[];
 151  151          int error;
 152  152  
 153  153          nproc_highbit = highbit(v.v_proc);
 154  154          procfstype = fstype;
 155  155          ASSERT(procfstype != 0);
 156  156          /*
 157  157           * Associate VFS ops vector with this fstype.
 158  158           */
↓ open down ↓ 168 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX