diff options
author | Rob Herring <rob.herring@calxeda.com> | 2013-08-24 10:10:48 -0500 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-09-06 13:09:07 -0400 |
commit | 48c3a87c0a7026866c014fcc1a55281585fa5a41 (patch) | |
tree | d3a1068e8acf0c5698127c9c5f810276abc9b0f1 /drivers/block/ahci.c | |
parent | 2915a0223ae9632c9f555809ed20b3257ea47949 (diff) | |
download | u-boot-48c3a87c0a7026866c014fcc1a55281585fa5a41.tar.gz u-boot-48c3a87c0a7026866c014fcc1a55281585fa5a41.tar.bz2 u-boot-48c3a87c0a7026866c014fcc1a55281585fa5a41.zip |
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>
Diffstat (limited to 'drivers/block/ahci.c')
-rw-r--r-- | drivers/block/ahci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c index 02ba02f427..f4d1d8174f 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 */ |