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
This commit is contained in:
Bart Van Assche
2010-09-24 18:08:24 +00:00
parent e77a5e5072
commit bc2d0d32f1

View File

@@ -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)),