summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/tp_meter.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2017-01-28 10:23:30 +0100
committerSimon Wunderlich <sw@simonwunderlich.de>2017-01-28 10:40:35 +0100
commit3e7514afc7d728dd47c5fe9d7a1f5216fe659cda (patch)
tree9983b6f6140a81410aa83b75648ee8a2473a17f9 /net/batman-adv/tp_meter.c
parentbatman-adv: Fix double call of dev_queue_xmit (diff)
downloadlinux-3e7514afc7d728dd47c5fe9d7a1f5216fe659cda.tar.xz
linux-3e7514afc7d728dd47c5fe9d7a1f5216fe659cda.zip
batman-adv: Fix includes for IS_ERR/ERR_PTR
IS_ERR/ERR_PTR are not defined in linux/device.h but in linux/err.h. The files using these macros therefore have to include the correct one. Reported-by: Linus Luessing <linus.luessing@web.de> Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/tp_meter.c')
-rw-r--r--net/batman-adv/tp_meter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/tp_meter.c b/net/batman-adv/tp_meter.c
index 07f64b60b528..c94ebdecdc3d 100644
--- a/net/batman-adv/tp_meter.c
+++ b/net/batman-adv/tp_meter.c
@@ -23,7 +23,7 @@
#include <linux/byteorder/generic.h>
#include <linux/cache.h>
#include <linux/compiler.h>
-#include <linux/device.h>
+#include <linux/err.h>
#include <linux/etherdevice.h>
#include <linux/fs.h>
#include <linux/if_ether.h>