Print this page
7127 remove -Wno-missing-braces from Makefile.uts
*** 669,679 ****
}
static int
nvme_submit_cmd(nvme_qpair_t *qp, nvme_cmd_t *cmd)
{
! nvme_reg_sqtdbl_t tail = { 0 };
mutex_enter(&qp->nq_mutex);
if (qp->nq_active_cmds == qp->nq_nentry) {
mutex_exit(&qp->nq_mutex);
--- 669,679 ----
}
static int
nvme_submit_cmd(nvme_qpair_t *qp, nvme_cmd_t *cmd)
{
! nvme_reg_sqtdbl_t tail = { {0} };
mutex_enter(&qp->nq_mutex);
if (qp->nq_active_cmds == qp->nq_nentry) {
mutex_exit(&qp->nq_mutex);
*** 709,719 ****
}
static nvme_cmd_t *
nvme_retrieve_cmd(nvme_t *nvme, nvme_qpair_t *qp)
{
! nvme_reg_cqhdbl_t head = { 0 };
nvme_cqe_t *cqe;
nvme_cmd_t *cmd;
(void) ddi_dma_sync(qp->nq_cqdma->nd_dmah, 0,
--- 709,719 ----
}
static nvme_cmd_t *
nvme_retrieve_cmd(nvme_t *nvme, nvme_qpair_t *qp)
{
! nvme_reg_cqhdbl_t head = { {0} };
nvme_cqe_t *cqe;
nvme_cmd_t *cmd;
(void) ddi_dma_sync(qp->nq_cqdma->nd_dmah, 0,
*** 1061,1071 ****
static void
nvme_abort_cmd(nvme_cmd_t *abort_cmd)
{
nvme_t *nvme = abort_cmd->nc_nvme;
nvme_cmd_t *cmd = nvme_alloc_cmd(nvme, KM_SLEEP);
! nvme_abort_cmd_t ac = { 0 };
sema_p(&nvme->n_abort_sema);
ac.b.ac_cid = abort_cmd->nc_sqe.sqe_cid;
ac.b.ac_sqid = abort_cmd->nc_sqid;
--- 1061,1071 ----
static void
nvme_abort_cmd(nvme_cmd_t *abort_cmd)
{
nvme_t *nvme = abort_cmd->nc_nvme;
nvme_cmd_t *cmd = nvme_alloc_cmd(nvme, KM_SLEEP);
! nvme_abort_cmd_t ac = { {0} };
sema_p(&nvme->n_abort_sema);
ac.b.ac_cid = abort_cmd->nc_sqe.sqe_cid;
ac.b.ac_sqid = abort_cmd->nc_sqid;
*** 1554,1564 ****
static int
nvme_set_nqueues(nvme_t *nvme, uint16_t nqueues)
{
nvme_cmd_t *cmd = nvme_alloc_cmd(nvme, KM_SLEEP);
! nvme_nqueue_t nq = { 0 };
nq.b.nq_nsq = nq.b.nq_ncq = nqueues;
cmd->nc_sqid = 0;
cmd->nc_callback = nvme_wakeup_cmd;
--- 1554,1564 ----
static int
nvme_set_nqueues(nvme_t *nvme, uint16_t nqueues)
{
nvme_cmd_t *cmd = nvme_alloc_cmd(nvme, KM_SLEEP);
! nvme_nqueue_t nq = { {0} };
nq.b.nq_nsq = nq.b.nq_ncq = nqueues;
cmd->nc_sqid = 0;
cmd->nc_callback = nvme_wakeup_cmd;
*** 1592,1604 ****
static int
nvme_create_io_qpair(nvme_t *nvme, nvme_qpair_t *qp, uint16_t idx)
{
nvme_cmd_t *cmd = nvme_alloc_cmd(nvme, KM_SLEEP);
! nvme_create_queue_dw10_t dw10 = { 0 };
! nvme_create_cq_dw11_t c_dw11 = { 0 };
! nvme_create_sq_dw11_t s_dw11 = { 0 };
dw10.b.q_qid = idx;
dw10.b.q_qsize = qp->nq_nentry - 1;
c_dw11.b.cq_pc = 1;
--- 1592,1604 ----
static int
nvme_create_io_qpair(nvme_t *nvme, nvme_qpair_t *qp, uint16_t idx)
{
nvme_cmd_t *cmd = nvme_alloc_cmd(nvme, KM_SLEEP);
! nvme_create_queue_dw10_t dw10 = { {0} };
! nvme_create_cq_dw11_t c_dw11 = { {0} };
! nvme_create_sq_dw11_t s_dw11 = { {0} };
dw10.b.q_qid = idx;
dw10.b.q_qsize = qp->nq_nentry - 1;
c_dw11.b.cq_pc = 1;
*** 1734,1745 ****
}
static int
nvme_init(nvme_t *nvme)
{
! nvme_reg_cc_t cc = { 0 };
! nvme_reg_aqa_t aqa = { 0 };
nvme_reg_asq_t asq = { 0 };
nvme_reg_acq_t acq = { 0 };
nvme_reg_cap_t cap;
nvme_reg_vs_t vs;
nvme_reg_csts_t csts;
--- 1734,1745 ----
}
static int
nvme_init(nvme_t *nvme)
{
! nvme_reg_cc_t cc = { {0} };
! nvme_reg_aqa_t aqa = { {0} };
nvme_reg_asq_t asq = { 0 };
nvme_reg_acq_t acq = { 0 };
nvme_reg_cap_t cap;
nvme_reg_vs_t vs;
nvme_reg_csts_t csts;