]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
rcu: Remove UINT_CMP_GE() and UINT_CMP_LT()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 3 May 2017 17:36:36 +0000 (10:36 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 9 Jun 2017 01:52:29 +0000 (18:52 -0700)
The UINT_CMP_GE() and UINT_CMP_LT() macros are not used, so this
commit removes them.

Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
include/linux/rcupdate.h

index 7557499d8e70cb9b6fe971a87886aee72d9e7a3d..fa3f921e5874f88b7a2b4119fee35927affbf68e 100644 (file)
@@ -46,8 +46,6 @@
 #include <linux/ktime.h>
 #include <linux/irqflags.h>
 
-#define UINT_CMP_GE(a, b)      (UINT_MAX / 2 >= (a) - (b))
-#define UINT_CMP_LT(a, b)      (UINT_MAX / 2 < (a) - (b))
 #define ULONG_CMP_GE(a, b)     (ULONG_MAX / 2 >= (a) - (b))
 #define ULONG_CMP_LT(a, b)     (ULONG_MAX / 2 < (a) - (b))
 #define ulong2long(a)          (*(long *)(&(a)))