| From 0c1ccf689fbd1cb95a858f47d5d18a3fc6d52111 Mon Sep 17 00:00:00 2001 |
| From: Ingo Molnar <mingo@elte.hu> |
| 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 <mingo@elte.hu> |
| Signed-off-by: Thomas Gleixner <tglx@linutronix.de> |
| |
| diff --git a/net/ipv4/route.c b/net/ipv4/route.c |
| index d62b05d..ac5dc6a 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.1.1 |
| |