From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Gustavo F. Padovan" Subject: Re: [PATCH -next] bluetooth: fix build break Date: Tue, 22 Feb 2011 09:14:22 -0300 Message-ID: <20110222121422.GA2249@joana> References: <1298358789-13202-1-git-send-email-gadiyar@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-yx0-f174.google.com ([209.85.213.174]:46840 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754115Ab1BVMOK (ORCPT ); Tue, 22 Feb 2011 07:14:10 -0500 Content-Disposition: inline In-Reply-To: <1298358789-13202-1-git-send-email-gadiyar@ti.com> Sender: linux-next-owner@vger.kernel.org List-ID: To: Anand Gadiyar Cc: linux-bluetooth@vger.kernel.org, linux-next@vger.kernel.org Hi Anand, * Anand Gadiyar [2011-02-22 12:43:09 +0530]: > Linux-next as of 20110217 complains when building for OMAP1. > > LD vmlinux > `hci_sock_cleanup' referenced in section `.init.text' of net/built-in.o: defined in discarded section `.exit.text' of net/built-in.o > `hci_sock_cleanup' referenced in section `.init.text' of net/built-in.o: defined in discarded section `.exit.text' of net/built-in.o > make: *** [vmlinux] Error 1 > > A recent patch by Gustavo (Bluetooth: Merge L2CAP and SCO modules > into bluetooth.ko) introduced this by calling the hci_sock_cleanup > function in the error path of bt_init. > > Fix this by dropping the __exit marking for hci_sock_cleanup. > > Signed-off-by: Anand Gadiyar > Cc: Gustavo F. Padovan > --- > net/bluetooth/hci_sock.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) I didn't catch on my system, applied. Thanks for fixing this. -- Gustavo F. Padovan http://profusion.mobi