batman-adv: Fix includes for IS_ERR/ERR_PTR
authorSven Eckelmann <sven@narfation.org>
Sat, 28 Jan 2017 09:23:30 +0000 (10:23 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sat, 28 Jan 2017 09:40:35 +0000 (10:40 +0100)
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>
net/batman-adv/debugfs.c
net/batman-adv/tp_meter.c

index 5406148b94978f174bea369e8789b00326d2032f..e32ad47c6efdf17914aad1e89029020d15801150 100644 (file)
@@ -19,7 +19,7 @@
 #include "main.h"
 
 #include <linux/debugfs.h>
-#include <linux/device.h>
+#include <linux/err.h>
 #include <linux/errno.h>
 #include <linux/export.h>
 #include <linux/fs.h>
index 07f64b60b528ac40061be6d2c95e118522d086cb..c94ebdecdc3d123f71c5af89783623e58d2f323d 100644 (file)
@@ -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>