#ifndef _COMPAT_NET_NET_NAMESPACE_H
#define _COMPAT_NET_NET_NAMESPACE_H 1
+#include_next <net/net_namespace.h>
+
+#if IS_ENABLED(CPTCFG_IEEE802154_6LOWPAN)
#include <linux/version.h>
#include <net/netns/ieee802154_6lowpan.h>
-#include_next <net/net_namespace.h>
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0))
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
return &net->ieee802154_lowpan;
}
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0) */
+#endif /* CPTCFG_IEEE802154_6LOWPAN */
#endif /* _COMPAT_NET_NET_NAMESPACE_H */
#include <linux/string.h>
#include <net/net_namespace.h>
+#if IS_ENABLED(CPTCFG_IEEE802154_6LOWPAN)
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
/* the above kernel dependency is set to match the dependencies file */
struct netns_ieee802154_lowpan ieee802154_lowpan;
}
EXPORT_SYMBOL_GPL(net_ieee802154_lowpan);
#endif
+#endif /* CPTCFG_IEEE802154_6LOWPAN */
/**
* devm_kstrdup - Allocate resource managed space and