ibmvscsi on powerpc allmodconfig
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.
From: Andrew Morton <[email protected]>
Subject: ibmvscsi on powerpc allmodconfig
Date: Sat, 5 Aug 2006 18:25:14 -0700
Quoted 8 lines
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 oncedrivers/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.
---
drivers/scsi/ibmvscsi/ibmvstgt.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-)
b4caa26ac91778974dcbc4a2427c30de0239253e
drivers/scsi/ibmvscsi/ibmvstgt.c +9 -9
@@ -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 *idma_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 srpfree_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 );
Signature · 1 line
1.1.5
Quoted 3 lines · FUJITA Tomonori
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
From: James Bottomley <[email protected]>
Subject: Re: ibmvscsi on powerpc allmodconfig
Date: Sun, 06 Aug 2006 11:21:25 -0500
Quoted 8 lines · FUJITA Tomonori
Quoted 3 lines
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.