Skip to contentSkip to conversation

lib/ida: remove abandoned macros

PATCH Applied Alex Shi 2 participants 2 messages Jan 21, 2020 – Jan 31, 2020 Library code

lore
Share & tools
lore

Alex Shi

author
#0 lore raw

PATCH 1/1 lib/ida: remove abandoned macros

3 IDA_ started macros aren't used from commit f32f004cddf8 ("ida: Convert to XArray"). so better to remove them.

Cc Matthew Wilcox <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Richard Fontana <[email protected]>
Cc Armijn Hemel <[email protected]>
---
 lib/radix-tree.c | 8 --------
 1 file changed, 8 deletions(-)
lib/radix-tree.c +0 -8
index c8fa1d274530..2ee6ae3b0ade 100644
@@ -56,14 +56,6 @@
 #define IDR_PRELOAD_SIZE	(IDR_MAX_PATH * 2 - 1)
 
 /*
- * The IDA is even shorter since it uses a bitmap at the last level.
- */
-#define IDA_INDEX_BITS		(8 * sizeof(int) - 1 - ilog2(IDA_BITMAP_BITS))
-#define IDA_MAX_PATH		(DIV_ROUND_UP(IDA_INDEX_BITS, \
-						RADIX_TREE_MAP_SHIFT))
-#define IDA_PRELOAD_SIZE	(IDA_MAX_PATH * 2 - 1)
-
-/*
  * Per-cpu pool of preloaded nodes
  */
 struct radix_tree_preload {
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 2 lines · Alex Shi

3 IDA_ started macros aren't used from commit f32f004cddf8 ("ida: Convert to XArray"). so better to remove them.

Thanks, applied.