diff mbox

[v2,7/8] scsi/pmcraid: Remove an unused structure member

Message ID 20171016224940.1332-8-bart.vanassche@wdc.com (mailing list archive)
State New, archived
Headers show

Commit Message

Bart Van Assche Oct. 16, 2017, 10:49 p.m. UTC
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Cc: linux-scsi@vger.kernel.org
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Anil Ravindranath <anil_ravindranath@pmc-sierra.com>
---
 drivers/scsi/pmcraid.h | 1 -
 1 file changed, 1 deletion(-)

Comments

Hannes Reinecke Oct. 17, 2017, 6:21 a.m. UTC | #1
On 10/17/2017 12:49 AM, Bart Van Assche wrote:
> Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
> Cc: linux-scsi@vger.kernel.org
> Cc: Martin K. Petersen <martin.petersen@oracle.com>
> Cc: Anil Ravindranath <anil_ravindranath@pmc-sierra.com>
> ---
>  drivers/scsi/pmcraid.h | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/scsi/pmcraid.h b/drivers/scsi/pmcraid.h
> index 8bfac72a242b..44da91712115 100644
> --- a/drivers/scsi/pmcraid.h
> +++ b/drivers/scsi/pmcraid.h
> @@ -542,7 +542,6 @@ struct pmcraid_sglist {
>  	u32 order;
>  	u32 num_sg;
>  	u32 num_dma_sg;
> -	u32 buffer_len;
>  	struct scatterlist scatterlist[1];
>  };
>  
> 
This actually is the same story that we've had with ipr (and, looking at
the code, those two drivers look awfully similar ...).
pmcraid_sglist looks as if it's a hardware-dependent structure, so just
removing one entry from the middle of a structure might not be a good idea.
But this is something for the pmcraid folks to clarify.

Cheers,

Hannes
Bart Van Assche Oct. 17, 2017, 2:28 p.m. UTC | #2
On Tue, 2017-10-17 at 08:21 +0200, Hannes Reinecke wrote:
> On 10/17/2017 12:49 AM, Bart Van Assche wrote:

> > Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>

> > Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>

> > Cc: linux-scsi@vger.kernel.org

> > Cc: Martin K. Petersen <martin.petersen@oracle.com>

> > Cc: Anil Ravindranath <anil_ravindranath@pmc-sierra.com>

> > ---

> >  drivers/scsi/pmcraid.h | 1 -

> >  1 file changed, 1 deletion(-)

> > 

> > diff --git a/drivers/scsi/pmcraid.h b/drivers/scsi/pmcraid.h

> > index 8bfac72a242b..44da91712115 100644

> > --- a/drivers/scsi/pmcraid.h

> > +++ b/drivers/scsi/pmcraid.h

> > @@ -542,7 +542,6 @@ struct pmcraid_sglist {

> >  	u32 order;

> >  	u32 num_sg;

> >  	u32 num_dma_sg;

> > -	u32 buffer_len;

> >  	struct scatterlist scatterlist[1];

> >  };

> >  

> > 

> 

> This actually is the same story that we've had with ipr (and, looking at

> the code, those two drivers look awfully similar ...).

> pmcraid_sglist looks as if it's a hardware-dependent structure, so just

> removing one entry from the middle of a structure might not be a good idea.

> But this is something for the pmcraid folks to clarify.


Hello Hannes,

Sorry but I don't see how a structure that contains a struct scatterlist
could be hardware-dependent?

Thanks,

Bart.
diff mbox

Patch

diff --git a/drivers/scsi/pmcraid.h b/drivers/scsi/pmcraid.h
index 8bfac72a242b..44da91712115 100644
--- a/drivers/scsi/pmcraid.h
+++ b/drivers/scsi/pmcraid.h
@@ -542,7 +542,6 @@  struct pmcraid_sglist {
 	u32 order;
 	u32 num_sg;
 	u32 num_dma_sg;
-	u32 buffer_len;
 	struct scatterlist scatterlist[1];
 };