rcu: Remove unused macros from rcupdate.h
authorPedro Falcato <pedro.falcato@gmail.com>
Fri, 20 Oct 2023 17:30:15 +0000 (18:30 +0100)
committerNeeraj Upadhyay (AMD) <neeraj.iitr10@gmail.com>
Mon, 11 Dec 2023 21:02:03 +0000 (02:32 +0530)
ulong2long, USHORT_CMP_GE and USHORT_CMP_LT are redundant and have been
unused for quite a few releases.

Signed-off-by: Pedro Falcato <pedro.falcato@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Neeraj Upadhyay (AMD) <neeraj.iitr10@gmail.com>
include/linux/rcupdate.h

index f7206b2623c98c16ed02d73ac77774f43d5cbe37..aa87c82236dd992302f619bee7362ec918358566 100644 (file)
@@ -34,9 +34,6 @@
 
 #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)))
-#define USHORT_CMP_GE(a, b)    (USHRT_MAX / 2 >= (unsigned short)((a) - (b)))
-#define USHORT_CMP_LT(a, b)    (USHRT_MAX / 2 < (unsigned short)((a) - (b)))
 
 /* Exported common interfaces */
 void call_rcu(struct rcu_head *head, rcu_callback_t func);