diff options
author | Rob Herring | 2013-08-24 10:10:48 -0500 |
---|---|---|
committer | Tom Rini | 2013-09-06 13:09:07 -0400 |
commit | 48c3a87c0a7026866c014fcc1a55281585fa5a41 (patch) | |
tree | d3a1068e8acf0c5698127c9c5f810276abc9b0f1 /drivers/block/ahci.c | |
parent | 2915a0223ae9632c9f555809ed20b3257ea47949 (diff) |
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 02ba02f427a..f4d1d8174f6 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 */ |