From: Juergen Gross <jgross@suse.com>
To: minios-devel@lists.xenproject.org, xen-devel@lists.xenproject.org
Cc: Juergen Gross <jgross@suse.com>,
samuel.thibault@ens-lyon.org, wei.liu2@citrix.com
Subject: [PATCH 2/2] mini-os: don't get xenbus parameters if xenbus is disabled
Date: Mon, 29 Aug 2016 13:01:09 +0200 [thread overview]
Message-ID: <1472468469-11560-3-git-send-email-jgross@suse.com> (raw)
In-Reply-To: <1472468469-11560-1-git-send-email-jgross@suse.com>
get_xenbus() should be called only if CONFIG_XENBUS is set.
Signed-off-by: Juergen Gross <jgross@suse.com>
---
include/xenbus.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/xenbus.h b/include/xenbus.h
index 5646a25..c254652 100644
--- a/include/xenbus.h
+++ b/include/xenbus.h
@@ -9,10 +9,14 @@ typedef unsigned long xenbus_transaction_t;
#ifdef CONFIG_XENBUS
/* Initialize the XenBus system. */
void init_xenbus(void);
+void get_xenbus(void *p);
#else
static inline void init_xenbus(void)
{
}
+static inline void get_xenbus(void *p)
+{
+}
#endif
/* Read the value associated with a path. Returns a malloc'd error
@@ -31,7 +35,6 @@ typedef struct xenbus_event *xenbus_event_queue;
extern uint32_t xenbus_evtchn;
-void get_xenbus(void *p);
char *xenbus_watch_path_token(xenbus_transaction_t xbt, const char *path, const char *token, xenbus_event_queue *events);
char *xenbus_unwatch_path_token(xenbus_transaction_t xbt, const char *path, const char *token);
extern struct wait_queue_head xenbus_watch_queue;
--
2.6.6
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-08-29 11:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-29 11:01 [PATCH 0/2] mini-os: repair stubdom build Juergen Gross
2016-08-29 11:01 ` [PATCH 1/2] mini-os: support keeping start_info structure conditionally Juergen Gross
2016-08-29 11:09 ` Wei Liu
2016-08-29 11:17 ` [Minios-devel] " Juergen Gross
2016-08-29 11:47 ` Andrew Cooper
2016-08-29 12:28 ` Juergen Gross
2016-08-29 12:32 ` Andrew Cooper
2016-08-29 13:09 ` Juergen Gross
2016-08-29 12:03 ` Wei Liu
2016-08-29 11:01 ` Juergen Gross [this message]
2016-08-29 11:11 ` [PATCH 2/2] mini-os: don't get xenbus parameters if xenbus is disabled Wei Liu
2016-08-29 20:42 ` Samuel Thibault
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=1472468469-11560-3-git-send-email-jgross@suse.com \
--to=jgross@suse.com \
--cc=minios-devel@lists.xenproject.org \
--cc=samuel.thibault@ens-lyon.org \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/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).