Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/postinstall Nix trailing whitespace.



details:   https://anonhg.NetBSD.org/src/rev/1d8171ca333e
branches:  trunk
changeset: 934953:1d8171ca333e
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Jun 20 18:30:53 2020 +0000

description:
Nix trailing whitespace.

diffstat:

 sys/dev/raidframe/rf_netbsdkintf.c  |  72 ++++++++++++++++++------------------
 sys/kern/subr_vmem.c                |   8 ++--
 usr.sbin/postinstall/postinstall.in |  12 +++---
 3 files changed, 46 insertions(+), 46 deletions(-)

diffs (truncated from 358 to 300 lines):

diff -r 70af0474285c -r 1d8171ca333e sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c        Sat Jun 20 15:48:19 2020 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c        Sat Jun 20 18:30:53 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_netbsdkintf.c,v 1.384 2020/06/19 19:29:39 jdolecek Exp $    */
+/*     $NetBSD: rf_netbsdkintf.c,v 1.385 2020/06/20 18:36:27 riastradh Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2008-2011 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
  ***********************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.384 2020/06/19 19:29:39 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.385 2020/06/20 18:36:27 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_raid_autoconfig.h"
@@ -192,7 +192,7 @@
 static void raid_attach(device_t, device_t, void *);
 static int raid_detach(device_t, int);
 
-static int raidread_component_area(dev_t, struct vnode *, void *, size_t, 
+static int raidread_component_area(dev_t, struct vnode *, void *, size_t,
     daddr_t, daddr_t);
 static int raidwrite_component_area(dev_t, struct vnode *, void *, size_t,
     daddr_t, daddr_t, int);
@@ -379,7 +379,7 @@
        return sc;
 }
 
-static void 
+static void
 raidput(struct raid_softc *sc) {
        mutex_enter(&raid_lock);
        LIST_REMOVE(sc, sc_link);
@@ -586,13 +586,13 @@
                DPRINTF("%s: many roots=%d, %p\n", __func__, num_root,
                    booted_device);
 
-               /* 
+               /*
                 * Maybe the MD code can help. If it cannot, then
                 * setroot() will discover that we have no
                 * booted_device and will ask the user if nothing was
-                * hardwired in the kernel config file 
+                * hardwired in the kernel config file
                 */
-               if (booted_device == NULL) 
+               if (booted_device == NULL)
                        return;
 
                num_root = 0;
@@ -679,7 +679,7 @@
        raidPtr = &rs->sc_r;
 
        /* we only support dumping to RAID 1 sets */
-       if (raidPtr->Layout.numDataCol != 1 || 
+       if (raidPtr->Layout.numDataCol != 1 ||
            raidPtr->Layout.numParityCol != 1)
                return EINVAL;
 
@@ -688,7 +688,7 @@
 
        /* figure out what device is alive.. */
 
-       /* 
+       /*
           Look for a component to dump to.  The preference for the
           component to dump to is as follows:
           1) the first component
@@ -705,8 +705,8 @@
                        break;
                }
        }
-       
-       /* 
+
+       /*
           At this point we have possibly selected a live component.
           If we didn't find a live ocmponent, we now check to see
           if there is a relevant spared component.
@@ -724,7 +724,7 @@
                                }
                        }
                        if (scol == 0) {
-                               /* 
+                               /*
                                   We must have found a spared first
                                   component!  We'll take that over
                                   anything else found so far.  (We
@@ -740,17 +740,17 @@
                                dumpto = sparecol;
                                break;
                        } else if (scol != -1) {
-                               /* 
-                                  Must be a spared second component.  
-                                  We'll dump to that if we havn't found 
-                                  anything else so far. 
+                               /*
+                                  Must be a spared second component.
+                                  We'll dump to that if we havn't found
+                                  anything else so far.
                                */
                                if (dumpto == -1)
                                        dumpto = sparecol;
                        }
                }
        }
-       
+
        if (dumpto == -1) {
                /* we couldn't find any live components to dump to!?!?
                 */
@@ -764,12 +764,12 @@
                goto out;
        }
 
-       error = (*bdev->d_dump)(raidPtr->Disks[dumpto].dev, 
+       error = (*bdev->d_dump)(raidPtr->Disks[dumpto].dev,
                                blkno, va, nblk * raidPtr->bytesPerSector);
-       
+
 out:
        raidunlock(rs);
-               
+
        return error;
 }
 
@@ -873,7 +873,7 @@
                /* free the pseudo device attach bits */
                cf = device_cfdata(dksc->sc_dev);
                error = config_detach(dksc->sc_dev, 0);
-               if (error == 0) 
+               if (error == 0)
                        free(cf, M_RAIDFRAME);
        } else if (do_put) {
                raidput(rs);
@@ -1298,7 +1298,7 @@
                raidflush_component_label(raidPtr, column);
                /* XXXjld what about the spares? */
        }
-       
+
        return 0;
 }
 
@@ -1747,7 +1747,7 @@
        /*
         * Add support for "regular" device ioctls here.
         */
-       
+
        switch (cmd) {
        case DIOCGCACHE:
                retcode = rf_get_component_caches(raidPtr, (int *)data);
@@ -2028,7 +2028,7 @@
                        (int) queue->raidPtr->logBytesPerSector));
 
                /*
-                * XXX: drop lock here since this can block at 
+                * XXX: drop lock here since this can block at
                 * least with backing SCSI devices.  Retake it
                 * to minimize fuss with calling interfaces.
                 */
@@ -2085,7 +2085,7 @@
                if (((queue->raidPtr->Disks[queue->col].status ==
                      rf_ds_optimal) ||
                     (queue->raidPtr->Disks[queue->col].status ==
-                     rf_ds_used_spare)) && 
+                     rf_ds_used_spare)) &&
                     (queue->raidPtr->numFailures <
                      queue->raidPtr->Layout.map->faultsTolerated)) {
                        printf("raid%d: IO Error (%d). Marking %s as failed.\n",
@@ -2265,7 +2265,7 @@
        KASSERT(raidPtr->bytesPerSector);
        return raidread_component_label(raidPtr->bytesPerSector,
            raidPtr->Disks[col].dev,
-           raidPtr->raid_cinfo[col].ci_vp, 
+           raidPtr->raid_cinfo[col].ci_vp,
            &raidPtr->raid_cinfo[col].ci_label);
 }
 
@@ -2295,7 +2295,7 @@
 raidread_component_label(unsigned secsize, dev_t dev, struct vnode *b_vp,
     RF_ComponentLabel_t *clabel)
 {
-       return raidread_component_area(dev, b_vp, clabel, 
+       return raidread_component_area(dev, b_vp, clabel,
            sizeof(RF_ComponentLabel_t),
            rf_component_info_offset(),
            rf_component_info_size(secsize));
@@ -2352,7 +2352,7 @@
 
 /* ARGSUSED */
 static int
-raidwrite_component_area(dev_t dev, struct vnode *b_vp, void *data, 
+raidwrite_component_area(dev_t dev, struct vnode *b_vp, void *data,
     size_t msize, daddr_t offset, daddr_t dsize, int asyncp)
 {
        struct buf *bp;
@@ -2511,7 +2511,7 @@
                        clabel = raidget_component_label(raidPtr, c);
                        /* make sure status is noted */
                        clabel->status = rf_ds_optimal;
-                       
+
                        /* note what unit we are configured as */
                        if ((rs->sc_cflags & RAIDF_UNIT_CHANGED) == 0)
                                clabel->last_unit = raidPtr->raidid;
@@ -2708,14 +2708,14 @@
     unsigned secsize)
 {
        int good_one = 0;
-       RF_ComponentLabel_t *clabel; 
+       RF_ComponentLabel_t *clabel;
        RF_AutoConfig_t *ac;
 
        clabel = malloc(sizeof(RF_ComponentLabel_t), M_RAIDFRAME, M_WAITOK);
 
        if (!raidread_component_label(secsize, dev, vp, clabel)) {
                /* Got the label.  Does it look reasonable? */
-               if (rf_reasonable_label(clabel, numsecs) && 
+               if (rf_reasonable_label(clabel, numsecs) &&
                    (rf_component_label_partitionsize(clabel) <= size)) {
 #ifdef DEBUG
                        printf("Component on: %s: %llu\n",
@@ -2862,7 +2862,7 @@
                                        vput(vp);
                                        continue;
                                }
-                                       
+
                                VOP_UNLOCK(vp);
                                ac_list = rf_get_component(ac_list, dev, vp,
                                    device_xname(dv), dkw.dkw_size, numsecs, secsize);
@@ -3622,7 +3622,7 @@
        int c;
        int error;
        int dkwhole = 0, dkpart;
-       
+
        for (c = 0; c < raidPtr->numCol + raidPtr->numSpare; c++) {
                /*
                 * Check any non-dead disk, even when currently being
@@ -3654,7 +3654,7 @@
        return 0;
 }
 
-/* 
+/*
  * Implement forwarding of the DIOCCACHESYNC ioctl to each of the components.
  * We end up returning whatever error was returned by the first cache flush
  * that fails.
@@ -3666,11 +3666,11 @@
        int c, sparecol;
        int e,error;
        int force = 1;
-       
+
        error = 0;
        for (c = 0; c < raidPtr->numCol; c++) {
                if (raidPtr->Disks[c].status == rf_ds_optimal) {
-                       e = VOP_IOCTL(raidPtr->raid_cinfo[c].ci_vp, DIOCCACHESYNC, 
+                       e = VOP_IOCTL(raidPtr->raid_cinfo[c].ci_vp, DIOCCACHESYNC,
                                          &force, FWRITE, NOCRED);
                        if (e) {
                                if (e != ENODEV)
diff -r 70af0474285c -r 1d8171ca333e sys/kern/subr_vmem.c
--- a/sys/kern/subr_vmem.c      Sat Jun 20 15:48:19 2020 +0000
+++ b/sys/kern/subr_vmem.c      Sat Jun 20 18:30:53 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_vmem.c,v 1.104 2020/06/16 01:29:00 thorpej Exp $  */
+/*     $NetBSD: subr_vmem.c,v 1.105 2020/06/20 18:33:23 riastradh Exp $        */
 
 /*-
  * Copyright (c)2006,2007,2008,2009 YAMAMOTO Takashi,
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_vmem.c,v 1.104 2020/06/16 01:29:00 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_vmem.c,v 1.105 2020/06/20 18:33:23 riastradh Exp $");
 
 #if defined(_KERNEL) && defined(_KERNEL_OPT)
 #include "opt_ddb.h"
@@ -172,7 +172,7 @@
 /*
  * BT_RESERVE calculation:
  * we allocate memory for boundry tags with vmem; therefore we have
- * to keep a reserve of bts used to allocated memory for bts. 
+ * to keep a reserve of bts used to allocated memory for bts.
  * This reserve is 4 for each arena involved in allocating vmems memory.
  * BT_MAXFREE: don't cache excessive counts of bts in arenas
  */
@@ -1325,7 +1325,7 @@
        KASSERT(bt->bt_start == addr);
        KASSERT(bt->bt_size == vmem_roundup_size(vm, size) ||
            bt->bt_size - vmem_roundup_size(vm, size) <= vm->vm_quantum_mask);



Home | Main Index | Thread Index | Old Index