[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] xen, tools: console.h shouldn't require string.h by default
commit 3e4bc919cb1d1e18318a9f95de5e84a75c8f5266 Author: Wei Liu <wei.liu2@xxxxxxxxxx> AuthorDate: Fri Oct 6 18:41:09 2017 +0100 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Mon Oct 9 09:57:02 2017 +0100 xen, tools: console.h shouldn't require string.h by default Unilaterally making string.h a prerequisite for console.h is going to break build for a lot of consumers of console.h. Define a macro for the new flex ring. Consumers which want to use it should define the macro. Partially revert af8d9356417cb617b635c5ace782388ebfe86e3a. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> --- tools/console/daemon/io.c | 2 +- xen/arch/arm/vpl011.c | 2 ++ xen/include/Makefile | 1 - xen/include/public/io/console.h | 5 ++--- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c index afe162e..e22009a 100644 --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -21,7 +21,6 @@ #include "utils.h" #include "io.h" -#include <string.h> #include <xenevtchn.h> #include <xengnttab.h> #include <xenstore.h> @@ -30,6 +29,7 @@ #include <stdlib.h> #include <errno.h> +#include <string.h> #include <poll.h> #include <fcntl.h> #include <unistd.h> diff --git a/xen/arch/arm/vpl011.c b/xen/arch/arm/vpl011.c index 56d9cbe..f7ddccb 100644 --- a/xen/arch/arm/vpl011.c +++ b/xen/arch/arm/vpl011.c @@ -16,6 +16,8 @@ * this program; If not, see <http://www.gnu.org/licenses/>. */ +#define XEN_WANT_FLEX_CONSOLE_RING 1 + #include <xen/errno.h> #include <xen/event.h> #include <xen/guest_access.h> diff --git a/xen/include/Makefile b/xen/include/Makefile index c90fdee..1299b19 100644 --- a/xen/include/Makefile +++ b/xen/include/Makefile @@ -98,7 +98,6 @@ PUBLIC_C99_HEADERS := public/io/9pfs.h public/io/pvcalls.h PUBLIC_ANSI_HEADERS := $(filter-out public/%ctl.h public/xsm/% public/%hvm/save.h $(PUBLIC_C99_HEADERS), $(PUBLIC_HEADERS)) public/io/9pfs.h-prereq := string -public/io/console.h-prereq := string public/io/pvcalls.h-prereq := string headers.chk: $(PUBLIC_ANSI_HEADERS) Makefile diff --git a/xen/include/public/io/console.h b/xen/include/public/io/console.h index 0f0711f..1f79ef8 100644 --- a/xen/include/public/io/console.h +++ b/xen/include/public/io/console.h @@ -27,8 +27,6 @@ #ifndef __XEN_PUBLIC_IO_CONSOLE_H__ #define __XEN_PUBLIC_IO_CONSOLE_H__ -#include "ring.h" - typedef uint32_t XENCONS_RING_IDX; #define MASK_XENCONS_IDX(idx, ring) ((idx) & (sizeof(ring)-1)) @@ -40,7 +38,8 @@ struct xencons_interface { XENCONS_RING_IDX out_cons, out_prod; }; -#if defined(__GNUC__) && !defined(__STRICT_ANSI__) +#ifdef XEN_WANT_FLEX_CONSOLE_RING +#include "ring.h" DEFINE_XEN_FLEX_RING(xencons); #endif -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |