netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: Samuel Ortiz <samuel.ortiz@solidboot.com>
Cc: davem@davemloft.net, sam@ravnborg.org, stable@kernel.org,
	eric.y.miao@gmail.com, irda-users@lists.sourceforge.net,
	netdev@vger.kernel.org
Subject: Re: [irda-users] [PATCH] [IrDA] Fix IrDA build failure
Date: Tue, 17 Jul 2007 07:08:12 +0200	[thread overview]
Message-ID: <20070717050812.GA3801@stusta.de> (raw)
In-Reply-To: <20070716130052.GC22757@mail.solidboot.com>

On Mon, Jul 16, 2007 at 04:00:52PM +0300, Samuel Ortiz wrote:
> On Mon, Jul 16, 2007 at 02:17:15PM +0300, Samuel Ortiz wrote:
> > Hi Dave,
> > 
> > When having built-in IrDA, we hit the following error:
> > 
> > `irda_sysctl_unregister' referenced in section `.init.text' of
> > net/built-in.o: defined in discarded section `.exit.text' of
> > net/built-in.o
> > `irda_proc_unregister' referenced in section `.init.text' of
> > net/built-in.o: defined in discarded section `.exit.text' of
> > net/built-in.o
> > `irsock_cleanup' referenced in section `.init.text' of net/built-in.o:
> > defined in discarded section `.exit.text' of net/built-in.o
> > `irttp_cleanup' referenced in section `.init.text' of net/built-in.o:
> > defined in discarded section `.exit.text' of net/built-in.o
> > `iriap_cleanup' referenced in section `.init.text' of net/built-in.o:
> > defined in discarded section `.exit.text' of net/built-in.o
> > `irda_device_cleanup' referenced in section `.init.text' of
> > net/built-in.o: defined in discarded section `.exit.text' of
> > net/built-in.o
> > `irlap_cleanup' referenced in section `.init.text' of net/built-in.o:
> > defined in discarded section `.exit.text' of net/built-in.o
> > `irlmp_cleanup' referenced in section `.init.text' of net/built-in.o:
> > defined in discarded section `.exit.text' of net/built-in.o
> > make[1]: *** [.tmp_vmlinux1] Error 1
> > make: *** [_all] Error 2
> > 
> > This is due to the irda_init fix recently added, where we call __exit
> > routines from an __init one. It is a build failure that I didn't catch
> > because it doesn't show up when building IrDA as a module. My apologies
> > for that.
> I forgot to mention that the build fails on ARM but not on x86. As Sam
> explained to me, x86 discards exit sections at runtime only, unlike ARM.
> I don't know about other platforms though.
> 
> So, to hit this build failure, you need a combination of !x86 and
> built-in IrDA.

On i386 these are runtime failures (although in unlikely error paths) 
which isn't better.

> Cheers,
> Samuel.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


  reply	other threads:[~2007-07-17  5:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-16 11:17 [PATCH] [IrDA] Fix IrDA build failure Samuel Ortiz
2007-07-16 11:56 ` Evgeniy Polyakov
2007-07-16 12:07   ` Adrian Bunk
2007-07-16 12:17     ` Evgeniy Polyakov
2007-07-16 13:05       ` Adrian Bunk
2007-07-16 15:16   ` Sam Ravnborg
2007-07-16 13:00 ` [irda-users] " Samuel Ortiz
2007-07-17  5:08   ` Adrian Bunk [this message]
     [not found] ` <20070716111715.GB22757-OPs8hQ7j6VREYlHNa9+yaNBPR1lH4CV8@public.gmane.org>
2007-07-18  9:17   ` David Miller

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=20070717050812.GA3801@stusta.de \
    --to=bunk@stusta.de \
    --cc=davem@davemloft.net \
    --cc=eric.y.miao@gmail.com \
    --cc=irda-users@lists.sourceforge.net \
    --cc=netdev@vger.kernel.org \
    --cc=sam@ravnborg.org \
    --cc=samuel.ortiz@solidboot.com \
    --cc=stable@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;
as well as URLs for NNTP newsgroup(s).