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.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -7,7 +7,6 @@ · 6 unmodified lines | ||
| 7 | 7 | #define LINUX_ATMDEV_H |
| 8 | 8 | |
| 9 | 9 | |
| 10 | −#include <linux/device.h> | |
| 11 | 10 | #include <linux/atmapi.h> |
| 12 | 11 | #include <linux/atm.h> |
| 13 | 12 | #include <linux/atmioc.h> |
| @@ -210,6 +209,7 @@ struct atm_cirange { · 196 unmodified lines | ||
| 210 | 209 | |
| 211 | 210 | #ifdef __KERNEL__ |
| 212 | 211 | |
| 212 | +#include <linux/device.h> | |
| 213 | 213 | #include <linux/wait.h> /* wait_queue_head_t */ |
| 214 | 214 | #include <linux/time.h> /* struct timeval */ |
| 215 | 215 | #include <linux/net.h> |