From patchwork Sun Sep 14 19:36:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 37392 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E0B3A206A5 for ; Sun, 14 Sep 2014 19:37:26 +0000 (UTC) Received: by mail-wg0-f69.google.com with SMTP id y10sf1600153wgg.4 for ; Sun, 14 Sep 2014 12:37:26 -0700 (PDT) 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: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=Xp4N1Lp550CPqmf1WNJ2bBLq6dSvSJfJQUiT9crdPdU=; b=aHOov9OHRK+HuSmw4pUlfIl5Woqj4GTdNd0YGcdd98x/JLljas3lhhg/lxSCXxplfD FmIW92W/rdiA9tebeoTNK8SmmnLZ/j0+BLmwYLYnw762lRTpTYtSngOL1U6waxjC1vV5 qwltnvYCHaw4iP61elL0gblLzM/CyJRZRnvNEi0neguynz6cgmsVr+JifSV5JCOT5Xr5 JF4sOgW73fYwPs71xkw3sJiEZqs/aGFiMA7Qxw1MlCu3zvtVmKIIDCeSgHo2dd11R8zT 8kn9x1LzyJ+BTo346sAzjJVqZrsVrNWrM/PXWAcxZ6VNLEdRufNDZwZ53TQbiQHAQl4V 6ETA== X-Gm-Message-State: ALoCoQnphiW8wqLvQ+978FBdwL/Ak1Y8przbmQj8e0pAma7xPMGi6ts59axPuYatzeJ+d3WU3Xzj X-Received: by 10.152.42.229 with SMTP id r5mr5870lal.8.1410723446109; Sun, 14 Sep 2014 12:37:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.195 with SMTP id q3ls310831lal.22.gmail; Sun, 14 Sep 2014 12:37:25 -0700 (PDT) X-Received: by 10.112.201.133 with SMTP id ka5mr22521278lbc.61.1410723445547; Sun, 14 Sep 2014 12:37:25 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by mx.google.com with ESMTPS id lk1si16212903lac.4.2014.09.14.12.37.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 14 Sep 2014 12:37:25 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by mail-lb0-f171.google.com with SMTP id 10so3396494lbg.16 for ; Sun, 14 Sep 2014 12:37:25 -0700 (PDT) X-Received: by 10.152.5.168 with SMTP id t8mr4451170lat.67.1410723445489; Sun, 14 Sep 2014 12:37:25 -0700 (PDT) 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.130.169 with SMTP id of9csp113172lbb; Sun, 14 Sep 2014 12:37:24 -0700 (PDT) X-Received: by 10.140.41.133 with SMTP id z5mr3627158qgz.99.1410723444384; Sun, 14 Sep 2014 12:37:24 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id a32si12803585qga.53.2014.09.14.12.37.23 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 14 Sep 2014 12:37:24 -0700 (PDT) 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]:55929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTFbv-00048y-GG for patch@linaro.org; Sun, 14 Sep 2014 15:37:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTFbD-0003UT-Fi for qemu-devel@nongnu.org; Sun, 14 Sep 2014 15:36:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTFb8-0002P7-Ht for qemu-devel@nongnu.org; Sun, 14 Sep 2014 15:36:39 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:47000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTFb8-0002P3-C7 for qemu-devel@nongnu.org; Sun, 14 Sep 2014 15:36:34 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1XTFb7-0004dm-Fq; Sun, 14 Sep 2014 20:36:33 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Sun, 14 Sep 2014 20:36:33 +0100 Message-Id: <1410723393-17812-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 81.2.115.146 Cc: Max Filippov , patches@linaro.org Subject: [Qemu-devel] [PATCH] 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: peter.maydell@linaro.org 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.171 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 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 --- This works, although it's a tad ugly. If anybody wants to suggest something better... 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,