diff mbox

[Xen-devel,08/34] xen/common: rcupdate: Remove unused function rcu_batch_after

Message ID 1395766541-23979-9-git-send-email-julien.grall@linaro.org
State Deferred, archived
Headers show

Commit Message

Julien Grall March 25, 2014, 4:55 p.m. UTC
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 <julien.grall@linaro.org>
Cc: Keir Fraser <keir@xen.org>
---
 xen/common/rcupdate.c |    6 ------
 1 file changed, 6 deletions(-)
diff mbox

Patch

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)
 {