Skip to content

Commit 0c38cda

Browse files
atheismgregkh
authored andcommitted
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>
1 parent 1745ba4 commit 0c38cda

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

‎tools/hv/hv_fcopy_daemon.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,14 @@
1818

1919

2020
#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>
2521
#include <stdio.h>
2622
#include <stdlib.h>
2723
#include <unistd.h>
28-
#include <string.h>
29-
#include <ctype.h>
3024
#include <errno.h>
3125
#include <linux/hyperv.h>
3226
#include <syslog.h>
3327
#include <sys/stat.h>
3428
#include <fcntl.h>
35-
#include <dirent.h>
3629
#include <getopt.h>
3730

3831
static int target_fd;

‎tools/hv/hv_kvp_daemon.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
*/
2323

2424

25-
#include <sys/types.h>
26-
#include <sys/socket.h>
2725
#include <sys/poll.h>
2826
#include <sys/utsname.h>
2927
#include <stdio.h>
@@ -34,7 +32,6 @@
3432
#include <errno.h>
3533
#include <arpa/inet.h>
3634
#include <linux/hyperv.h>
37-
#include <linux/netlink.h>
3835
#include <ifaddrs.h>
3936
#include <netdb.h>
4037
#include <syslog.h>
@@ -99,10 +96,6 @@ static struct utsname uts_buf;
9996
#define MAX_FILE_NAME 100
10097
#define ENTRIES_PER_BLOCK 50
10198

102-
#ifndef SOL_NETLINK
103-
#define SOL_NETLINK 270
104-
#endif
105-
10699
struct kvp_record {
107100
char key[HV_KVP_EXCHANGE_MAX_KEY_SIZE];
108101
char value[HV_KVP_EXCHANGE_MAX_VALUE_SIZE];

0 commit comments

Comments
 (0)