Re: [patch] IPV4 spinlock_casting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux