[PATCH][net-next] net: remove unused macro from fib_trie.c

Subsystems: networking [general], networking [ipv4/ipv6], the rest

STALE2393d

2 messages, 2 authors, 2020-02-20 · open the first message on its own page

[PATCH][net-next] net: remove unused macro from fib_trie.c

From: Li RongQing <hidden>
Date: 2020-02-20 06:50:35

TNODE_KMALLOC_MAX and VERSION are not used, so remove them

Signed-off-by: Li RongQing <redacted>
---
 net/ipv4/fib_trie.c | 5 -----
 1 file changed, 5 deletions(-)
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index ff0c24371e33..f4c2ac445b3f 100644
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
@@ -35,9 +35,6 @@
  *		Paul E. McKenney <paulmck@us.ibm.com>
  *		Patrick McHardy <kaber@trash.net>
  */
-
-#define VERSION "0.409"
-
 #include <linux/cache.h>
 #include <linux/uaccess.h>
 #include <linux/bitops.h>
@@ -304,8 +301,6 @@ static inline void alias_free_mem_rcu(struct fib_alias *fa)
 	call_rcu(&fa->rcu, __alias_free_mem);
 }
 
-#define TNODE_KMALLOC_MAX \
-	ilog2((PAGE_SIZE - TNODE_SIZE(0)) / sizeof(struct key_vector *))
 #define TNODE_VMALLOC_MAX \
 	ilog2((SIZE_MAX - TNODE_SIZE(0)) / sizeof(struct key_vector *))
 
-- 
2.16.2

Re: [PATCH][net-next] net: remove unused macro from fib_trie.c

From: David Miller <davem@davemloft.net>
Date: 2020-02-20 18:02:53

From: Li RongQing <redacted>
Date: Thu, 20 Feb 2020 14:50:19 +0800
TNODE_KMALLOC_MAX and VERSION are not used, so remove them

Signed-off-by: Li RongQing <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help