From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcel Holtmann Subject: Re: [PATCH] Bluetooth: remove direct compilation of 6lowpan_iphc.c Date: Fri, 17 Jan 2014 12:19:54 -0800 Message-ID: <4406CE8B-CB98-418A-98C7-2BB160A54ED5@holtmann.org> References: <1389986964-5177-1-git-send-email-swarren@wwwdotorg.org> Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8BIT Return-path: Received: from senator.holtmann.net ([87.106.208.187]:34979 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752886AbaAQUT6 convert rfc822-to-8bit (ORCPT ); Fri, 17 Jan 2014 15:19:58 -0500 In-Reply-To: <1389986964-5177-1-git-send-email-swarren@wwwdotorg.org> Sender: linux-next-owner@vger.kernel.org List-ID: To: Stephen Warren Cc: "David S. Miller" , Dmitry Eremin-Solenikov , Stephen Rothwell , linux-next@vger.kernel.org, linux-kernel , linux-zigbee-devel@lists.sourceforge.net, Alexander Smirnov , Network Development , Jukka Rissanen , Stephen Warren Hi Stephen, > It's now built as a separate utility module, and enabling BT selects > that module in Kconfig. This fixes: > > net/ieee802154/built-in.o:(___ksymtab_gpl+lowpan_process_data+0x0): multiple definition of `__ksymtab_lowpan_process_data' > net/bluetooth/built-in.o:(___ksymtab_gpl+lowpan_process_data+0x0): first defined here > net/ieee802154/built-in.o:(___ksymtab_gpl+lowpan_header_compress+0x0): multiple definition of `__ksymtab_lowpan_header_compress' > net/bluetooth/built-in.o:(___ksymtab_gpl+lowpan_header_compress+0x0): first defined here > net/ieee802154/built-in.o: In function `lowpan_header_compress': > net/ieee802154/6lowpan_iphc.c:606: multiple definition of `lowpan_header_compress' > net/bluetooth/built-in.o:/home/swarren/shared/git_wa/kernel/kernel.git/net/bluetooth/../ieee802154/6lowpan_iphc.c:606: first defined here > net/ieee802154/built-in.o: In function `lowpan_process_data': > net/ieee802154/6lowpan_iphc.c:344: multiple definition of `lowpan_process_data' > net/bluetooth/built-in.o:/home/swarren/shared/git_wa/kernel/kernel.git/net/bluetooth/../ieee802154/6lowpan_iphc.c:344: first defined here > make[1]: *** [net/built-in.o] Error 1 > > (this change probably simply wasn't "git add"d to a53d34c3465b) > > Fixes: a53d34c3465b ("net: move 6lowpan compression code to separate module") > Fixes: 18722c247023 ("Bluetooth: Enable 6LoWPAN support for BT LE devices") > Signed-off-by: Stephen Warren seems that I missed the initial patch that changes this to build this as separate module. Please CC linux-bluetooth@vger.kernel.org so that we do not accidentally miss these changes. Our initial idea was to create net/core/6lowpan_iphc.c or maybe net/6lowpan/iphc.c module to make it clear that this is independent from IEEE 802.15.4 and Bluetooth. However we started to do this inside net/ieee802154 to this started. Should we do the change now and move it into its separate directory. Regards Marcel