Commit 48c3a87c authored by Rob Herring's avatar Rob Herring Committed by Tom Rini
Browse files

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: default avatarRob Herring <rob.herring@calxeda.com>
Reviewed-by: default avatarTom Rini <trini@ti.com>
parent 2915a022
...@@ -610,7 +610,7 @@ static void dump_ataid(hd_driveid_t *ataid) ...@@ -610,7 +610,7 @@ static void dump_ataid(hd_driveid_t *ataid)
*/ */
static int ata_scsiop_inquiry(ccb *pccb) static int ata_scsiop_inquiry(ccb *pccb)
{ {
u8 hdr[] = { static const u8 hdr[] = {
0, 0,
0, 0,
0x5, /* claim SPC-3 version compatibility */ 0x5, /* claim SPC-3 version compatibility */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment