OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] [IPV4]: Remove warning in node_set_parent.
[PATCH] [IPV4]: Remove warning in node_set_parent. [message #27143] Mon, 11 February 2008 08:47 Go to previous message
den is currently offline  den
Messages: 494
Registered: December 2005
Senior Member
net/ipv4/fib_trie.c: In function 'node_set_parent':
net/ipv4/fib_trie.c:184: warning: assignment makes integer from pointer
without a cast

Signed-off-by: Denis V. Lunev <den@openvz.org>
---
 net/ipv4/fib_trie.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index f5fba3f..1753cd4 100644
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
@@ -177,10 +177,11 @@ static inline struct tnode *node_parent_rcu(struct node *node)
 	return rcu_dereference(ret);
 }
 
-static inline void node_set_parent(struct node *node, struct tnode *ptr)
+static inline void node_set_parent(struct node *node, struct tnode *__ptr)
 {
-	rcu_assign_pointer(node->parent,
-			   (unsigned long)ptr | NODE_TYPE(node));
+	struct node *ptr;
+	ptr = (struct node *)((unsigned long)__ptr | NODE_TYPE(node));
+	rcu_assign_pointer(node->parent, ptr);
 }
 
 static inline struct node *tnode_get_child(struct tnode *tn, unsigned int i)
-- 
1.5.3.rc5
 
Read Message
Read Message
Read Message
Previous Topic: [PATCH 1/1] device control: fix trivial typo
Next Topic: Re: [vzctl] exec early script at start
Goto Forum:
  


Current Time: Mon Aug 25 15:26:54 GMT 2025

Total time taken to generate the page: 0.06498 seconds