From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: [PATCH 08/34] xen/common: rcupdate: Remove unused function rcu_batch_after Date: Tue, 25 Mar 2014 16:55:15 +0000 Message-ID: <1395766541-23979-9-git-send-email-julien.grall@linaro.org> References: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: 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: by mail-ee0-f44.google.com with SMTP id e49so689386eek.3 for ; Tue, 25 Mar 2014 09:56:06 -0700 (PDT) In-Reply-To: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: stefano.stabellini@citrix.com, Keir Fraser , Julien Grall , tim@xen.org, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org 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) { -- 1.7.10.4