Skip to contentSkip to conversation

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

PATCH New İsmail Dönmez 1 participant 1 message Sep 5, 2006 ATM

lore
Share & tools
lore
#0 lore raw

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

Hi,

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. Compile tested on x86. Patch is against Linus' 2.6 git tree.

Regards,
ismail

Signature · 1 line
アニメは本当にすごいすぎるよ !
include/linux/atmdev.h +1 -1
index 41788a3..2096e5c 100644
@@ -7,7 +7,6 @@ #ifndef LINUX_ATMDEV_H
 #define LINUX_ATMDEV_H
 
 
-#include <linux/device.h>
 #include <linux/atmapi.h>
 #include <linux/atm.h>
 #include <linux/atmioc.h>
@@ -210,6 +209,7 @@ #define ATM_VF2TXT_MAP \
 
 #ifdef __KERNEL__
 
+#include <linux/device.h>
 #include <linux/wait.h> /* wait_queue_head_t */
 #include <linux/time.h> /* struct timeval */
 #include <linux/net.h>