From: Thierry Parmentelat Date: Fri, 10 Jun 2011 03:55:59 +0000 (+0200) Subject: patch for gcc-4.6, eliminate duplicate, from 2.6.36 X-Git-Tag: help~3 X-Git-Url: http://git.onelab.eu/?p=linux-2.6.git;a=commitdiff_plain;h=be045a194eb6c82c66a4d4b9fcc7986d0e1e417a patch for gcc-4.6, eliminate duplicate, from 2.6.36 --- diff --git a/kernel-2.6.spec b/kernel-2.6.spec index 8823eef39..03311006e 100644 --- a/kernel-2.6.spec +++ b/kernel-2.6.spec @@ -684,6 +684,7 @@ Patch20: linux-2.6-680-htb-hysteresis-tso.patch Patch10000: linux-2.6-10000-gcc-4.5.patch Patch10001: linux-2.6-10001-gcc-4.6-warnoff.patch +Patch10002: linux-2.6-10002-gcc-4.6-sense_buffer.patch Patch11000: linux-2.6-11000-gcc-4.6.patch # empty final patch file to facilitate testing of kernel patches Patch999999: linux-kernel-test.patch @@ -999,6 +1000,7 @@ ApplyPatch linux-2.6-660-nmi-watchdog-default.patch ApplyPatch linux-2.6-680-htb-hysteresis-tso.patch ApplyPatch linux-2.6-10000-gcc-4.5.patch ApplyPatch linux-2.6-10001-gcc-4.6-warnoff.patch +ApplyPatch linux-2.6-10002-gcc-4.6-sense_buffer.patch ApplyPatch linux-2.6-11000-gcc-4.6.patch #### Planet-Lab #### diff --git a/linux-2.6-10002-gcc-4.6-sense_buffer.patch b/linux-2.6-10002-gcc-4.6-sense_buffer.patch new file mode 100644 index 000000000..7fa54e623 --- /dev/null +++ b/linux-2.6-10002-gcc-4.6-sense_buffer.patch @@ -0,0 +1,29 @@ +------------------ +From: Anil Ravindranath + +commit df30e5059681ed0671c9cc6ff702fe9ca7f20042 upstream. + +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 +Signed-off-by: Anil Ravindranath +Signed-off-by: James Bottomley +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/scsi/pmcraid.h | 1 - + 1 file changed, 1 deletion(-) +--- a/drivers/scsi/pmcraid.h ++++ b/drivers/scsi/pmcraid.h +@@ -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;