public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* ibmvscsi on powerpc allmodconfig
@ 2006-08-06  1:25 Andrew Morton
  2006-08-06  2:17 ` FUJITA Tomonori
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2006-08-06  1:25 UTC (permalink / raw)
  To: linux-scsi; +Cc: Anton Blanchard, Paul Mackerras

drivers/scsi/ibmvscsi/ibmvstgt.c: In function `ibmvstgt_rdma':
drivers/scsi/ibmvscsi/ibmvstgt.c:241: error: `H_Success' undeclared (first use in this function)
drivers/scsi/ibmvscsi/ibmvstgt.c:241: error: (Each undeclared identifier is reported only once
drivers/scsi/ibmvscsi/ibmvstgt.c:241: error: for each function it appears in.)
drivers/scsi/ibmvscsi/ibmvstgt.c: In function `send_adapter_info':
drivers/scsi/ibmvscsi/ibmvstgt.c:328: error: `H_Success' undeclared (first use in this function)

this has been happening for ages.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ibmvscsi on powerpc allmodconfig
  2006-08-06  1:25 ibmvscsi on powerpc allmodconfig Andrew Morton
@ 2006-08-06  2:17 ` FUJITA Tomonori
  2006-08-06 16:21   ` James Bottomley
  0 siblings, 1 reply; 4+ messages in thread
From: FUJITA Tomonori @ 2006-08-06  2:17 UTC (permalink / raw)
  To: akpm; +Cc: James.Bottomley, linux-scsi, anton, paulus

From: Andrew Morton <akpm@osdl.org>
Subject: ibmvscsi on powerpc allmodconfig
Date: Sat, 5 Aug 2006 18:25:14 -0700

> drivers/scsi/ibmvscsi/ibmvstgt.c: In function `ibmvstgt_rdma':
> drivers/scsi/ibmvscsi/ibmvstgt.c:241: error: `H_Success' undeclared (first use in this function)
> drivers/scsi/ibmvscsi/ibmvstgt.c:241: error: (Each undeclared identifier is reported only once
> drivers/scsi/ibmvscsi/ibmvstgt.c:241: error: for each function it appears in.)
> drivers/scsi/ibmvscsi/ibmvstgt.c: In function `send_adapter_info':
> drivers/scsi/ibmvscsi/ibmvstgt.c:328: error: `H_Success' undeclared (first use in this function)
> 
> this has been happening for ages.

That's a target driver. Sorry, it's my fault. The problem is that the
scsi-target git tree on kernel.org doesn't include the latest target
code.

The following patch will update IBM VIO target driver for hvcall.h
changes.


Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>

---

 drivers/scsi/ibmvscsi/ibmvstgt.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

b4caa26ac91778974dcbc4a2427c30de0239253e
diff --git a/drivers/scsi/ibmvscsi/ibmvstgt.c b/drivers/scsi/ibmvscsi/ibmvstgt.c
index c2c4244..cf1e851 100644
--- a/drivers/scsi/ibmvscsi/ibmvstgt.c
+++ b/drivers/scsi/ibmvscsi/ibmvstgt.c
@@ -238,7 +238,7 @@ static int ibmvstgt_rdma(struct iu_entry
 						  vport->riobn,
 						  md[i].va + mdone);
 
-			if (err != H_Success) {
+			if (err != H_SUCCESS) {
 				eprintk("rdma error %d %d\n", dir, slen);
 				goto out;
 			}
@@ -325,7 +325,7 @@ int send_adapter_info(struct iu_entry *i
 	/* Get remote info */
 	err = h_copy_rdma(sizeof(*info), vport->riobn, remote_buffer,
 			  vport->liobn, data_token);
-	if (err == H_Success) {
+	if (err == H_SUCCESS) {
 		dprintk("Client connect: %s (%d)\n",
 			info->partition_name, info->partition_number);
 	}
@@ -346,7 +346,7 @@ int send_adapter_info(struct iu_entry *i
 
 	dma_free_coherent(target->dev, sizeof(*info), info, data_token);
 
-	if (err != H_Success) {
+	if (err != H_SUCCESS) {
 		eprintk("Error sending adapter info %d\n", err);
 		return 1;
 	}
@@ -506,7 +506,7 @@ static void process_iu(struct viosrp_crq
 	err = h_copy_rdma(crq->IU_length, vport->riobn,
 			  iue->remote_token, vport->liobn, iue->sbuf->dma);
 
-	if (err != H_Success)
+	if (err != H_SUCCESS)
 		eprintk("%ld transferring data error %p\n", err, iue);
 
 	if (crq->format == VIOSRP_MAD_FORMAT)
@@ -552,16 +552,16 @@ static int crq_queue_create(struct crq_q
 	/* If the adapter was left active for some reason (like kexec)
 	 * try freeing and re-registering
 	 */
-	if (err == H_Resource) {
+	if (err == H_RESOURCE) {
 	    do {
 		err = h_free_crq(vport->dma_dev->unit_address);
-	    } while (err == H_Busy || H_isLongBusy(err));
+	    } while (err == H_BUSY || H_IS_LONG_BUSY(err));
 
 	    err = h_reg_crq(vport->dma_dev->unit_address, queue->msg_token,
 			    PAGE_SIZE);
 	}
 
-	if (err != H_Success && err != 2) {
+	if (err != H_SUCCESS && err != 2) {
 		eprintk("Error 0x%x opening virtual adapter\n", err);
 		goto reg_crq_failed;
 	}
@@ -583,7 +583,7 @@ static int crq_queue_create(struct crq_q
 req_irq_failed:
 	do {
 		err = h_free_crq(vport->dma_dev->unit_address);
-	} while (err == H_Busy || H_isLongBusy(err));
+	} while (err == H_BUSY || H_IS_LONG_BUSY(err));
 
 reg_crq_failed:
 	dma_unmap_single(target->dev, queue->msg_token,
@@ -604,7 +604,7 @@ static void crq_queue_destroy(struct srp
 	free_irq(vport->dma_dev->irq, target);
 	do {
 		err = h_free_crq(vport->dma_dev->unit_address);
-	} while (err == H_Busy || H_isLongBusy(err));
+	} while (err == H_BUSY || H_IS_LONG_BUSY(err));
 
 	dma_unmap_single(target->dev, queue->msg_token,
 			 queue->size * sizeof(*queue->msgs), DMA_BIDIRECTIONAL);
-- 
1.1.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: ibmvscsi on powerpc allmodconfig
  2006-08-06  2:17 ` FUJITA Tomonori
@ 2006-08-06 16:21   ` James Bottomley
  2006-08-06 23:32     ` FUJITA Tomonori
  0 siblings, 1 reply; 4+ messages in thread
From: James Bottomley @ 2006-08-06 16:21 UTC (permalink / raw)
  To: FUJITA Tomonori; +Cc: Mike Christie, akpm, linux-scsi, anton, paulus

On Sun, 2006-08-06 at 11:17 +0900, FUJITA Tomonori wrote:
> That's a target driver. Sorry, it's my fault. The problem is that the
> scsi-target git tree on kernel.org doesn't include the latest target
> code.

Well, probably mine too ... I thought I understood that post-OLS Mike
Christie would take over doing the target tree on kernel.org, and so you
wouldn't need the one I was maintaining ... is that still the plan?

James



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ibmvscsi on powerpc allmodconfig
  2006-08-06 16:21   ` James Bottomley
@ 2006-08-06 23:32     ` FUJITA Tomonori
  0 siblings, 0 replies; 4+ messages in thread
From: FUJITA Tomonori @ 2006-08-06 23:32 UTC (permalink / raw)
  To: James.Bottomley
  Cc: fujita.tomonori, michaelc, akpm, linux-scsi, anton, paulus

From: James Bottomley <James.Bottomley@SteelEye.com>
Subject: Re: ibmvscsi on powerpc allmodconfig
Date: Sun, 06 Aug 2006 11:21:25 -0500

> On Sun, 2006-08-06 at 11:17 +0900, FUJITA Tomonori wrote:
> > That's a target driver. Sorry, it's my fault. The problem is that the
> > scsi-target git tree on kernel.org doesn't include the latest target
> > code.
> 
> Well, probably mine too ... I thought I understood that post-OLS Mike
> Christie would take over doing the target tree on kernel.org, and so you
> wouldn't need the one I was maintaining ... is that still the plan?

Yes, it's the plan. Mike prefers that I have a git tree. So I've been
searching someone who gives it to me, however, I've not yet succeeded.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-06 23:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-06  1:25 ibmvscsi on powerpc allmodconfig Andrew Morton
2006-08-06  2:17 ` FUJITA Tomonori
2006-08-06 16:21   ` James Bottomley
2006-08-06 23:32     ` FUJITA Tomonori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox