Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df30e505 authored by Anil Ravindranath's avatar Anil Ravindranath Committed by James Bottomley
Browse files

[SCSI] pmcraid: remove duplicate struct member



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: default avatarAndi Kleen <ak@linux.intel.com>
Signed-off-by: default avatarAnil Ravindranath <anil_ravindranath@pmc-sierra.com>
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent a1e0063d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;