Setting tag linux-2.6-32-36
[linux-2.6.git] / linux-2.6-10002-gcc-4.6-sense_buffer.patch
1 ------------------
2 From: Anil Ravindranath <anil_ravindranath@pmc-sierra.com>
3
4 commit df30e5059681ed0671c9cc6ff702fe9ca7f20042 upstream.
5
6 sense_buffer is both a direct member of struct pmcraid_cmd as well as
7 an indirect one via an anonymous union and struct.  Fix this clash by
8 eliminating the direct member in favour of the anonymous struct/union
9 one.  The name duplication apparently isn't noticed by gcc versions
10 earlier than 4.4
11
12 Reported-by: Andi Kleen <ak@linux.intel.com>
13 Signed-off-by: Anil Ravindranath <anil_ravindranath@pmc-sierra.com>
14 Signed-off-by: James Bottomley <James.Bottomley@suse.de>
15 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
16
17 ---
18  drivers/scsi/pmcraid.h |    1 -
19  1 file changed, 1 deletion(-)
20 --- a/drivers/scsi/pmcraid.h
21 +++ b/drivers/scsi/pmcraid.h
22 @@ -568,7 +568,6 @@ struct pmcraid_cmd {
23         struct pmcraid_control_block *ioa_cb;
24         dma_addr_t ioa_cb_bus_addr;
25         dma_addr_t dma_handle;
26 -       u8 *sense_buffer;
27  
28         /* pointer to mid layer structure of SCSI commands */
29         struct scsi_cmnd *scsi_cmd;