[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Declare kasprintf before use.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID f2a08a5a807acddced92db03a5a717bc66c95cc5
# Parent  4d729134a0a4e522defab916ff6d068e5e57eb38
Declare kasprintf before use.

Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r 4d729134a0a4 -r f2a08a5a807a 
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_client.c
--- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_client.c   Wed Dec 21 
11:14:37 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_client.c   Wed Dec 21 
17:16:31 2005
@@ -27,6 +27,12 @@
  * IN THE SOFTWARE.
  */
 
+#include <asm-xen/evtchn.h>
+#include <asm-xen/gnttab.h>
+#include <asm-xen/xenbus.h>
+
+/* xenbus_probe.c */
+extern char *kasprintf(const char *fmt, ...);
 
 #if 0
 #define DPRINTK(fmt, args...) \
@@ -36,11 +42,6 @@
 #endif
 
 
-#include <asm-xen/evtchn.h>
-#include <asm-xen/gnttab.h>
-#include <asm-xen/xenbus.h>
-
-
 int xenbus_watch_path(struct xenbus_device *dev, const char *path,
                      struct xenbus_watch *watch, 
                      void (*callback)(struct xenbus_watch *,
@@ -63,7 +64,6 @@
 }
 EXPORT_SYMBOL(xenbus_watch_path);
 
-extern char *kasprintf(const char *fmt, ...);
 
 int xenbus_watch_path2(struct xenbus_device *dev, const char *path,
                       const char *path2, struct xenbus_watch *watch, 
diff -r 4d729134a0a4 -r f2a08a5a807a 
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c
--- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c       Wed Dec 21 
11:14:37 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c       Wed Dec 21 
17:16:31 2005
@@ -41,6 +41,9 @@
 #include <asm-xen/xenbus.h>
 #include "xenbus_comms.h"
 
+/* xenbus_probe.c */
+extern char *kasprintf(const char *fmt, ...);
+
 #define streq(a, b) (strcmp((a), (b)) == 0)
 
 struct xs_stored_msg {

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.