Skip to content
Snippets Groups Projects
Commit a3907c99 authored by Kaspar Schleiser's avatar Kaspar Schleiser Committed by GitHub
Browse files

Merge pull request #7079 from haukepetersen/opt_guard_unusedmoduleheaders

sys/drivers: guard l2filter.h, netstats.h includes
parents 2ef5cff6 d488fdc1
No related branches found
No related tags found
No related merge requests found
......@@ -22,10 +22,6 @@
#include <assert.h>
#include <errno.h>
#ifdef MODULE_NETSTATS_L2
#include <string.h>
#endif
#include "mutex.h"
#include "encx24j600.h"
#include "encx24j600_internal.h"
......@@ -36,7 +32,11 @@
#include "net/netdev/eth.h"
#include "net/eui64.h"
#include "net/ethernet.h"
#ifdef MODULE_NETSTATS_L2
#include <string.h>
#include "net/netstats.h"
#endif
#define ENABLE_DEBUG (0)
#include "debug.h"
......
......@@ -53,9 +53,14 @@ extern "C" {
#include <stdint.h>
#include <sys/uio.h>
#include "net/netopt.h"
#ifdef MODULE_NETSTATS_L2
#include "net/netstats.h"
#endif
#ifdef MODULE_L2FILTER
#include "net/l2filter.h"
#include "net/netopt.h"
#endif
enum {
NETDEV_TYPE_UNKNOWN,
......
......@@ -30,9 +30,12 @@
#include "mutex.h"
#include "net/ipv6.h"
#include "net/ipv6/addr.h"
#include "net/netstats.h"
#include "xtimer.h"
#ifdef MODULE_NETSTATS_IPV6
#include "net/netstats.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
......@@ -605,7 +608,9 @@ void gnrc_ipv6_netif_init_by_dev(void);
* @return A @ref netstats_t pointer to the statistics.
* @return NULL if no statistics are available.
*/
#if defined(MODULE_NETSTATS_IPV6) || DOXYGEN
netstats_t *gnrc_ipv6_netif_get_stats(kernel_pid_t pid);
#endif
#ifdef __cplusplus
}
......
......@@ -26,8 +26,6 @@
#include <inttypes.h>
#include "thread.h"
#include "net/netstats.h"
#include "net/l2filter.h"
#include "net/ipv6/addr.h"
#include "net/gnrc/ipv6/netif.h"
#include "net/gnrc/netif.h"
......@@ -38,6 +36,13 @@
#include "net/gnrc/netif/hdr.h"
#include "net/gnrc/sixlowpan/netif.h"
#ifdef MODULE_NETSTATS
#include "net/netstats.h"
#endif
#ifdef MODULE_L2FILTER
#include "net/l2filter.h"
#endif
/**
* @brief The maximal expected link layer address length in byte
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment