Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Weibing Zhang and committed by
Greg Kroah-Hartman
0c38cda6 1745ba41

-14
-7
tools/hv/hv_fcopy_daemon.c
··· 18 18 19 19 20 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 21 #include <stdio.h> 26 22 #include <stdlib.h> 27 23 #include <unistd.h> 28 - #include <string.h> 29 - #include <ctype.h> 30 24 #include <errno.h> 31 25 #include <linux/hyperv.h> 32 26 #include <syslog.h> 33 27 #include <sys/stat.h> 34 28 #include <fcntl.h> 35 - #include <dirent.h> 36 29 #include <getopt.h> 37 30 38 31 static int target_fd;
-7
tools/hv/hv_kvp_daemon.c
··· 22 22 */ 23 23 24 24 25 - #include <sys/types.h> 26 - #include <sys/socket.h> 27 25 #include <sys/poll.h> 28 26 #include <sys/utsname.h> 29 27 #include <stdio.h> ··· 32 34 #include <errno.h> 33 35 #include <arpa/inet.h> 34 36 #include <linux/hyperv.h> 35 - #include <linux/netlink.h> 36 37 #include <ifaddrs.h> 37 38 #include <netdb.h> 38 39 #include <syslog.h> ··· 95 98 96 99 #define MAX_FILE_NAME 100 97 100 #define ENTRIES_PER_BLOCK 50 98 - 99 - #ifndef SOL_NETLINK 100 - #define SOL_NETLINK 270 101 - #endif 102 101 103 102 struct kvp_record { 104 103 char key[HV_KVP_EXCHANGE_MAX_KEY_SIZE];