From 76e95642e23daa24ce467337b2af1f4f68cadae0 Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Fri, 3 Jul 2009 08:29:40 -0500 Subject: [PATCH] net: trivial cast fix in ipv4/route.c commit 39bf3f0996d3be9919739eb98ab88b4e5cd42615 in tip. To allow macros pick the right implementation cast to (spinlock_t *). Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner Signed-off-by: Paul Gortmaker --- net/ipv4/route.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/ipv4/route.c b/net/ipv4/route.c index cb562fd..71d4e5b 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -242,7 +242,7 @@ static __init void rt_hash_lock_init(void) spin_lock_init(&rt_hash_locks[i]); } #else -# define rt_hash_lock_addr(slot) NULL +# define rt_hash_lock_addr(slot) ((spinlock_t *)NULL) static inline void rt_hash_lock_init(void) { -- 1.7.0.4