Skip to content

Commit

Permalink
batman-adv: Fix includes for IS_ERR/ERR_PTR
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sven Eckelmann authored and Simon Wunderlich committed Jan 28, 2017
1 parent 7c94606 commit 3e7514a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/batman-adv/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion net/batman-adv/tp_meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 3e7514a

Please sign in to comment.