From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Date: Sat, 24 Aug 2013 10:10:48 -0500 Subject: [U-Boot] [PATCH v2 2/8] ahci: fix unaligned access In-Reply-To: <1377357054-27408-1-git-send-email-robherring2@gmail.com> References: <1377357054-27408-1-git-send-email-robherring2@gmail.com> Message-ID: <1377357054-27408-2-git-send-email-robherring2@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Rob Herring gcc 4.7 will generate unaligned accesses to local char arrays, so make them static to avoid that. Signed-off-by: Rob Herring Reviewed-by: Tom Rini --- v2: make hdr const drivers/block/ahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c index 02ba02f..f4d1d81 100644 --- a/drivers/block/ahci.c +++ b/drivers/block/ahci.c @@ -610,7 +610,7 @@ static void dump_ataid(hd_driveid_t *ataid) */ static int ata_scsiop_inquiry(ccb *pccb) { - u8 hdr[] = { + static const u8 hdr[] = { 0, 0, 0x5, /* claim SPC-3 version compatibility */ -- 1.8.1.2