From bc2d0d32f1a17c6ed3e45e851d3e57462355fb27 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 24 Sep 2010 18:08:24 +0000 Subject: [PATCH] Builds now with procfs enabled too / fixed two compiler warnings. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2247 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- ibmvstgt/src/ibmvstgt.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ibmvstgt/src/ibmvstgt.c b/ibmvstgt/src/ibmvstgt.c index b8c686c9f..174c20e5d 100644 --- a/ibmvstgt/src/ibmvstgt.c +++ b/ibmvstgt/src/ibmvstgt.c @@ -343,6 +343,11 @@ static bool ibmvstgt_is_target_enabled(struct scst_tgt *scst_tgt) spin_unlock_irqrestore(&target->lock, flags); return res; } +#else +static bool ibmvstgt_is_target_enabled(struct scst_tgt *scst_tgt) +{ + return true; +} #endif /** @@ -433,8 +438,9 @@ static int ibmvstgt_rdy_to_xfer(struct scst_cmd *sc) ibmvstgt_rdma, 1, 1); if (ret != SCST_TGT_RES_SUCCESS) { - PRINT_ERROR("%s: tag= %llu xfer_data failed", - __func__, scst_cmd_get_tag(sc)); + PRINT_ERROR("%s: tag= %llu xfer_data failed", __func__, + (long long unsigned) + be64_to_cpu(scst_cmd_get_tag(sc))); scst_set_cmd_error(sc, SCST_LOAD_SENSE(scst_sense_write_error)); } @@ -700,7 +706,8 @@ static void ibmvstgt_tsk_mgmt_done(struct scst_mgmt_cmd *mcmnd) iu = vio_iu(iue); TRACE_DBG("%s: tag %lld status %d", - __func__, iu->srp.rsp.tag, scst_mgmt_cmd_get_status(mcmnd)); + __func__, (long long unsigned)be64_to_cpu(iu->srp.rsp.tag), + scst_mgmt_cmd_get_status(mcmnd)); send_rsp(iue, NULL, scst_to_srp_tsk_mgmt_status(scst_mgmt_cmd_get_status(mcmnd)),