Re: [patch] IPV4 spinlock_casting

From: Sven-Thorsten Dietrich
Date: Mon Aug 08 2005 - 14:55:19 EST


On Mon, 2005-08-08 at 11:06 +0200, Ingo Molnar wrote:
>
> it just occured to me that !PREEMPT_RT builds would be affected by the
> #else branch, so i committed the build fix below into -52-15.
>
> Ingo
>

That fixes it. Thanks

Sven

> Index: linux/net/ipv4/route.c
> ===================================================================
> --- linux.orig/net/ipv4/route.c
> +++ linux/net/ipv4/route.c
> @@ -231,7 +231,7 @@ static spinlock_t *rt_hash_locks;
> spin_lock_init(&rt_hash_locks[i]); \
> }
> #else
> -# define rt_hash_lock_addr(slot) NULL
> +# define rt_hash_lock_addr(slot) ((spinlock_t *)NULL)
> # define rt_hash_lock_init()
> #endif
>
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/