From patchwork Tue Jun 24 16:09:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 32439 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f200.google.com (mail-ob0-f200.google.com [209.85.214.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3C5CB201EF for ; Tue, 24 Jun 2014 16:20:28 +0000 (UTC) Received: by mail-ob0-f200.google.com with SMTP id wm4sf2645287obc.3 for ; Tue, 24 Jun 2014 09:20:27 -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: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=7Y2pFPiUR926ASNAw33KVuVdXR25z7667UG19HOCcDI=; b=bcUxc3XHTpOYizqjmb2EgeitCpnpwqQsnJujtmloikAqN53aWR9nqqtTiurGJSxt21 lqFjBQjkdb4xtqlanWjxiW/5shZLWGYzVS/rJMVuVSK1rYRy0aA50XMoxj7sLGmOz86u ihjHfvsdif6WMjZnlYfNMFs09ZL2lwZLTvuvOo4DKE+xRdSPN3iVjAxV4YSZ3WpDU1+3 4117r2By7stXoQ6C7+97u3/nsckKMyFYHZ8bbXcC7Jo8pS9IF1TW9eXzgw72im9ePLz1 jNJT4qLfBAZyAjy0AicjQ+7V8pFL/EI9UjHlFR4M6uBSuEpZGZdqTYc9Fvmg6n7itF4Q ywPw== X-Gm-Message-State: ALoCoQkWiBX2+/cGVyhsnCw6Q9xYx3u5HPWP0zNp3wsDgnnvcK58JnZTMZhS65zfGW/gyAPbAs41 X-Received: by 10.182.91.79 with SMTP id cc15mr960022obb.13.1403626827869; Tue, 24 Jun 2014 09:20:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.32.203 with SMTP id h69ls2497739qgh.56.gmail; Tue, 24 Jun 2014 09:20:27 -0700 (PDT) X-Received: by 10.52.117.41 with SMTP id kb9mr97286vdb.97.1403626827781; Tue, 24 Jun 2014 09:20:27 -0700 (PDT) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id wy4si510783vdc.8.2014.06.24.09.20.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 24 Jun 2014 09:20:27 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.172 as permitted sender) client-ip=209.85.128.172; Received: by mail-ve0-f172.google.com with SMTP id jz11so594544veb.31 for ; Tue, 24 Jun 2014 09:20:27 -0700 (PDT) X-Received: by 10.58.186.207 with SMTP id fm15mr1726704vec.4.1403626827702; Tue, 24 Jun 2014 09:20:27 -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.221.37.5 with SMTP id tc5csp223831vcb; Tue, 24 Jun 2014 09:20:27 -0700 (PDT) X-Received: by 10.224.60.137 with SMTP id p9mr3448020qah.70.1403626827059; Tue, 24 Jun 2014 09:20:27 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id b4si964640qaw.71.2014.06.24.09.20.26 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 24 Jun 2014 09:20:27 -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]:60851 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzTSM-0000Ge-JR for patch@linaro.org; Tue, 24 Jun 2014 12:20:26 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzTRO-0007Zc-BL for qemu-devel@nongnu.org; Tue, 24 Jun 2014 12:19:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzTRG-0001Op-Uh for qemu-devel@nongnu.org; Tue, 24 Jun 2014 12:19:26 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:40227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzTRG-0001Nw-IR; Tue, 24 Jun 2014 12:19:18 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id EC9CB4407E; Tue, 24 Jun 2014 20:19:16 +0400 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.corpit.ru (Postfix) with SMTP id D37106B4; Tue, 24 Jun 2014 20:09:22 +0400 (MSK) Received: (nullmailer pid 15625 invoked by uid 1000); Tue, 24 Jun 2014 16:09:21 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Tue, 24 Jun 2014 20:09:14 +0400 Message-Id: <1403626160-15546-9-git-send-email-mjt@msgid.tls.msk.ru> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1403626160-15546-1-git-send-email-mjt@msgid.tls.msk.ru> References: <1403626160-15546-1-git-send-email-mjt@msgid.tls.msk.ru> 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 08/14] tcg: mark tcg_out* and tcg_patch* with attribute '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.128.172 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 tcg_out* and tcg_patch* functions are utility routines that may or may not be used by a particular backend; mark them with the 'unused' attribute to suppress spurious warnings if they aren't used. Signed-off-by: Peter Maydell Signed-off-by: Michael Tokarev --- tcg/tcg.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index 815eec1..c068990 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -124,19 +124,20 @@ static TCGRegSet tcg_target_available_regs[2]; static TCGRegSet tcg_target_call_clobber_regs; #if TCG_TARGET_INSN_UNIT_SIZE == 1 -static inline void tcg_out8(TCGContext *s, uint8_t v) +static __attribute__((unused)) inline void tcg_out8(TCGContext *s, uint8_t v) { *s->code_ptr++ = v; } -static inline void tcg_patch8(tcg_insn_unit *p, uint8_t v) +static __attribute__((unused)) inline void tcg_patch8(tcg_insn_unit *p, + uint8_t v) { *p = v; } #endif #if TCG_TARGET_INSN_UNIT_SIZE <= 2 -static inline void tcg_out16(TCGContext *s, uint16_t v) +static __attribute__((unused)) inline void tcg_out16(TCGContext *s, uint16_t v) { if (TCG_TARGET_INSN_UNIT_SIZE == 2) { *s->code_ptr++ = v; @@ -147,7 +148,8 @@ static inline void tcg_out16(TCGContext *s, uint16_t v) } } -static inline void tcg_patch16(tcg_insn_unit *p, uint16_t v) +static __attribute__((unused)) inline void tcg_patch16(tcg_insn_unit *p, + uint16_t v) { if (TCG_TARGET_INSN_UNIT_SIZE == 2) { *p = v; @@ -158,7 +160,7 @@ static inline void tcg_patch16(tcg_insn_unit *p, uint16_t v) #endif #if TCG_TARGET_INSN_UNIT_SIZE <= 4 -static inline void tcg_out32(TCGContext *s, uint32_t v) +static __attribute__((unused)) inline void tcg_out32(TCGContext *s, uint32_t v) { if (TCG_TARGET_INSN_UNIT_SIZE == 4) { *s->code_ptr++ = v; @@ -169,7 +171,8 @@ static inline void tcg_out32(TCGContext *s, uint32_t v) } } -static inline void tcg_patch32(tcg_insn_unit *p, uint32_t v) +static __attribute__((unused)) inline void tcg_patch32(tcg_insn_unit *p, + uint32_t v) { if (TCG_TARGET_INSN_UNIT_SIZE == 4) { *p = v; @@ -180,7 +183,7 @@ static inline void tcg_patch32(tcg_insn_unit *p, uint32_t v) #endif #if TCG_TARGET_INSN_UNIT_SIZE <= 8 -static inline void tcg_out64(TCGContext *s, uint64_t v) +static __attribute__((unused)) inline void tcg_out64(TCGContext *s, uint64_t v) { if (TCG_TARGET_INSN_UNIT_SIZE == 8) { *s->code_ptr++ = v; @@ -191,7 +194,8 @@ static inline void tcg_out64(TCGContext *s, uint64_t v) } } -static inline void tcg_patch64(tcg_insn_unit *p, uint64_t v) +static __attribute__((unused)) inline void tcg_patch64(tcg_insn_unit *p, + uint64_t v) { if (TCG_TARGET_INSN_UNIT_SIZE == 8) { *p = v;