Skip to content

Commit bb98ad7

Browse files
Ismail DonmezLinus Torvalds
authored andcommitted
[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: 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>
1 parent 068c457 commit bb98ad7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/atmdev.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#define LINUX_ATMDEV_H
88

99

10-
#include <linux/device.h>
1110
#include <linux/atmapi.h>
1211
#include <linux/atm.h>
1312
#include <linux/atmioc.h>
@@ -210,6 +209,7 @@ struct atm_cirange {
210209

211210
#ifdef __KERNEL__
212211

212+
#include <linux/device.h>
213213
#include <linux/wait.h> /* wait_queue_head_t */
214214
#include <linux/time.h> /* struct timeval */
215215
#include <linux/net.h>

0 commit comments

Comments
 (0)