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_xioctl.c
          +++ new/usr/src/uts/common/io/fibre-channel/fca/qlc/ql_xioctl.c
↓ open down ↓ 6361 lines elided ↑ open up ↑
6362 6362   *      None, request status indicated in cmd->Status.
6363 6363   *
6364 6364   * Context:
6365 6365   *      Kernel context.
6366 6366   */
6367 6367  static void
6368 6368  ql_get_target_id(ql_adapter_state_t *ha, EXT_IOCTL *cmd, int mode)
6369 6369  {
6370 6370          uint32_t                rval;
6371 6371          uint16_t                qlnt;
6372      -        EXT_DEST_ADDR           extdestaddr = {0};
     6372 +        EXT_DEST_ADDR           extdestaddr = {{{0}}};
6373 6373          uint8_t                 *name;
6374 6374          uint8_t                 wwpn[EXT_DEF_WWN_NAME_SIZE];
6375 6375          ql_tgt_t                *tq;
6376 6376  
6377 6377          QL_PRINT_9(CE_CONT, "(%d): started\n", ha->instance);
6378 6378  
6379 6379          if (ddi_copyin((void *)(uintptr_t)cmd->RequestAdr,
6380 6380              (void*)wwpn, sizeof (EXT_DEST_ADDR), mode) != 0) {
6381 6381                  EL(ha, "failed, ddi_copyin\n");
6382 6382                  cmd->Status = EXT_STATUS_COPY_ERR;
↓ open down ↓ 439 lines elided ↑ open up ↑
6822 6822                  *nextpos = 0xffffffff;
6823 6823  
6824 6824                  QL_PRINT_9(CE_CONT, "(%d): CFG_SBUS_CARD, done\n",
6825 6825                      ha->instance);
6826 6826  
6827 6827                  return (0);
6828 6828          }
6829 6829  
6830 6830          if (*nextpos == ha->flash_fw_addr << 2) {
6831 6831  
6832      -                pci_header_t    fwh = {0};
6833      -                pci_data_t      fwd = {0};
     6832 +                pci_header_t    fwh = {{0}};
     6833 +                pci_data_t      fwd = {{0}};
6834 6834                  uint8_t         *buf, *bufp;
6835 6835  
6836 6836                  /*
6837 6837                   * Build a pci header for the firmware module
6838 6838                   */
6839 6839                  if ((buf = (uint8_t *)(kmem_zalloc(FBUFSIZE, KM_SLEEP))) ==
6840 6840                      NULL) {
6841 6841                          EL(ha, "failed, unable to allocate buffer\n");
6842 6842                          return (1);
6843 6843                  }
↓ open down ↓ 629 lines elided ↑ open up ↑
7473 7473   *
7474 7474   * Context:
7475 7475   *      Kernel context.
7476 7476   *
7477 7477   */
7478 7478  static void
7479 7479  ql_port_param(ql_adapter_state_t *ha, EXT_IOCTL *cmd, int mode)
7480 7480  {
7481 7481          uint8_t                 *name;
7482 7482          ql_tgt_t                *tq;
7483      -        EXT_PORT_PARAM          port_param = {0};
     7483 +        EXT_PORT_PARAM          port_param = {{{{0}}}};
7484 7484          uint32_t                rval = QL_SUCCESS;
7485 7485          uint32_t                idma_rate;
7486 7486  
7487 7487          QL_PRINT_9(CE_CONT, "(%d): started\n", ha->instance);
7488 7488  
7489 7489          if (CFG_IST(ha, CFG_CTRL_242581) == 0) {
7490 7490                  EL(ha, "invalid request for this HBA\n");
7491 7491                  cmd->Status = EXT_STATUS_INVALID_REQUEST;
7492 7492                  cmd->ResponseLen = 0;
7493 7493                  return;
↓ open down ↓ 1767 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX