diff options
author | Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com> | 2014-01-15 02:50:40 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-16 03:36:38 +0400 |
commit | a53d34c3465b8a840f7400932ae1b0a9f9ed6bef (patch) | |
tree | a2e70d5846b547411c18782bcef884eae784d9dc /net/ieee802154/Makefile | |
parent | 89fc8632dd7d3402b0320551da207e44f5ce5a3e (diff) | |
download | linux-a53d34c3465b8a840f7400932ae1b0a9f9ed6bef.tar.xz |
net: move 6lowpan compression code to separate module
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>
Diffstat (limited to 'net/ieee802154/Makefile')
-rw-r--r-- | net/ieee802154/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ieee802154/Makefile b/net/ieee802154/Makefile index 951a83ee8af4..e8f05885ced6 100644 --- a/net/ieee802154/Makefile +++ b/net/ieee802154/Makefile @@ -1,5 +1,6 @@ obj-$(CONFIG_IEEE802154) += ieee802154.o af_802154.o -obj-$(CONFIG_IEEE802154_6LOWPAN) += 6lowpan.o 6lowpan_iphc.o +obj-$(CONFIG_IEEE802154_6LOWPAN) += 6lowpan.o +obj-$(CONFIG_6LOWPAN_IPHC) += 6lowpan_iphc.o ieee802154-y := netlink.o nl-mac.o nl-phy.o nl_policy.o wpan-class.o af_802154-y := af_ieee802154.o raw.o dgram.o |