From: Ismail Donmez Date: Wed, 6 Sep 2006 07:03:44 +0000 (-0700) Subject: [PATCH] Move linux/device.h include in linux/atmdev.h to #ifdef __KERNEL__ section X-Git-Tag: v2.6.18-rc7~29 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=bb98ad77d8451a3ccf9478738ffe7ec63394fcdf;p=~shefty%2Frdma-dev.git [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 Signed-off-by: David Woodhouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/atmdev.h b/include/linux/atmdev.h index 41788a31c43..2096e5c7282 100644 --- a/include/linux/atmdev.h +++ b/include/linux/atmdev.h @@ -7,7 +7,6 @@ #define LINUX_ATMDEV_H -#include #include #include #include @@ -210,6 +209,7 @@ struct atm_cirange { #ifdef __KERNEL__ +#include #include /* wait_queue_head_t */ #include /* struct timeval */ #include