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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/swapfs/swap_subr.c
          +++ new/usr/src/uts/common/fs/swapfs/swap_subr.c
↓ open down ↓ 157 lines elided ↑ open up ↑
 158  158  }
 159  159  
 160  160  /*ARGSUSED1*/
 161  161  int
 162  162  swapinit(int fstype, char *name)
 163  163  {                                                       /* reserve for mp */
 164  164          ssize_t sw_freelist_size = klustsize / PAGESIZE * 2;
 165  165          int i, error;
 166  166  
 167  167          static const fs_operation_def_t swap_vfsops[] = {
 168      -                VFSNAME_SYNC, { .vfs_sync = swap_sync },
 169      -                NULL, NULL
      168 +                { VFSNAME_SYNC, { .vfs_sync = swap_sync }},
      169 +                { NULL, {NULL} }
 170  170          };
 171  171  
 172  172          SWAPFS_PRINT(SWAP_SUBR, "swapinit\n", 0, 0, 0, 0, 0);
 173  173          mutex_init(&swapfs_lock, NULL, MUTEX_DEFAULT, NULL);
 174  174  
 175  175          swap_vnodes = kmem_zalloc(MAX_SWAP_VNODES * sizeof (struct vnode *),
 176  176              KM_SLEEP);
 177  177  
 178  178          swapfs_recalc_save_initial();
 179  179          if (!swapfs_recalc(physmem))
↓ open down ↓ 229 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX