direct-io.hg

changeset 8407:f2a08a5a807a

Declare kasprintf before use.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Dec 21 18:16:31 2005 +0100 (2005-12-21)
parents 4d729134a0a4
children 48eb10d7a2d6
files linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_client.c linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_client.c	Wed Dec 21 11:14:37 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_client.c	Wed Dec 21 18:16:31 2005 +0100
     1.3 @@ -27,6 +27,12 @@
     1.4   * IN THE SOFTWARE.
     1.5   */
     1.6  
     1.7 +#include <asm-xen/evtchn.h>
     1.8 +#include <asm-xen/gnttab.h>
     1.9 +#include <asm-xen/xenbus.h>
    1.10 +
    1.11 +/* xenbus_probe.c */
    1.12 +extern char *kasprintf(const char *fmt, ...);
    1.13  
    1.14  #if 0
    1.15  #define DPRINTK(fmt, args...) \
    1.16 @@ -36,11 +42,6 @@
    1.17  #endif
    1.18  
    1.19  
    1.20 -#include <asm-xen/evtchn.h>
    1.21 -#include <asm-xen/gnttab.h>
    1.22 -#include <asm-xen/xenbus.h>
    1.23 -
    1.24 -
    1.25  int xenbus_watch_path(struct xenbus_device *dev, const char *path,
    1.26  		      struct xenbus_watch *watch, 
    1.27  		      void (*callback)(struct xenbus_watch *,
    1.28 @@ -63,7 +64,6 @@ int xenbus_watch_path(struct xenbus_devi
    1.29  }
    1.30  EXPORT_SYMBOL(xenbus_watch_path);
    1.31  
    1.32 -extern char *kasprintf(const char *fmt, ...);
    1.33  
    1.34  int xenbus_watch_path2(struct xenbus_device *dev, const char *path,
    1.35  		       const char *path2, struct xenbus_watch *watch, 
     2.1 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c	Wed Dec 21 11:14:37 2005 +0000
     2.2 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c	Wed Dec 21 18:16:31 2005 +0100
     2.3 @@ -41,6 +41,9 @@
     2.4  #include <asm-xen/xenbus.h>
     2.5  #include "xenbus_comms.h"
     2.6  
     2.7 +/* xenbus_probe.c */
     2.8 +extern char *kasprintf(const char *fmt, ...);
     2.9 +
    2.10  #define streq(a, b) (strcmp((a), (b)) == 0)
    2.11  
    2.12  struct xs_stored_msg {