[14/15] net/netvsc: fix compile warning for fcntl.h include
Checks
Commit Message
Fix the following warning when building with musl libc:
In file included from ../drivers/net/netvsc/hn_vf.c:14:
/usr/include/sys/fcntl.h:1:2: warning: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Wcpp]
#warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>
^~~~~~~
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
---
This is a low priority patch, but it is so trivial so I fixed it while at it.
drivers/net/netvsc/hn_vf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Mon, 11 Mar 2019 18:37:01 +0100
Natanael Copa <ncopa@alpinelinux.org> wrote:
> Fix the following warning when building with musl libc:
>
> In file included from ../drivers/net/netvsc/hn_vf.c:14:
> /usr/include/sys/fcntl.h:1:2: warning: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Wcpp]
> #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>
> ^~~~~~~
>
> Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Acked-by: Stephen Hemminger <sthemmin@microsoft.com>
@@ -10,8 +10,8 @@
#include <errno.h>
#include <unistd.h>
#include <dirent.h>
+#include <fcntl.h>
#include <sys/types.h>
-#include <sys/fcntl.h>
#include <sys/uio.h>
#include <rte_ether.h>