Skip to content

Commit 23d90b2

Browse files
heatdneeraju
authored andcommitted
rcu: Remove unused macros from rcupdate.h
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>
1 parent 4e58aae commit 23d90b2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

include/linux/rcupdate.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434

3535
#define ULONG_CMP_GE(a, b) (ULONG_MAX / 2 >= (a) - (b))
3636
#define ULONG_CMP_LT(a, b) (ULONG_MAX / 2 < (a) - (b))
37-
#define ulong2long(a) (*(long *)(&(a)))
38-
#define USHORT_CMP_GE(a, b) (USHRT_MAX / 2 >= (unsigned short)((a) - (b)))
39-
#define USHORT_CMP_LT(a, b) (USHRT_MAX / 2 < (unsigned short)((a) - (b)))
4037

4138
/* Exported common interfaces */
4239
void call_rcu(struct rcu_head *head, rcu_callback_t func);

0 commit comments

Comments
 (0)