Re: [patch] IPV4 spinlock_casting

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

 



* Sven-Thorsten Dietrich <[email protected]> wrote:

> Fix a compile error in net/ipv4/route.c when RT patch is applied:

> Index: linux-2.6.13-rc4-RT-V0.7.52-14/net/ipv4/route.c

are you sure you are seeing this with the -52-14 patch? If yes then 
please send me your .config.

the build error showed a more fundamental bug, which had to be solved 
differently. The problem was the code in route.c, the problem was this:

 # define rt_hash_lock_addr(slot) NULL
 # define rt_hash_lock_init()

where NULL has no type. The solution for the build problem would have 
been to cast the NULL to spinlock_t *, but we need this spinlock so the 
correct solution was to add a || defined(PREEMPT_RT) to the #if 
defined(CONFIG_SMP) line above. Solving the build problem alone only 
fixes the symptom, not the bug.

	Ingo
-
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