summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2013-08-24 10:10:48 -0500
committerTom Rini <trini@ti.com>2013-09-06 13:09:07 -0400
commit48c3a87c0a7026866c014fcc1a55281585fa5a41 (patch)
treed3a1068e8acf0c5698127c9c5f810276abc9b0f1
parent2915a0223ae9632c9f555809ed20b3257ea47949 (diff)
downloadu-boot-imx-48c3a87c0a7026866c014fcc1a55281585fa5a41.zip
u-boot-imx-48c3a87c0a7026866c014fcc1a55281585fa5a41.tar.gz
u-boot-imx-48c3a87c0a7026866c014fcc1a55281585fa5a41.tar.bz2
ahci: fix unaligned access
gcc 4.7 will generate unaligned accesses to local char arrays, so make them static to avoid that. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Reviewed-by: Tom Rini <trini@ti.com>
-rw-r--r--drivers/block/ahci.c2
1 files changed, 1 insertions, 1 deletions
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 */