net: move 6lowpan compression code to separate module
authorDmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Tue, 14 Jan 2014 22:50:40 +0000 (02:50 +0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jan 2014 23:36:38 +0000 (15:36 -0800)
IEEE 802.15.4 and Bluetooth networking stacks share 6lowpan compression
code. Instead of introducing Makefile/Kconfig hacks, build this code as
a separate module referenced from both ieee802154 and bluetooth modules.

This fixes the following build error observed in some kernel
configurations:

net/built-in.o: In function `header_create': 6lowpan.c:(.text+0x166149): undefined reference to `lowpan_header_compress'
net/built-in.o: In function `bt_6lowpan_recv': (.text+0x166b3c): undefined reference to `lowpan_process_data'

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/Makefile
net/bluetooth/Kconfig
net/ieee802154/Kconfig
net/ieee802154/Makefile

index 8fa2f91..cbbbe6d 100644 (file)
@@ -57,7 +57,7 @@ obj-$(CONFIG_CAIF)            += caif/
 ifneq ($(CONFIG_DCB),)
 obj-y                          += dcb/
 endif
-obj-$(CONFIG_IEEE802154)       += ieee802154/
+obj-y                          += ieee802154/
 obj-$(CONFIG_MAC802154)                += mac802154/
 
 ifeq ($(CONFIG_NET),y)
index d3f3f7b..985b560 100644 (file)
@@ -12,6 +12,7 @@ menuconfig BT
        select CRYPTO_AES
        select CRYPTO_ECB
        select CRYPTO_SHA256
+       select 6LOWPAN_IPHC
        help
          Bluetooth is low-cost, low-power, short-range wireless technology.
          It was designed as a replacement for cables and other short-range
Simple merge
Simple merge