From: Rob Herring Date: Sat, 24 Aug 2013 15:10:48 +0000 (-0500) Subject: ahci: fix unaligned access X-Git-Tag: v2013.10-rc3~21 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=48c3a87c0a7026866c014fcc1a55281585fa5a41;p=u-boot 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 Reviewed-by: Tom Rini --- 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 */