Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/xen xbdback(4): Nix trailing whitespace.



details:   https://anonhg.NetBSD.org/src/rev/f57516a8a07f
branches:  trunk
changeset: 373725:f57516a8a07f
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Feb 25 00:35:28 2023 +0000

description:
xbdback(4): Nix trailing whitespace.

No functional change intended.

diffstat:

 sys/arch/xen/xen/xbdback_xenbus.c |  28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)

diffs (126 lines):

diff -r 5d8d2ae15d77 -r f57516a8a07f sys/arch/xen/xen/xbdback_xenbus.c
--- a/sys/arch/xen/xen/xbdback_xenbus.c Sat Feb 25 00:35:15 2023 +0000
+++ b/sys/arch/xen/xen/xbdback_xenbus.c Sat Feb 25 00:35:28 2023 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: xbdback_xenbus.c,v 1.102 2023/02/25 00:33:15 riastradh Exp $      */
+/*      $NetBSD: xbdback_xenbus.c,v 1.103 2023/02/25 00:35:28 riastradh Exp $      */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xbdback_xenbus.c,v 1.102 2023/02/25 00:33:15 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xbdback_xenbus.c,v 1.103 2023/02/25 00:35:28 riastradh Exp $");
 
 #include <sys/buf.h>
 #include <sys/condvar.h>
@@ -105,7 +105,7 @@
  * event channels, biointr() soft interrupts, xenbus commands), the xbdi_lock
  * mutex is used to protect specific elements of the xbdback instance from
  * concurrent access: thread status and ring access (when pushing responses).
- * 
+ *
  * Here's how the call graph is supposed to be for a single I/O:
  *
  * xbdback_co_main()
@@ -125,7 +125,7 @@
  *        |                     |
  *        |                     xbdback_co_main_incr() -> xbdback_co_main_loop()
  *        |
- *     xbdback_co_do_io() 
+ *     xbdback_co_do_io()
  *        |
  *     xbdback_co_main_incr() -> xbdback_co_main_loop()
  */
@@ -210,7 +210,7 @@
        vaddr_t xbdi_ring_va; /* to unmap the ring */
        /* disconnection must be postponed until all I/O is done */
        int xbdi_refcnt;
-       /* 
+       /*
         * State for I/O processing/coalescing follows; this has to
         * live here instead of on the stack because of the
         * continuation-ness (see above).
@@ -361,7 +361,7 @@
        mutex_init(&xbdi->xbdi_lock, MUTEX_DEFAULT, IPL_BIO);
        cv_init(&xbdi->xbdi_cv, xbdi->xbdi_name);
 
-       xbusd->xbusd_u.b.b_cookie = xbdi;       
+       xbusd->xbusd_u.b.b_cookie = xbdi;
        xbusd->xbusd_u.b.b_detach = xbdback_xenbus_destroy;
        xbusd->xbusd_otherend_changed = xbdback_frontend_changed;
        xbdi->xbdi_xbusd = xbusd;
@@ -615,7 +615,7 @@
 static void
 xbdback_disconnect(struct xbdback_instance *xbdi)
 {
-       
+
        mutex_enter(&xbdi->xbdi_lock);
        if (xbdi->xbdi_status == DISCONNECTED) {
                mutex_exit(&xbdi->xbdi_lock);
@@ -759,7 +759,7 @@
                /* If both Ioctls failed set device size to 0 and return */
                printf("xbdback %s: can't DIOCGWEDGEINFO device "
                    "0x%"PRIx64": %d\n", xbusd->xbusd_path,
-                   xbdi->xbdi_dev, err);               
+                   xbdi->xbdi_dev, err);
                xbdi->xbdi_size = xbdi->xbdi_dev = 0;
                vn_close(xbdi->xbdi_vp, FREAD, NOCRED);
                xbdi->xbdi_vp = NULL;
@@ -901,7 +901,7 @@
                                cv_wait(&xbdi->xbdi_cv, &xbdi->xbdi_lock);
                                continue;
                        }
-                       
+
                        /* All I/Os should have been processed by now,
                         * xbdi_refcnt should drop to 0 */
                        xbdi_put(xbdi);
@@ -941,7 +941,7 @@
  * the ring.
  */
 static void *
-xbdback_co_main_loop(struct xbdback_instance *xbdi, void *obj __unused) 
+xbdback_co_main_loop(struct xbdback_instance *xbdi, void *obj __unused)
 {
        blkif_request_t *req, *reqn;
        blkif_x86_32_request_t *req32;
@@ -1115,7 +1115,7 @@
  */
 static void *
 xbdback_co_io(struct xbdback_instance *xbdi, void *obj __unused)
-{      
+{
        int i, error;
        blkif_request_t *req, *reqn;
        blkif_x86_32_request_t *req32;
@@ -1242,7 +1242,7 @@
 
        xbdi_get(xbdi);
        xbdi->xbdi_pendingreqs++;
-       
+
        req = &xbdi->xbdi_xen_req;
        xbd_io = obj;
        memset(xbd_io, 0, sizeof(*xbd_io));
@@ -1432,7 +1432,7 @@
                status = BLKIF_RSP_ERROR;
        } else
                status = BLKIF_RSP_OKAY;
-       
+
        xbdback_send_reply(xbdi, xbd_io->xio_id, xbd_io->xio_operation, status);
 
        xbdi_put(xbdi);
@@ -1536,7 +1536,7 @@
        xbd_io->xio_vaddr = xbd_io->xio_xv->xv_vaddr;
 
        error = xen_shm_map(xbd_io->xio_nrma, xbdi->xbdi_domid,
-           xbd_io->xio_gref, xbd_io->xio_vaddr, xbd_io->xio_gh, 
+           xbd_io->xio_gref, xbd_io->xio_vaddr, xbd_io->xio_gh,
            (xbd_io->xio_operation == BLKIF_OP_WRITE) ? XSHM_RO : 0);
 
        switch(error) {



Home | Main Index | Thread Index | Old Index