History

[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.

Ismail Donmez committed 20 years ago

Commit bb98ad71 parent 068c4571 file · +1 −1Browse files

Unified · Split

include/linux/atmdev.h+1−1
@@ -7,7 +7,6 @@ · 6 unmodified lines
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 { · 196 unmodified lines
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>

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t