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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
          +++ new/usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
↓ open down ↓ 280 lines elided ↑ open up ↑
 281  281          0x0c,   /* semaphore */
 282  282          0x0e,   /* nvram */
 283  283          0x18,   /* req_in */
 284  284          0x18,   /* req_out */
 285  285          0x1a,   /* resp_in */
 286  286          0x1a,   /* resp_out */
 287  287          0xff,   /* risc2host - n/a */
 288  288          24,     /* Number of mailboxes */
 289  289  
 290  290          /* Mailbox in register offsets 0 - 23 */
 291      -        0x10, 0x12, 0x14, 0x16, 0x18, 0x1a, 0x1c, 0x1e,
 292      -        0xe0, 0xe2, 0xe4, 0xe6, 0xe8, 0xea, 0xec, 0xee,
 293      -        0xf0, 0xf2, 0xf4, 0xf6, 0xf8, 0xfa, 0xfc, 0xfe,
 294      -        /* 2200 does not have mailbox 24-31 - n/a */
 295      -        0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
      291 +        {   0x10, 0x12, 0x14, 0x16, 0x18, 0x1a, 0x1c, 0x1e,
      292 +            0xe0, 0xe2, 0xe4, 0xe6, 0xe8, 0xea, 0xec, 0xee,
      293 +            0xf0, 0xf2, 0xf4, 0xf6, 0xf8, 0xfa, 0xfc, 0xfe,
      294 +            /* 2200 does not have mailbox 24-31 - n/a */
      295 +            0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff },
 296  296  
 297  297          /* Mailbox out register offsets 0 - 23 */
 298      -        0x10, 0x12, 0x14, 0x16, 0x18, 0x1a, 0x1c, 0x1e,
 299      -        0xe0, 0xe2, 0xe4, 0xe6, 0xe8, 0xea, 0xec, 0xee,
 300      -        0xf0, 0xf2, 0xf4, 0xf6, 0xf8, 0xfa, 0xfc, 0xfe,
 301      -        /* 2200 does not have mailbox 24-31 - n/a */
 302      -        0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
      298 +        {   0x10, 0x12, 0x14, 0x16, 0x18, 0x1a, 0x1c, 0x1e,
      299 +            0xe0, 0xe2, 0xe4, 0xe6, 0xe8, 0xea, 0xec, 0xee,
      300 +            0xf0, 0xf2, 0xf4, 0xf6, 0xf8, 0xfa, 0xfc, 0xfe,
      301 +            /* 2200 does not have mailbox 24-31 - n/a */
      302 +            0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff },
 303  303  
 304  304          0x96,   /* fpm_diag_config */
 305  305          0xa4,   /* pcr */
 306  306          0xb0,   /* mctr */
 307  307          0xb8,   /* fb_cmd */
 308  308          0xc0,   /* hccr */
 309  309          0xcc,   /* gpiod */
 310  310          0xce,   /* gpioe */
 311  311          0xff,   /* host_to_host_sema - n/a */
 312  312          0xff,   /* pri_req_in - n/a */
↓ open down ↓ 15 lines elided ↑ open up ↑
 328  328          0x0c,   /* semaphore */
 329  329          0x0e,   /* nvram */
 330  330          0x10,   /* req_in */
 331  331          0x12,   /* req_out */
 332  332          0x14,   /* resp_in */
 333  333          0x16,   /* resp_out */
 334  334          0x18,   /* risc2host */
 335  335          32,     /* Number of mailboxes */
 336  336  
 337  337          /* Mailbox in register offsets 0 - 31 */
 338      -        0x40, 0x42, 0x44, 0x46, 0x48, 0x4a, 0x4c, 0x4e,
 339      -        0x50, 0x52, 0x54, 0x56, 0x58, 0x5a, 0x5c, 0x5e,
 340      -        0x60, 0x62, 0x64, 0x66, 0x68, 0x6a, 0x6c, 0x6e,
 341      -        0x70, 0x72, 0x74, 0x76, 0x78, 0x7a, 0x7c, 0x7e,
      338 +        {   0x40, 0x42, 0x44, 0x46, 0x48, 0x4a, 0x4c, 0x4e,
      339 +            0x50, 0x52, 0x54, 0x56, 0x58, 0x5a, 0x5c, 0x5e,
      340 +            0x60, 0x62, 0x64, 0x66, 0x68, 0x6a, 0x6c, 0x6e,
      341 +            0x70, 0x72, 0x74, 0x76, 0x78, 0x7a, 0x7c, 0x7e },
 342  342  
 343  343          /* Mailbox out register offsets 0 - 31 */
 344      -        0x40, 0x42, 0x44, 0x46, 0x48, 0x4a, 0x4c, 0x4e,
 345      -        0x50, 0x52, 0x54, 0x56, 0x58, 0x5a, 0x5c, 0x5e,
 346      -        0x60, 0x62, 0x64, 0x66, 0x68, 0x6a, 0x6c, 0x6e,
 347      -        0x70, 0x72, 0x74, 0x76, 0x78, 0x7a, 0x7c, 0x7e,
      344 +        {   0x40, 0x42, 0x44, 0x46, 0x48, 0x4a, 0x4c, 0x4e,
      345 +            0x50, 0x52, 0x54, 0x56, 0x58, 0x5a, 0x5c, 0x5e,
      346 +            0x60, 0x62, 0x64, 0x66, 0x68, 0x6a, 0x6c, 0x6e,
      347 +            0x70, 0x72, 0x74, 0x76, 0x78, 0x7a, 0x7c, 0x7e },
 348  348  
 349  349          0x96,   /* fpm_diag_config */
 350  350          0xa4,   /* pcr */
 351  351          0xb0,   /* mctr */
 352  352          0x80,   /* fb_cmd */
 353  353          0xc0,   /* hccr */
 354  354          0xcc,   /* gpiod */
 355  355          0xce,   /* gpioe */
 356  356          0x1c,   /* host_to_host_sema */
 357  357          0xff,   /* pri_req_in - n/a */
↓ open down ↓ 15 lines elided ↑ open up ↑
 373  373          0xff,   /* semaphore - n/a */
 374  374          0xff,   /* nvram - n/a */
 375  375          0x1c,   /* req_in */
 376  376          0x20,   /* req_out */
 377  377          0x24,   /* resp_in */
 378  378          0x28,   /* resp_out */
 379  379          0x44,   /* risc2host */
 380  380          32,     /* Number of mailboxes */
 381  381  
 382  382          /* Mailbox in register offsets 0 - 31 */
 383      -        0x80, 0x82, 0x84, 0x86, 0x88, 0x8a, 0x8c, 0x8e,
 384      -        0x90, 0x92, 0x94, 0x96, 0x98, 0x9a, 0x9c, 0x9e,
 385      -        0xa0, 0xa2, 0xa4, 0xa6, 0xa8, 0xaa, 0xac, 0xae,
 386      -        0xb0, 0xb2, 0xb4, 0xb6, 0xb8, 0xba, 0xbc, 0xbe,
      383 +        {   0x80, 0x82, 0x84, 0x86, 0x88, 0x8a, 0x8c, 0x8e,
      384 +            0x90, 0x92, 0x94, 0x96, 0x98, 0x9a, 0x9c, 0x9e,
      385 +            0xa0, 0xa2, 0xa4, 0xa6, 0xa8, 0xaa, 0xac, 0xae,
      386 +            0xb0, 0xb2, 0xb4, 0xb6, 0xb8, 0xba, 0xbc, 0xbe },
 387  387  
 388  388          /* Mailbox out register offsets 0 - 31 */
 389      -        0x80, 0x82, 0x84, 0x86, 0x88, 0x8a, 0x8c, 0x8e,
 390      -        0x90, 0x92, 0x94, 0x96, 0x98, 0x9a, 0x9c, 0x9e,
 391      -        0xa0, 0xa2, 0xa4, 0xa6, 0xa8, 0xaa, 0xac, 0xae,
 392      -        0xb0, 0xb2, 0xb4, 0xb6, 0xb8, 0xba, 0xbc, 0xbe,
      389 +        {   0x80, 0x82, 0x84, 0x86, 0x88, 0x8a, 0x8c, 0x8e,
      390 +            0x90, 0x92, 0x94, 0x96, 0x98, 0x9a, 0x9c, 0x9e,
      391 +            0xa0, 0xa2, 0xa4, 0xa6, 0xa8, 0xaa, 0xac, 0xae,
      392 +            0xb0, 0xb2, 0xb4, 0xb6, 0xb8, 0xba, 0xbc, 0xbe },
 393  393  
 394  394          0xff,   /* fpm_diag_config  - n/a */
 395  395          0xff,   /* pcr - n/a */
 396  396          0xff,   /* mctr - n/a */
 397  397          0xff,   /* fb_cmd - n/a */
 398  398          0x48,   /* hccr */
 399  399          0x4c,   /* gpiod */
 400  400          0x50,   /* gpioe */
 401  401          0xff,   /* host_to_host_sema - n/a */
 402  402          0x2c,   /* pri_req_in */
↓ open down ↓ 15 lines elided ↑ open up ↑
 418  418          0xff,   /* semaphore - n/a */
 419  419          0xff,   /* nvram - n/a */
 420  420          0xff,   /* req_in - n/a */
 421  421          0x0,    /* req_out */
 422  422          0x100,  /* resp_in */
 423  423          0x200,  /* resp_out */
 424  424          0x500,  /* risc2host */
 425  425          32,     /* Number of mailboxes */
 426  426  
 427  427          /* Mailbox in register offsets 0 - 31 */
 428      -        0x300, 0x302, 0x304, 0x306, 0x308, 0x30a, 0x30c, 0x30e,
 429      -        0x310, 0x312, 0x314, 0x316, 0x318, 0x31a, 0x31c, 0x31e,
 430      -        0x320, 0x322, 0x324, 0x326, 0x328, 0x32a, 0x32c, 0x32e,
 431      -        0x330, 0x332, 0x334, 0x336, 0x338, 0x33a, 0x33c, 0x33e,
      428 +        {   0x300, 0x302, 0x304, 0x306, 0x308, 0x30a, 0x30c, 0x30e,
      429 +            0x310, 0x312, 0x314, 0x316, 0x318, 0x31a, 0x31c, 0x31e,
      430 +            0x320, 0x322, 0x324, 0x326, 0x328, 0x32a, 0x32c, 0x32e,
      431 +            0x330, 0x332, 0x334, 0x336, 0x338, 0x33a, 0x33c, 0x33e },
 432  432  
 433  433          /* Mailbox out register offsets 0 - 31 */
 434      -        0x400, 0x402, 0x404, 0x406, 0x408, 0x40a, 0x40c, 0x40e,
 435      -        0x410, 0x412, 0x414, 0x416, 0x418, 0x41a, 0x41c, 0x41e,
 436      -        0x420, 0x422, 0x424, 0x426, 0x428, 0x42a, 0x42c, 0x42e,
 437      -        0x430, 0x432, 0x434, 0x436, 0x438, 0x43a, 0x43c, 0x43e,
      434 +        {   0x400, 0x402, 0x404, 0x406, 0x408, 0x40a, 0x40c, 0x40e,
      435 +            0x410, 0x412, 0x414, 0x416, 0x418, 0x41a, 0x41c, 0x41e,
      436 +            0x420, 0x422, 0x424, 0x426, 0x428, 0x42a, 0x42c, 0x42e,
      437 +            0x430, 0x432, 0x434, 0x436, 0x438, 0x43a, 0x43c, 0x43e },
 438  438  
 439  439          0xff,   /* fpm_diag_config  - n/a */
 440  440          0xff,   /* pcr - n/a */
 441  441          0xff,   /* mctr - n/a */
 442  442          0xff,   /* fb_cmd - n/a */
 443  443          0x48,   /* hccr */
 444  444          0x4c,   /* gpiod */
 445  445          0x50,   /* gpioe */
 446  446          0xff,   /* host_to_host_sema - n/a */
 447  447          0x2c,   /* pri_req_in */
↓ open down ↓ 114 lines elided ↑ open up ↑
 562  562   * Declare and initialize the module configuration section...
 563  563   */
 564  564  static struct modldrv modldrv = {
 565  565          &mod_driverops,                         /* type of module: driver */
 566  566          "SunFC Qlogic FCA v" QL_VERSION,        /* name of module */
 567  567          &ql_devops                              /* driver dev_ops */
 568  568  };
 569  569  
 570  570  static struct modlinkage modlinkage = {
 571  571          MODREV_1,
 572      -        &modldrv,
 573      -        NULL
      572 +        { &modldrv, NULL }
 574  573  };
 575  574  
 576  575  /* ************************************************************************ */
 577  576  /*                              Loadable Module Routines.                   */
 578  577  /* ************************************************************************ */
 579  578  
 580  579  /*
 581  580   * _init
 582  581   *      Initializes a loadable module. It is called before any other
 583  582   *      routine in a loadable module.
↓ open down ↓ 15772 lines elided ↑ open up ↑
16356 16355   *      Kernel context.
16357 16356   */
16358 16357  static int
16359 16358  ql_setup_msi(ql_adapter_state_t *ha)
16360 16359  {
16361 16360          int32_t         count = 0;
16362 16361          int32_t         avail = 0;
16363 16362          int32_t         actual = 0;
16364 16363          int32_t         msitype = DDI_INTR_TYPE_MSI;
16365 16364          int32_t         ret;
16366      -        ql_ifunc_t      itrfun[10] = {0};
     16365 +        ql_ifunc_t      itrfun[10] = {{NULL}};
16367 16366  
16368 16367          QL_PRINT_3(CE_CONT, "(%d): started\n", ha->instance);
16369 16368  
16370 16369          if (ql_disable_msi != 0) {
16371 16370                  EL(ha, "MSI is disabled by user\n");
16372 16371                  return (DDI_FAILURE);
16373 16372          }
16374 16373  
16375 16374          /* MSI support is only suported on 24xx HBA's. */
16376 16375          if (!(CFG_IST(ha, CFG_CTRL_24258081))) {
↓ open down ↓ 101 lines elided ↑ open up ↑
16478 16477  static int
16479 16478  ql_setup_msix(ql_adapter_state_t *ha)
16480 16479  {
16481 16480          uint16_t        hwvect;
16482 16481          int32_t         count = 0;
16483 16482          int32_t         avail = 0;
16484 16483          int32_t         actual = 0;
16485 16484          int32_t         msitype = DDI_INTR_TYPE_MSIX;
16486 16485          int32_t         ret;
16487 16486          uint32_t        i;
16488      -        ql_ifunc_t      itrfun[QL_MSIX_MAXAIF] = {0};
     16487 +        ql_ifunc_t      itrfun[QL_MSIX_MAXAIF] = {{NULL}};
16489 16488  
16490 16489          QL_PRINT_3(CE_CONT, "(%d): started\n", ha->instance);
16491 16490  
16492 16491          if (ql_disable_msix != 0) {
16493 16492                  EL(ha, "MSI-X is disabled by user\n");
16494 16493                  return (DDI_FAILURE);
16495 16494          }
16496 16495  
16497 16496          /*
16498 16497           * MSI-X support is only available on 24xx HBA's that have
↓ open down ↓ 1450 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX