[PATCH v4 14/14] vhost: remove unneeded header includes

Sean Morrissey sean.morrissey at intel.com
Mon Jun 20 12:40:30 CEST 2022


These header includes have been flagged by the iwyu_tool
and removed.

Signed-off-by: Sean Morrissey <sean.morrissey at intel.com>
Acked-by: Chenbo Xia <chenbo.xia at intel.com>
---
 lib/vhost/vhost.h      | 2 --
 lib/vhost/vhost_user.h | 1 -
 2 files changed, 3 deletions(-)

diff --git a/lib/vhost/vhost.h b/lib/vhost/vhost.h
index 14235aaf81..4ebcb7448a 100644
--- a/lib/vhost/vhost.h
+++ b/lib/vhost/vhost.h
@@ -7,10 +7,8 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdbool.h>
-#include <sys/types.h>
 #include <sys/queue.h>
 #include <unistd.h>
-#include <linux/vhost.h>
 #include <linux/virtio_net.h>
 #include <sys/socket.h>
 #include <linux/if.h>
diff --git a/lib/vhost/vhost_user.h b/lib/vhost/vhost_user.h
index c4d091e175..8ecca68597 100644
--- a/lib/vhost/vhost_user.h
+++ b/lib/vhost/vhost_user.h
@@ -6,7 +6,6 @@
 #define _VHOST_NET_USER_H
 
 #include <stdint.h>
-#include <linux/vhost.h>
 
 #include "rte_vhost.h"
 
-- 
2.25.1



More information about the dev mailing list