From patchwork Sun Nov 2 11:57:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 39990 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 838192405B for ; Sun, 2 Nov 2014 12:00:09 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id ge10sf5400694lab.1 for ; Sun, 02 Nov 2014 04:00:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:in-reply-to:references:cc:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=cKpaIS3D256ZrDRU+aNnNoMKzPXGxUJG2+Lldix+siI=; b=MD9J8hdTkkb7JoI0aGC8LQCD+eoGvYLICjIHAY4XV7PiSW0Uq6UHDVQraycemr00Bx nQVgZZ1px1Ac8Mo/2b21RhV5EwHn8vjyqld+lWtLfyJbCszBziHI1Ho6fDUPFW8edeQP muKSQr1mFbYFFiaPRlU0LInQ0l8i+xyi0lf09m1g1aBrtbF2cFrfZt0MXIOgTdXDoWFW tfDzhNSJeavjODLzQOnobSxl6GNUmJM9BwFyvHnf0iq7r1YL0AKSNGG5EZaPo1/kxRcE 2ehfGWmA+4w/QweL/c3Iso7mV8NNKivhnB97lERmj9lYP9qWZrSaIMNdzxXS6SoFcCcM bcjg== X-Gm-Message-State: ALoCoQkmKEQFrCaisKdhnEUSM17sPg44v53HLvH24+LdSz8f14G1vPw5nl66SopNhVQOat2seDT/ X-Received: by 10.194.100.98 with SMTP id ex2mr217480wjb.6.1414929608374; Sun, 02 Nov 2014 04:00:08 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.3.170 with SMTP id d10ls598382lad.75.gmail; Sun, 02 Nov 2014 04:00:08 -0800 (PST) X-Received: by 10.152.9.129 with SMTP id z1mr20998219laa.14.1414929608218; Sun, 02 Nov 2014 04:00:08 -0800 (PST) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id b8si27198413lbc.7.2014.11.02.04.00.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Nov 2014 04:00:08 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by mail-lb0-f181.google.com with SMTP id l4so1334330lbv.40 for ; Sun, 02 Nov 2014 04:00:07 -0800 (PST) X-Received: by 10.112.218.101 with SMTP id pf5mr5697948lbc.46.1414929607717; Sun, 02 Nov 2014 04:00:07 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp117563lbz; Sun, 2 Nov 2014 04:00:06 -0800 (PST) X-Received: by 10.224.2.135 with SMTP id 7mr56100328qaj.64.1414929606009; Sun, 02 Nov 2014 04:00:06 -0800 (PST) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id d8si25409009qag.68.2014.11.02.04.00.05 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 02 Nov 2014 04:00:06 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:56470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XktpF-0006lz-BI for patch@linaro.org; Sun, 02 Nov 2014 07:00:05 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xkto7-0005Vn-8g for qemu-devel@nongnu.org; Sun, 02 Nov 2014 06:58:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xkto1-0002Rx-Me for qemu-devel@nongnu.org; Sun, 02 Nov 2014 06:58:55 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:39467) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xkto1-0002Rk-Ez; Sun, 02 Nov 2014 06:58:49 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 587B8402BE; Sun, 2 Nov 2014 14:58:48 +0300 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.corpit.ru (Postfix) with SMTP id 2D8DE705; Sun, 2 Nov 2014 14:58:48 +0300 (MSK) Received: (nullmailer pid 14958 invoked by uid 1000); Sun, 02 Nov 2014 11:58:47 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Sun, 2 Nov 2014 14:57:16 +0300 Message-Id: <11693a6cf0c3fac2e0ad64f06978095f85f0ec8a.1414929284.git.mjt@msgid.tls.msk.ru> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 86.62.121.231 Cc: qemu-trivial@nongnu.org, Peter Maydell , Michael Tokarev Subject: [Qemu-devel] [PULL 04/23] target-xtensa: mark XtensaConfig structs as unused X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mjt@tls.msk.ru X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Peter Maydell The XtensaConfig structs will be defined but not used if they are for the opposite endianness from that of the binary being built; keep the compiler from complaining about this by marking them with the 'unused' attribute. Signed-off-by: Peter Maydell Acked-by: Max Filippov Signed-off-by: Michael Tokarev --- target-xtensa/core-dc232b.c | 2 +- target-xtensa/core-dc233c.c | 2 +- target-xtensa/core-fsf.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-xtensa/core-dc232b.c b/target-xtensa/core-dc232b.c index c51e11e..a3b914b 100644 --- a/target-xtensa/core-dc232b.c +++ b/target-xtensa/core-dc232b.c @@ -33,7 +33,7 @@ #include "core-dc232b/core-isa.h" #include "overlay_tool.h" -static const XtensaConfig dc232b = { +static const XtensaConfig dc232b __attribute__((unused)) = { .name = "dc232b", .gdb_regmap = { .num_regs = 120, diff --git a/target-xtensa/core-dc233c.c b/target-xtensa/core-dc233c.c index 42dd64f..ac745d1 100644 --- a/target-xtensa/core-dc233c.c +++ b/target-xtensa/core-dc233c.c @@ -34,7 +34,7 @@ #include "core-dc233c/core-isa.h" #include "overlay_tool.h" -static const XtensaConfig dc233c = { +static const XtensaConfig dc233c __attribute__((unused)) = { .name = "dc233c", .gdb_regmap = { .num_regs = 121, diff --git a/target-xtensa/core-fsf.c b/target-xtensa/core-fsf.c index 6859bee..cfcc840 100644 --- a/target-xtensa/core-fsf.c +++ b/target-xtensa/core-fsf.c @@ -33,7 +33,7 @@ #include "core-fsf/core-isa.h" #include "overlay_tool.h" -static const XtensaConfig fsf = { +static const XtensaConfig fsf __attribute__((unused)) = { .name = "fsf", /* GDB for this core is not supported currently */ .clock_freq_khz = 10000,