summaryrefslogtreecommitdiffstats
path: root/tools/hv/hv_vss_daemon.c
diff options
context:
space:
mode:
authorDexuan Cui <decui@microsoft.com>2018-03-05 06:17:14 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-06 18:57:16 +0100
commit1330fc35327f3ecdfa1aa645e7321ced7349b2cd (patch)
tree289f708ae0916a8eeea4c593a041eeadd380e1ab /tools/hv/hv_vss_daemon.c
parenthv: Synthetic typo correction (diff)
downloadlinux-1330fc35327f3ecdfa1aa645e7321ced7349b2cd.tar.xz
linux-1330fc35327f3ecdfa1aa645e7321ced7349b2cd.zip
tools: hv: fix compiler warnings about major/target_fname
This patch fixes the below warnings with new glibc and gcc: hv_vss_daemon.c:100:13: warning: In the GNU C Library, "major" is defined by <sys/sysmacros.h>. For historical compatibility, it is currently defined by <sys/types.h> as well, but we plan to remove this soon. To use "major", include <sys/sysmacros.h> directly. hv_fcopy_daemon.c:42:2: note: 'snprintf' output between 2 and 1040 bytes into a destination of size 260 Signed-off-by: Dexuan Cui <decui@microsoft.com> Cc: Stephen Hemminger <sthemmin@microsoft.com> Cc: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/hv/hv_vss_daemon.c')
-rw-r--r--tools/hv/hv_vss_daemon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/hv/hv_vss_daemon.c b/tools/hv/hv_vss_daemon.c
index b2b4ebffab8c..34031a297f02 100644
--- a/tools/hv/hv_vss_daemon.c
+++ b/tools/hv/hv_vss_daemon.c
@@ -22,6 +22,7 @@
#include <sys/poll.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
+#include <sys/sysmacros.h>
#include <fcntl.h>
#include <stdio.h>
#include <mntent.h>