From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750777AbVHHJEU (ORCPT ); Mon, 8 Aug 2005 05:04:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750778AbVHHJEU (ORCPT ); Mon, 8 Aug 2005 05:04:20 -0400 Received: from mx2.elte.hu ([157.181.151.9]:41426 "EHLO mx2.elte.hu") by vger.kernel.org with ESMTP id S1750777AbVHHJEU (ORCPT ); Mon, 8 Aug 2005 05:04:20 -0400 Date: Mon, 8 Aug 2005 11:04:57 +0200 From: Ingo Molnar To: Sven-Thorsten Dietrich Cc: dwalker@mvista.com, LKML Subject: Re: [patch] IPV4 spinlock_casting Message-ID: <20050808090457.GA11771@elte.hu> References: <1123466661.20677.14.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1123466661.20677.14.camel@localhost.localdomain> User-Agent: Mutt/1.4.2.1i X-ELTE-SpamVersion: MailScanner 4.31.6-itk1 (ELTE 1.2) SpamAssassin 2.63 ClamAV 0.73 X-ELTE-VirusStatus: clean X-ELTE-SpamCheck: no X-ELTE-SpamCheck-Details: score=-4.9, required 5.9, autolearn=not spam, BAYES_00 -4.90 X-ELTE-SpamLevel: X-ELTE-SpamScore: -4 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org * Sven-Thorsten Dietrich 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