From patchwork Sat Aug 24 15:10:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 269641 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 32E9B2C0099 for ; Sun, 25 Aug 2013 01:11:42 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 31D404A0AF; Sat, 24 Aug 2013 17:11:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nmf3qbeZrEH9; Sat, 24 Aug 2013 17:11:40 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A52C24A09B; Sat, 24 Aug 2013 17:11:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BF64D4A09E for ; Sat, 24 Aug 2013 17:11:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UbQjqrbVaQTl for ; Sat, 24 Aug 2013 17:11:24 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-oa0-f43.google.com (mail-oa0-f43.google.com [209.85.219.43]) by theia.denx.de (Postfix) with ESMTPS id 899BE4A096 for ; Sat, 24 Aug 2013 17:11:18 +0200 (CEST) Received: by mail-oa0-f43.google.com with SMTP id i10so1993972oag.2 for ; Sat, 24 Aug 2013 08:11:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TEAXGA2dN2PCzwp5XEx8ctjzedbSayuLWNIkn9MVX1Q=; b=uc+lL8VkmdYxtB0bUw0j2Bt5rjP57Vt3B9K61b0PYn2yZ/B7qMqR10zP/nHksRsBNh fCB/vME1nebYyicGevBxj5LcrppABUQ5fo/9QW5m3ZC0bAW051HK87mfEvFH90ZHtc4v Esq92Z1r4fiO9pYzjlDInuVSeoJ26cTQsQp/C6qurQae8ck8VzuWuDglew98icOFhC7H dZVXpRMdKrg9NuqXp/H6xCNCQTd+ptGMkuvz1TRL3WxI1Xnj+ywYFJ64E4uwUSO9q8tG XO0oGaJOMkn8Y/2UABqdwe8elnm/tsdd21OC0cavR+FsgeNa7yKbjk2XIyZ4LqmQUm9A a3Dg== X-Received: by 10.60.58.71 with SMTP id o7mr27538oeq.51.1377357077485; Sat, 24 Aug 2013 08:11:17 -0700 (PDT) Received: from rob-laptop.grandenetworks.net (65-36-73-129.dyn.grandenetworks.net. [65.36.73.129]) by mx.google.com with ESMTPSA id g1sm5223049oeq.6.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 24 Aug 2013 08:11:17 -0700 (PDT) From: Rob Herring To: u-boot@lists.denx.de Date: Sat, 24 Aug 2013 10:10:48 -0500 Message-Id: <1377357054-27408-2-git-send-email-robherring2@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1377357054-27408-1-git-send-email-robherring2@gmail.com> References: <1377357054-27408-1-git-send-email-robherring2@gmail.com> Cc: Tom Rini , Rob Herring Subject: [U-Boot] [PATCH v2 2/8] ahci: fix unaligned access X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Rob Herring 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 --- v2: make hdr const drivers/block/ahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c index 02ba02f..f4d1d81 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 */