Skip to content

Commit

Permalink
[PATCH] Move linux/device.h include in linux/atmdev.h to #ifdef __KER…
Browse files Browse the repository at this point in the history
…NEL__ 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: Ismail Donmez <ismail@pardus.org.tr>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Ismail Donmez authored and Linus Torvalds committed Sep 6, 2006
1 parent 068c457 commit bb98ad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/atmdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#define LINUX_ATMDEV_H


#include <linux/device.h>
#include <linux/atmapi.h>
#include <linux/atm.h>
#include <linux/atmioc.h>
Expand Down Expand Up @@ -210,6 +209,7 @@ struct atm_cirange {

#ifdef __KERNEL__

#include <linux/device.h>
#include <linux/wait.h> /* wait_queue_head_t */
#include <linux/time.h> /* struct timeval */
#include <linux/net.h>
Expand Down

0 comments on commit bb98ad7

Please sign in to comment.