Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 13 Jan 2003 10:29:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 13 Jan 2003 10:29:08 -0500 Received: from chaos.physics.uiowa.edu ([128.255.34.189]:50831 "EHLO chaos.physics.uiowa.edu") by vger.kernel.org with ESMTP id ; Mon, 13 Jan 2003 10:29:07 -0500 Date: Mon, 13 Jan 2003 09:37:54 -0600 (CST) From: Kai Germaschewski X-X-Sender: kai@chaos.physics.uiowa.edu To: Daniel Jacobowitz cc: Rusty Russell , , , Subject: Re: [PATCH] Check compiler version, SMP and PREEMPT. In-Reply-To: <20030113151901.GA28149@nevyn.them.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 Jan 2003, Daniel Jacobowitz wrote: > On Mon, Jan 13, 2003 at 04:13:19PM +1100, Rusty Russell wrote: > > Linus, please apply if you agree. > > > > Tridge reported getting burned by gcc 3.2 compiled (Debian) XFree > > modules not working on his gcc 2.95-compiled kernel. Interestingly, > > (as Tridge points out) modversions probably would not have caught the > > change in spinlock size, since the ioctl takes a void*, not a > > structure pointer... > > > D: and compiler version (spinlocks change size on UP with gcc major, > > D: at least). > > Why does this happen? It doesn't look like it should, but I only > skimmed the headers checking... I suppose it's due to the #if (__GNUC__ > 2) [...] in include/linux/spinlock.h, i.e. it's not at all gcc's fault. --Kai - 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/