Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen make xenbus_watch_path() static, it's not used ...



details:   https://anonhg.NetBSD.org/src/rev/fc837eb6b2c5
branches:  trunk
changeset: 1008976:fc837eb6b2c5
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Tue Apr 07 13:38:50 2020 +0000

description:
make xenbus_watch_path() static, it's not used outside xenbus_client.c

diffstat:

 sys/arch/xen/include/xenbus.h       |  16 +---------------
 sys/arch/xen/xenbus/xenbus_client.c |   6 +++---
 2 files changed, 4 insertions(+), 18 deletions(-)

diffs (57 lines):

diff -r 864830078065 -r fc837eb6b2c5 sys/arch/xen/include/xenbus.h
--- a/sys/arch/xen/include/xenbus.h     Tue Apr 07 13:36:22 2020 +0000
+++ b/sys/arch/xen/include/xenbus.h     Tue Apr 07 13:38:50 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xenbus.h,v 1.17 2020/04/07 13:36:22 jdolecek Exp $ */
+/* $NetBSD: xenbus.h,v 1.18 2020/04/07 13:38:50 jdolecek Exp $ */
 /******************************************************************************
  * xenbus.h
  *
@@ -167,20 +167,6 @@
 
 
 /**
- * Register a watch on the given path, using the given xenbus_watch structure
- * for storage, and the given callback function as the callback.  Return 0 on
- * success, or -errno on error.  On success, the given path will be saved as
- * watch->node, and remains the caller's to free.  On error, watch->node will
- * be NULL, the device will switch to XenbusStateClosing, and the error will
- * be saved in the store.
- */
-int xenbus_watch_path(struct xenbus_device *dev, char *path,
-                     struct xenbus_watch *watch, 
-                     void (*callback)(struct xenbus_watch *,
-                                      const char **, unsigned int));
-
-
-/**
  * Register a watch on the given path/path2, using the given xenbus_watch
  * structure for storage, and the given callback function as the callback.
  * Return 0 on success, or -errno on error.  On success, the watched path
diff -r 864830078065 -r fc837eb6b2c5 sys/arch/xen/xenbus/xenbus_client.c
--- a/sys/arch/xen/xenbus/xenbus_client.c       Tue Apr 07 13:36:22 2020 +0000
+++ b/sys/arch/xen/xenbus/xenbus_client.c       Tue Apr 07 13:38:50 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xenbus_client.c,v 1.14 2019/11/10 21:16:34 chs Exp $ */
+/* $NetBSD: xenbus_client.c,v 1.15 2020/04/07 13:38:50 jdolecek Exp $ */
 /******************************************************************************
  * Client-facing interface for the Xenbus driver.  In other words, the
  * interface between the Xenbus and the device-specific code, be it the
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xenbus_client.c,v 1.14 2019/11/10 21:16:34 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xenbus_client.c,v 1.15 2020/04/07 13:38:50 jdolecek Exp $");
 
 #if 0
 #define DPRINTK(fmt, args...) \
@@ -51,7 +51,7 @@
 #include <xen/granttables.h>
 
 
-int
+static int
 xenbus_watch_path(struct xenbus_device *dev, char *path,
                      struct xenbus_watch *watch, 
                      void (*callback)(struct xenbus_watch *,



Home | Main Index | Thread Index | Old Index