mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Dave Jones <davej@redhat.com>, Andrew Morton <akpm@osdl.org>,
	linux-kernel@vger.kernel.org
Subject: Re: smp_locks reference_discarded errors
Date: Sun, 26 Mar 2006 18:10:55 +0200	[thread overview]
Message-ID: <20060326161055.GA4584@mars.ravnborg.org> (raw)
In-Reply-To: <20060326154042.GB13684@redhat.com>

On Sun, Mar 26, 2006 at 10:40:42AM -0500, Dave Jones wrote:
> On Sat, Mar 25, 2006 at 11:50:35PM -0800, Andrew Morton wrote:
>  > Dave Jones <davej@redhat.com> wrote:
>  > >
>  > > since the addition of smp alternatives, the following is occuring..
>  > > 
>  > > Error: ./drivers/md/md.o .smp_locks refers to 0000008c R_386_32          .exit.text
>  > > Error: ./drivers/usb/storage/libusual.o .smp_locks refers to 00000008 R_386_32          .exit.text
>  > > Error: ./net/802/psnap.o .smp_locks refers to 00000000 R_386_32          .exit.text
>  > > Error: ./drivers/pci/hotplug/ibmphp_hpc.o .smp_locks refers to 00000008 R_386_32          .exit.text
>  > > Error: ./drivers/pci/hotplug/ibmphp_hpc.o .smp_locks refers to 0000000c R_386_32          .exit.text
>  > > 
>  > > example .config at http://people.redhat.com/davej/kernel-2.6.16-i686-smp.config
>  > > 
>  > 
>  > I guess an atomic operation in __exit code will cause that.  down() and
>  > atomic_dec_and_test() in two cases.
>  > 
>  > I suspect most of these callsites are just wrongly coded - it's pretty
>  > unusual for __exit code to really need to lock anything - what is there to
>  > be racing against?
>  > 
>  > This is emitted by reference_discarded.pl?
> 
> came out of a 'make buildcheck' a day or two ago (the following day,
> Sam nuked reference_discarded.pl in favour of it being done
> magically somewhere else (I've not looked into how its done now).
The check is part of modpost now. modpost is only used when building
modules but that holds true for most builds anyway therefore I did not
move it to a separate executable.

Also the output from modpost provides a bit more info.
So output from fresh -linus kernel would make it easier to locate the
guilty stuff.

	Sam

  reply	other threads:[~2006-03-26 16:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-25  3:40 Dave Jones
2006-03-26  7:50 ` Andrew Morton
2006-03-26 15:40   ` Dave Jones
2006-03-26 16:10     ` Sam Ravnborg [this message]
2006-03-28  0:04       ` Dave Jones
2006-03-28  0:09         ` Randy.Dunlap
2006-03-31 19:08       ` Adrian Bunk
2006-03-31 19:33         ` Sam Ravnborg
2006-03-31 23:56           ` Adrian Bunk

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=20060326161055.GA4584@mars.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=akpm@osdl.org \
    --cc=davej@redhat.com \
    --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

all inboxes | Powered by JetHome®