From: xiangxia.m.yue@gmail.com
To: jianfeng.tan@intel.com
Cc: dev@dpdk.org, Tonghao Zhang <xiangxia.m.yue@gmail.com>
Subject: [dpdk-dev] [PATCH 1/2] vhost: move stdbool header file to vhost.h
Date: Tue, 27 Mar 2018 22:49:24 -0700 [thread overview]
Message-ID: <1522216165-19666-2-git-send-email-xiangxia.m.yue@gmail.com> (raw)
In-Reply-To: <1522216165-19666-1-git-send-email-xiangxia.m.yue@gmail.com>
From: Tonghao Zhang <xiangxia.m.yue@gmail.com>
The vhost.h file uses bool type, but not include stdbool
header file. If other c files include vhost.h directly,
there will be a compile error.
This patch will be used in the next patch.
Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
---
lib/librte_vhost/socket.c | 1 -
lib/librte_vhost/vhost.h | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/librte_vhost/socket.c b/lib/librte_vhost/socket.c
index 1352339..95bed78 100644
--- a/lib/librte_vhost/socket.c
+++ b/lib/librte_vhost/socket.c
@@ -4,7 +4,6 @@
#include <stdint.h>
#include <stdio.h>
-#include <stdbool.h>
#include <limits.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h
index d947bc9..37edb48 100644
--- a/lib/librte_vhost/vhost.h
+++ b/lib/librte_vhost/vhost.h
@@ -6,6 +6,7 @@
#define _VHOST_NET_CDEV_H_
#include <stdint.h>
#include <stdio.h>
+#include <stdbool.h>
#include <sys/types.h>
#include <sys/queue.h>
#include <unistd.h>
--
1.8.3.1
next prev parent reply other threads:[~2018-03-28 5:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-28 5:49 [dpdk-dev] [PATCH 0/2] add pipe event for optimizing negotiating xiangxia.m.yue
2018-03-28 5:49 ` xiangxia.m.yue [this message]
2018-03-30 8:09 ` [dpdk-dev] [PATCH 1/2] vhost: move stdbool header file to vhost.h Maxime Coquelin
2018-03-28 5:49 ` [dpdk-dev] [PATCH 2/2] vhost: add pipe event for optimizing negotiating xiangxia.m.yue
2018-03-29 7:32 ` Tan, Jianfeng
2018-03-29 11:24 ` Tonghao Zhang
2018-03-30 7:57 ` Maxime Coquelin
2018-03-30 8:07 ` Tonghao Zhang
2018-03-30 8:09 ` Maxime Coquelin
2018-03-30 8:17 ` [dpdk-dev] [PATCH 0/2] " Maxime Coquelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1522216165-19666-2-git-send-email-xiangxia.m.yue@gmail.com \
--to=xiangxia.m.yue@gmail.com \
--cc=dev@dpdk.org \
--cc=jianfeng.tan@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).