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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/io/dktp/drvobj/strategy.c
          +++ new/usr/src/uts/intel/io/dktp/drvobj/strategy.c
↓ open down ↓ 45 lines elided ↑ open up ↑
  46   46  static struct buf *qmerge_nextbp(struct que_data *qfp, struct buf *bp_merge,
  47   47      int *can_merge);
  48   48  
  49   49  static struct modlmisc modlmisc = {
  50   50          &mod_miscops,   /* Type of module */
  51   51          "Device Strategy Objects"
  52   52  };
  53   53  
  54   54  static struct modlinkage modlinkage = {
  55   55          MODREV_1,
  56      -        &modlmisc,
  57      -        NULL
       56 +        { &modlmisc, NULL }
  58   57  };
  59   58  
  60   59  int
  61   60  _init(void)
  62   61  {
  63   62          return (mod_install(&modlinkage));
  64   63  }
  65   64  
  66   65  int
  67   66  _fini(void)
↓ open down ↓ 126 lines elided ↑ open up ↑
 194  193  static int dsngl_enque(opaque_t, struct buf *);
 195  194  static int dsngl_deque(opaque_t, struct buf *);
 196  195  
 197  196  struct  flc_objops dsngl_ops = {
 198  197          fc_init,
 199  198          fc_free,
 200  199          dsngl_enque,
 201  200          dsngl_deque,
 202  201          fc_start_kstat,
 203  202          fc_stop_kstat,
 204      -        0, 0
      203 +        { NULL, NULL }
 205  204  };
 206  205  
 207  206  struct flc_obj *
 208  207  dsngl_create()
 209  208  {
 210  209          return (fc_create((struct flc_objops *)&dsngl_ops));
 211  210  }
 212  211  
 213  212  static int
 214  213  dsngl_enque(opaque_t queuep, struct buf *in_bp)
↓ open down ↓ 104 lines elided ↑ open up ↑
 319  318  static int dmult_enque(opaque_t, struct buf *);
 320  319  static int dmult_deque(opaque_t, struct buf *);
 321  320  
 322  321  struct  flc_objops dmult_ops = {
 323  322          fc_init,
 324  323          fc_free,
 325  324          dmult_enque,
 326  325          dmult_deque,
 327  326          fc_start_kstat,
 328  327          fc_stop_kstat,
 329      -        0, 0
      328 +        { NULL, NULL }
 330  329  };
 331  330  
 332  331  struct flc_obj *
 333  332  dmult_create()
 334  333  {
 335  334          return (fc_create((struct flc_objops *)&dmult_ops));
 336  335  
 337  336  }
 338  337  
 339  338  
↓ open down ↓ 126 lines elided ↑ open up ↑
 466  465  static int duplx_enque(opaque_t queuep, struct buf *bp);
 467  466  static int duplx_deque(opaque_t queuep, struct buf *bp);
 468  467  
 469  468  struct  flc_objops duplx_ops = {
 470  469          duplx_init,
 471  470          duplx_free,
 472  471          duplx_enque,
 473  472          duplx_deque,
 474  473          fc_start_kstat,
 475  474          fc_stop_kstat,
 476      -        0, 0
      475 +        { NULL, NULL }
 477  476  };
 478  477  
 479  478  struct flc_obj *
 480  479  duplx_create()
 481  480  {
 482  481          struct  flc_obj *flcobjp;
 483  482          struct  duplx_data *fcdp;
 484  483  
 485  484          flcobjp = kmem_zalloc((sizeof (*flcobjp) + sizeof (*fcdp)), KM_NOSLEEP);
 486  485          if (!flcobjp)
↓ open down ↓ 203 lines elided ↑ open up ↑
 690  689   * Local Function Prototypes
 691  690   */
 692  691  
 693  692  struct  flc_objops adapt_ops = {
 694  693          fc_init,
 695  694          fc_free,
 696  695          dmult_enque,
 697  696          dmult_deque,
 698  697          fc_start_kstat,
 699  698          fc_stop_kstat,
 700      -        0, 0
      699 +        { NULL, NULL }
 701  700  };
 702  701  
 703  702  struct flc_obj *
 704  703  adapt_create()
 705  704  {
 706  705          return (fc_create((struct flc_objops *)&adapt_ops));
 707  706  
 708  707  }
 709  708  
 710  709  /*
↓ open down ↓ 75 lines elided ↑ open up ↑
 786  785   *      Local Function Prototypes
 787  786   */
 788  787  static int qmerge_add(), qmerge_free();
 789  788  static struct buf *qmerge_del(struct que_data *qfp);
 790  789  
 791  790  struct  que_objops qmerge_ops = {
 792  791          que_init,
 793  792          qmerge_free,
 794  793          qmerge_add,
 795  794          qmerge_del,
 796      -        0, 0
      795 +        { NULL, NULL }
 797  796  };
 798  797  
 799  798  /* fields in diskhd */
 800  799  #define hd_cnt                  b_back
 801  800  #define hd_private              b_forw
 802  801  #define hd_flags                b_flags
 803  802  #define hd_sync_next            av_forw
 804  803  #define hd_async_next           av_back
 805  804  
 806  805  #define hd_sync2async           sync_async_ratio
↓ open down ↓ 520 lines elided ↑ open up ↑
1327 1326  /*
1328 1327   *      Local Function Prototypes
1329 1328   */
1330 1329  static int qfifo_add();
1331 1330  
1332 1331  struct  que_objops qfifo_ops = {
1333 1332          que_init,
1334 1333          que_free,
1335 1334          qfifo_add,
1336 1335          que_del,
1337      -        0, 0
     1336 +        { NULL, NULL }
1338 1337  };
1339 1338  
1340 1339  /*
1341 1340   *      Local static data
1342 1341   */
1343 1342  struct que_obj *
1344 1343  qfifo_create()
1345 1344  {
1346 1345          return (que_create((struct que_objops *)&qfifo_ops));
1347 1346  }
↓ open down ↓ 19 lines elided ↑ open up ↑
1367 1366   */
1368 1367  static int qsort_add();
1369 1368  static struct buf *qsort_del();
1370 1369  static void oneway_scan_binary(struct diskhd *dp, struct buf *bp);
1371 1370  
1372 1371  struct  que_objops qsort_ops = {
1373 1372          que_init,
1374 1373          que_free,
1375 1374          qsort_add,
1376 1375          qsort_del,
1377      -        0, 0
     1376 +        { NULL, NULL }
1378 1377  };
1379 1378  
1380 1379  /*
1381 1380   *      Local static data
1382 1381   */
1383 1382  struct que_obj *
1384 1383  qsort_create()
1385 1384  {
1386 1385          return (que_create((struct que_objops *)&qsort_ops));
1387 1386  }
↓ open down ↓ 61 lines elided ↑ open up ↑
1449 1448   */
1450 1449  /*
1451 1450   *      Local Function Prototypes
1452 1451   */
1453 1452  
1454 1453  struct  que_objops qtag_ops = {
1455 1454          que_init,
1456 1455          que_free,
1457 1456          qsort_add,
1458 1457          qsort_del,
1459      -        0, 0
     1458 +        { NULL, NULL }
1460 1459  };
1461 1460  
1462 1461  /*
1463 1462   *      Local static data
1464 1463   */
1465 1464  struct que_obj *
1466 1465  qtag_create()
1467 1466  {
1468 1467          return (que_create((struct que_objops *)&qtag_ops));
1469 1468  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX