mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Trent Piepho <xyzzy@speakeasy.org>
Cc: Linux Kernel Mailing list <linux-kernel@vger.kernel.org>,
	Mauro Carvalho Chehab <mchehab@infradead.org>,
	kbuild-devel@lists.sourceforge.net
Subject: Re: [patch] modpost problem when symbols move from one module to another
Date: Thu, 18 Oct 2007 13:46:26 +0200	[thread overview]
Message-ID: <20071018114626.GA19539@uranus.ravnborg.org> (raw)
In-Reply-To: <Pine.LNX.4.58.0710111631350.13556@shell4.speakeasy.net>

On Thu, Oct 11, 2007 at 04:40:10PM -0700, Trent Piepho wrote:
> The v4l-dvb tree recently renamed a module and this caused some problems
> with modpost creating incorrect module dependencies.  This patch fixes that
> problem.  It should be explained thoroughly in the patch description.
> modpost: Fix problem with out of date Module.symvers
> 
> When part of build an external module tree, modpost first reads in the
> kernel's and then the external tree's Module.symvers files.  From these files
> it establishes a symbol => module mapping.  When it later reads in each module
> built and processes the symbols it finds, it discovers the symbol=>module
> mapping from Module.symvers and leaves it as it is.
> 
> The problem comes with a module has been re-named or a symbol has moved from
> one module to another, since the Module.symvers file was generated.  modpost
> does not update the symbol=>module mapping when it finds the new location of
> the symbol when scanning the newly built modules.  This results in the module
> containing incorrect dependency information and the new Module.symvers file
> written by modpost will also contain the incorrect mappings, perpetuating the
> problem to the next build, and so on.
> 
> When building the out of kernel development tree for kernel subsystem, like
> v4l-dvb or ALSA, deleting the external Module.symvers file before building
> (which the kernel build system doesn't do and shouldn't be necessary anyway),
> won't fix the problem.  modpost still reads the kernel's Module.symvers, and
> since we a building a kernel subsystem, it will define the same symbols as the
> external modules.
> 
> Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>

Thanks - applied,

	Sam

      reply	other threads:[~2007-10-18 11:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-11 23:40 Trent Piepho
2007-10-18 11:46 ` Sam Ravnborg [this message]

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=20071018114626.GA19539@uranus.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=kbuild-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mchehab@infradead.org \
    --cc=xyzzy@speakeasy.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

all inboxes | Powered by JetHome®