Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 25 Oct 2002 09:10:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 25 Oct 2002 09:10:49 -0400 Received: from noodles.codemonkey.org.uk ([213.152.47.19]:51348 "EHLO noodles.internal") by vger.kernel.org with ESMTP id ; Fri, 25 Oct 2002 09:10:48 -0400 Date: Fri, 25 Oct 2002 14:18:24 +0100 From: Dave Jones To: Jan Marek Cc: linux-kernel Subject: Re: [linux@hazard.jcu.cz: Re: [miniPATCH][RFC] Compilation fixes in the 2.5.44] Message-ID: <20021025131824.GA1766@suse.de> Mail-Followup-To: Dave Jones , Jan Marek , linux-kernel References: <20021025112923.GB1073@hazard.jcu.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021025112923.GB1073@hazard.jcu.cz> User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1086 Lines: 30 On Fri, Oct 25, 2002 at 01:29:23PM +0200, Jan Marek wrote: > > > > > > unsigned int status; > > > - long esp; > > > > > > irq_enter(); > > > > > > #ifdef CONFIG_DEBUG_STACKOVERFLOW > > > /* Debugging check for stack overflow: is there less than 1KB free? */ > > > + long esp; > > > > > > Most C compilers don't allow you to mix declarations and code. > > > This is allowed only in new C standards. But GCC 3 seems to cope, > > > so it's probably fine for new kernels. > > > > This fragment must be fixed, look at Documentation/Changes: > gcc-2.95.4-17 on my Debian works fine on that and without any > messages... You can try it, if you have other version of compiler... Try testing with CONFIG_DEBUG_STACKOVERFLOW=y Dave -- | Dave Jones. http://www.codemonkey.org.uk - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/