public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@muc.de>
To: Emmanuel Michon <emmanuel_michon@realmagic.fr>
Cc: linux-kernel@vger.kernel.org
Subject: Re: binary compatibity (mixing different gcc versions) in modules
Date: 18 Jun 2002 02:24:27 +0200	[thread overview]
Message-ID: <m3sn3ljux0.fsf@averell.firstfloor.org> (raw)
In-Reply-To: Emmanuel Michon's message of "Mon, 17 Jun 2002 14:40:07 +0200"

Emmanuel Michon <emmanuel_michon@realmagic.fr> writes:

> Hi,
> 
> looking at nvidia proprietary driver, the makefile warns
> the user against insmod'ing a module compiled with a gcc
> version different from the one that was used to compile
> the kernel.
> 
> This sounds strange to me, since I never encountered this
> problem.

Some earlier obsolete gcc versions had problems with empty types. This lead
to an #if based on the compiler version that added a dummy field
to spinlocks even for UP kernels. This made structure offsets of
structures with spinlocks change based on gcc version.

Should be long gone with recent compilers.

Still there are enough other variables to structure offsets depending 
on the configuration.

-Andi

  parent reply	other threads:[~2002-06-18  0:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-17 12:36 binary compatibity (mixing different gcc versions) in modules Emmanuel Michon
2002-06-17 13:11 ` Richard B. Johnson
2002-06-17 21:25   ` J Sloan
2002-06-18  0:24 ` Andi Kleen [this message]
2002-06-18 16:11 ` andrew may

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3sn3ljux0.fsf@averell.firstfloor.org \
    --to=ak@muc.de \
    --cc=emmanuel_michon@realmagic.fr \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox