Commit bb98ad77 authored by Ismail Donmez's avatar Ismail Donmez Committed by Linus Torvalds

[PATCH] Move linux/device.h include in linux/atmdev.h to #ifdef __KERNEL__ section

linux/device.h header is not included in the David Woodhouse's
kernel-headers git tree which is used for userspace kernel headers.  Which
results in compile errors when building iproute2.  Attached patch moves
linux/device.h include under the #ifdef __KERNEL__ section.
Signed-off-by: default avatarIsmail Donmez <ismail@pardus.org.tr>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 068c4579
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#define LINUX_ATMDEV_H #define LINUX_ATMDEV_H
#include <linux/device.h>
#include <linux/atmapi.h> #include <linux/atmapi.h>
#include <linux/atm.h> #include <linux/atm.h>
#include <linux/atmioc.h> #include <linux/atmioc.h>
...@@ -210,6 +209,7 @@ struct atm_cirange { ...@@ -210,6 +209,7 @@ struct atm_cirange {
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/device.h>
#include <linux/wait.h> /* wait_queue_head_t */ #include <linux/wait.h> /* wait_queue_head_t */
#include <linux/time.h> /* struct timeval */ #include <linux/time.h> /* struct timeval */
#include <linux/net.h> #include <linux/net.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment