From patchwork Tue Mar 25 16:55:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 27048 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f72.google.com (mail-pb0-f72.google.com [209.85.160.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 603A220539 for ; Tue, 25 Mar 2014 16:57:19 +0000 (UTC) Received: by mail-pb0-f72.google.com with SMTP id jt11sf1795048pbb.11 for ; Tue, 25 Mar 2014 09:57:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=KZWjtYPwUsCfOaMLuw7H9B7Jcj2hDtvN5QHnvtiixH8=; b=HimMI2DZ1PwlhyAdjmuqlAUzqiVkH7kL0x/11VnhJHqo9jbFgB67JZlz849DcilY+8 14O8dkF9jLM4ne9BqQ63RBrBL+L9vr82iDNCEXazhYWlMGCB1wZXEfRNQCZw96zBIja/ uLOCTcyv+3yoA3S1ji98WJEZH8IVUU/Du7m+TB8zq4fDJ9lkKsHX5WVsLc2zMhHiIV5e pMBSWXRSNjWKQNHZYS9782gSy+LnQh0+oLsTEG0nOInq2N1MhMqda/YAP2qeB5APrmiq ZU3D7xJZMG3oQsr46fsSxnTgJyr9EjXNjjeN+R4C6fVrJcUhF1rsdmWRuG2RCsAaqtmT OxrQ== X-Gm-Message-State: ALoCoQngLQeb6xahLwnFtWgB4KCpVyfL2OOv0jdP5PmqvrMlqStqxCfnd94zt8gzQJRdLw4uga2Y X-Received: by 10.66.183.239 with SMTP id ep15mr29182872pac.7.1395766638406; Tue, 25 Mar 2014 09:57:18 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.96.42 with SMTP id j39ls296586qge.93.gmail; Tue, 25 Mar 2014 09:57:18 -0700 (PDT) X-Received: by 10.52.104.33 with SMTP id gb1mr769458vdb.45.1395766638190; Tue, 25 Mar 2014 09:57:18 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id fn10si3948181vdc.207.2014.03.25.09.57.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:57:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id il7so906330vcb.4 for ; Tue, 25 Mar 2014 09:57:18 -0700 (PDT) X-Received: by 10.58.134.101 with SMTP id pj5mr709681veb.38.1395766638090; Tue, 25 Mar 2014 09:57:18 -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.220.78.9 with SMTP id i9csp320299vck; Tue, 25 Mar 2014 09:57:17 -0700 (PDT) X-Received: by 10.42.157.74 with SMTP id c10mr1938984icx.74.1395766637130; Tue, 25 Mar 2014 09:57:17 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id l9si28300796igx.49.2014.03.25.09.57.09 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:57:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUe4-0008N1-07; Tue, 25 Mar 2014 16:56:12 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUe1-0008KU-QS for xen-devel@lists.xenproject.org; Tue, 25 Mar 2014 16:56:10 +0000 Received: from [85.158.143.35:63707] by server-3.bemta-4.messagelabs.com id FC/D0-13602-925B1335; Tue, 25 Mar 2014 16:56:09 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-11.tower-21.messagelabs.com!1395766566!4617699!1 X-Originating-IP: [74.125.83.44] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 3763 invoked from network); 25 Mar 2014 16:56:06 -0000 Received: from mail-ee0-f44.google.com (HELO mail-ee0-f44.google.com) (74.125.83.44) by server-11.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 25 Mar 2014 16:56:06 -0000 Received: by mail-ee0-f44.google.com with SMTP id e49so689386eek.3 for ; Tue, 25 Mar 2014 09:56:06 -0700 (PDT) X-Received: by 10.14.9.195 with SMTP id 43mr2566967eet.89.1395766566432; Tue, 25 Mar 2014 09:56:06 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id h47sm33377501eey.13.2014.03.25.09.56.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Mar 2014 09:56:05 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 25 Mar 2014 16:55:15 +0000 Message-Id: <1395766541-23979-9-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> References: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> Cc: stefano.stabellini@citrix.com, Keir Fraser , Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH 08/34] xen/common: rcupdate: Remove unused function rcu_batch_after X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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 List-Archive: Clang 3.5 will fail to compile xen/common/rcupdate.c because rcu_batch_after is statically defined but not used: rcupdate.c:146:19: error: unused function 'rcu_batch_after' [-Werror,-Wunused-function] static inline int rcu_batch_after(long a, long b) Signed-off-by: Julien Grall Cc: Keir Fraser --- xen/common/rcupdate.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/xen/common/rcupdate.c b/xen/common/rcupdate.c index e9979cd..f534c1e 100644 --- a/xen/common/rcupdate.c +++ b/xen/common/rcupdate.c @@ -142,12 +142,6 @@ static inline int rcu_batch_before(long a, long b) return (a - b) < 0; } -/* Is batch a after batch b ? */ -static inline int rcu_batch_after(long a, long b) -{ - return (a - b) > 0; -} - static void force_quiescent_state(struct rcu_data *rdp, struct rcu_ctrlblk *rcp) {