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 <>
Reviewed-by: default avatarTom Rini <>
parent 2915a022
......@@ -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[] = {
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