diff options
author | Weibing Zhang <atheism.zhang@gmail.com> | 2016-11-06 16:14:15 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-07 04:01:17 -0500 |
commit | 0c38cda64aecb4a821210bb2d3d04092c181c0ae (patch) | |
tree | 3511f77e9a570d0593ac309eea25a4af589a5fc3 /tools | |
parent | 1745ba41945db2c77d918e3bcad898f8259f7f5a (diff) |
tools: hv: remove unnecessary header files and netlink related code
Remove unnecessary header files and netlink related code as the daemons
do not use netlink to communicate with the kernel now.
Signed-off-by: Weibing Zhang <atheism.zhang@gmail.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/hv/hv_fcopy_daemon.c | 7 | ||||
-rw-r--r-- | tools/hv/hv_kvp_daemon.c | 7 |
2 files changed, 0 insertions, 14 deletions
diff --git a/tools/hv/hv_fcopy_daemon.c b/tools/hv/hv_fcopy_daemon.c index fdc9ca4c0356..26ae609a9448 100644 --- a/tools/hv/hv_fcopy_daemon.c +++ b/tools/hv/hv_fcopy_daemon.c | |||
@@ -18,21 +18,14 @@ | |||
18 | 18 | ||
19 | 19 | ||
20 | #include <sys/types.h> | 20 | #include <sys/types.h> |
21 | #include <sys/socket.h> | ||
22 | #include <sys/poll.h> | ||
23 | #include <linux/types.h> | ||
24 | #include <linux/kdev_t.h> | ||
25 | #include <stdio.h> | 21 | #include <stdio.h> |
26 | #include <stdlib.h> | 22 | #include <stdlib.h> |
27 | #include <unistd.h> | 23 | #include <unistd.h> |
28 | #include <string.h> | ||
29 | #include <ctype.h> | ||
30 | #include <errno.h> | 24 | #include <errno.h> |
31 | #include <linux/hyperv.h> | 25 | #include <linux/hyperv.h> |
32 | #include <syslog.h> | 26 | #include <syslog.h> |
33 | #include <sys/stat.h> | 27 | #include <sys/stat.h> |
34 | #include <fcntl.h> | 28 | #include <fcntl.h> |
35 | #include <dirent.h> | ||
36 | #include <getopt.h> | 29 | #include <getopt.h> |
37 | 30 | ||
38 | static int target_fd; | 31 | static int target_fd; |
diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c index bb0719b11475..d791dbf05d9b 100644 --- a/tools/hv/hv_kvp_daemon.c +++ b/tools/hv/hv_kvp_daemon.c | |||
@@ -22,8 +22,6 @@ | |||
22 | */ | 22 | */ |
23 | 23 | ||
24 | 24 | ||
25 | #include <sys/types.h> | ||
26 | #include <sys/socket.h> | ||
27 | #include <sys/poll.h> | 25 | #include <sys/poll.h> |
28 | #include <sys/utsname.h> | 26 | #include <sys/utsname.h> |
29 | #include <stdio.h> | 27 | #include <stdio.h> |
@@ -34,7 +32,6 @@ | |||
34 | #include <errno.h> | 32 | #include <errno.h> |
35 | #include <arpa/inet.h> | 33 | #include <arpa/inet.h> |
36 | #include <linux/hyperv.h> | 34 | #include <linux/hyperv.h> |
37 | #include <linux/netlink.h> | ||
38 | #include <ifaddrs.h> | 35 | #include <ifaddrs.h> |
39 | #include <netdb.h> | 36 | #include <netdb.h> |
40 | #include <syslog.h> | 37 | #include <syslog.h> |
@@ -99,10 +96,6 @@ static struct utsname uts_buf; | |||
99 | #define MAX_FILE_NAME 100 | 96 | #define MAX_FILE_NAME 100 |
100 | #define ENTRIES_PER_BLOCK 50 | 97 | #define ENTRIES_PER_BLOCK 50 |
101 | 98 | ||
102 | #ifndef SOL_NETLINK | ||
103 | #define SOL_NETLINK 270 | ||
104 | #endif | ||
105 | |||
106 | struct kvp_record { | 99 | struct kvp_record { |
107 | char key[HV_KVP_EXCHANGE_MAX_KEY_SIZE]; | 100 | char key[HV_KVP_EXCHANGE_MAX_KEY_SIZE]; |
108 | char value[HV_KVP_EXCHANGE_MAX_VALUE_SIZE]; | 101 | char value[HV_KVP_EXCHANGE_MAX_VALUE_SIZE]; |