Skip to content

Commit

Permalink
[SCSI] pmcraid: remove duplicate struct member
Browse files Browse the repository at this point in the history
sense_buffer is both a direct member of struct pmcraid_cmd as well as
an indirect one via an anonymous union and struct.  Fix this clash by
eliminating the direct member in favour of the anonymous struct/union
one.  The name duplication apparently isn't noticed by gcc versions
earlier than 4.4

Reported-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Anil Ravindranath <anil_ravindranath@pmc-sierra.com>
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Anil Ravindranath authored and James Bottomley committed Oct 26, 2010
1 parent a1e0063 commit df30e50
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/scsi/pmcraid.h
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,6 @@ struct pmcraid_cmd {
struct pmcraid_control_block *ioa_cb;
dma_addr_t ioa_cb_bus_addr;
dma_addr_t dma_handle;
u8 *sense_buffer;

/* pointer to mid layer structure of SCSI commands */
struct scsi_cmnd *scsi_cmd;
Expand Down

0 comments on commit df30e50

Please sign in to comment.