[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20070718.021719.10298885.davem@davemloft.net>
Date: Wed, 18 Jul 2007 02:17:19 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: samuel.ortiz@...idboot.com
Cc: eric.y.miao@...il.com, sam@...nborg.org, netdev@...r.kernel.org,
irda-users@...ts.sourceforge.net, stable@...nel.org
Subject: Re: [PATCH] [IrDA] Fix IrDA build failure
From: Samuel Ortiz <samuel.ortiz@...idboot.com>
Date: Mon, 16 Jul 2007 14:17:15 +0300
> 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.
> The following patch fixes that failure and is against your net-2.6
> tree. I hope it can make it to the merge window, and stable@...nel.org
> is CCed on this mail.
>
> Signed-off-by: Samuel Ortiz <samuel@...tiz.org>
I've applied this.
I realize that alternative suggestions have been made on
how to fix this, and when consensus on that is reached someone
can send me a follow-on patch.
Thanks!
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists