Module Name:    src
Committed By:   msaitoh
Date:           Mon Jul 27 15:45:20 UTC 2015

Modified Files:
        src/sys/arch/x86/pci: pci_ranges.c pciide_machdep.c
        src/sys/arch/x86/x86: errata.c ioapic.c lapic.c

Log Message:
 KNF.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/x86/pci/pci_ranges.c
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/x86/pci/pciide_machdep.c
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/x86/x86/errata.c
cvs rdiff -u -r1.51 -r1.52 src/sys/arch/x86/x86/ioapic.c
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/x86/x86/lapic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/pci/pci_ranges.c
diff -u src/sys/arch/x86/pci/pci_ranges.c:1.4 src/sys/arch/x86/pci/pci_ranges.c:1.5
--- src/sys/arch/x86/pci/pci_ranges.c:1.4	Sat Oct 27 17:18:14 2012
+++ src/sys/arch/x86/pci/pci_ranges.c	Mon Jul 27 15:45:20 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: pci_ranges.c,v 1.4 2012/10/27 17:18:14 chs Exp $	*/
+/*	$NetBSD: pci_ranges.c,v 1.5 2015/07/27 15:45:20 msaitoh Exp $	*/
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_ranges.c,v 1.4 2012/10/27 17:18:14 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_ranges.c,v 1.5 2015/07/27 15:45:20 msaitoh Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -243,8 +243,10 @@ io_range_extend_by_win(struct range_infe
 		r[1].r_ofs = ofshigh;
 		r[1].r_val = iohigh;
 
-		baseh = (iohigh >> PCI_BRIDGE_IOHIGH_BASE_SHIFT) & PCI_BRIDGE_IOHIGH_BASE_MASK;
-		limith = (iohigh >> PCI_BRIDGE_IOHIGH_LIMIT_SHIFT) & PCI_BRIDGE_IOHIGH_LIMIT_MASK;
+		baseh = (iohigh >> PCI_BRIDGE_IOHIGH_BASE_SHIFT)
+		    & PCI_BRIDGE_IOHIGH_BASE_MASK;
+		limith = (iohigh >> PCI_BRIDGE_IOHIGH_LIMIT_SHIFT)
+		    & PCI_BRIDGE_IOHIGH_LIMIT_MASK;
 
 		baser |= baseh << 4;
 		limitr |= limith << 4;
@@ -385,8 +387,8 @@ mmio_range_extend(struct range_infer_ctx
 }
 
 static bool
-mmio_range_extend_by_bar(struct range_infer_ctx *ric, int bus, int dev, int fun,
-    int ofs, pcireg_t curbar, pcireg_t sizebar)
+mmio_range_extend_by_bar(struct range_infer_ctx *ric, int bus, int dev,
+    int fun, int ofs, pcireg_t curbar, pcireg_t sizebar)
 {
 	int type;
 	bool prefetchable;

Index: src/sys/arch/x86/pci/pciide_machdep.c
diff -u src/sys/arch/x86/pci/pciide_machdep.c:1.14 src/sys/arch/x86/pci/pciide_machdep.c:1.15
--- src/sys/arch/x86/pci/pciide_machdep.c:1.14	Mon Apr 27 06:51:40 2015
+++ src/sys/arch/x86/pci/pciide_machdep.c	Mon Jul 27 15:45:20 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: pciide_machdep.c,v 1.14 2015/04/27 06:51:40 knakahara Exp $	*/
+/*	$NetBSD: pciide_machdep.c,v 1.15 2015/07/27 15:45:20 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 1998 Christopher G. Demetriou.  All rights reserved.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pciide_machdep.c,v 1.14 2015/04/27 06:51:40 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pciide_machdep.c,v 1.15 2015/07/27 15:45:20 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -93,7 +93,8 @@ pciide_machdep_compat_intr_establish(dev
 }
 
 void
-pciide_machdep_compat_intr_disestablish(device_t dev, pci_chipset_tag_t pc, int chan, void *cookie)
+pciide_machdep_compat_intr_disestablish(device_t dev, pci_chipset_tag_t pc,
+    int chan, void *cookie)
 {
 	isa_intr_disestablish(NULL, cookie);
 	return;

Index: src/sys/arch/x86/x86/errata.c
diff -u src/sys/arch/x86/x86/errata.c:1.21 src/sys/arch/x86/x86/errata.c:1.22
--- src/sys/arch/x86/x86/errata.c:1.21	Thu Mar 21 13:22:37 2013
+++ src/sys/arch/x86/x86/errata.c	Mon Jul 27 15:45:20 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: errata.c,v 1.21 2013/03/21 13:22:37 christos Exp $	*/
+/*	$NetBSD: errata.c,v 1.22 2015/07/27 15:45:20 msaitoh Exp $	*/
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: errata.c,v 1.21 2013/03/21 13:22:37 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: errata.c,v 1.22 2015/07/27 15:45:20 msaitoh Exp $");
 
 #include <sys/types.h>
 #include <sys/systm.h>
@@ -375,9 +375,9 @@ x86_errata(void)
 
 	if (upgrade && !again) {
 		again = 1;
-		aprint_normal_dev(ci->ci_dev, "WARNING: errata present, BIOS upgrade "
-		    "may be\n");
-		aprint_normal_dev(ci->ci_dev, "WARNING: necessary to ensure reliable "
-		    "operation\n");
+		aprint_normal_dev(ci->ci_dev, "WARNING: errata present,"
+		    " BIOS upgrade may be\n");
+		aprint_normal_dev(ci->ci_dev, "WARNING: necessary to ensure"
+		    " reliable operation\n");
 	}
 }

Index: src/sys/arch/x86/x86/ioapic.c
diff -u src/sys/arch/x86/x86/ioapic.c:1.51 src/sys/arch/x86/x86/ioapic.c:1.52
--- src/sys/arch/x86/x86/ioapic.c:1.51	Fri Jul 17 06:41:18 2015
+++ src/sys/arch/x86/x86/ioapic.c	Mon Jul 27 15:45:20 2015
@@ -1,4 +1,4 @@
-/* 	$NetBSD: ioapic.c,v 1.51 2015/07/17 06:41:18 msaitoh Exp $	*/
+/* 	$NetBSD: ioapic.c,v 1.52 2015/07/27 15:45:20 msaitoh Exp $	*/
 
 /*-
  * Copyright (c) 2000, 2009 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ioapic.c,v 1.51 2015/07/17 06:41:18 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ioapic.c,v 1.52 2015/07/27 15:45:20 msaitoh Exp $");
 
 #include "opt_ddb.h"
 
@@ -149,7 +149,6 @@ ioapic_read_ul(struct ioapic_softc *sc,i
 	val = *sc->sc_data;
 
 	return val;
-	
 }
 
 static inline  void

Index: src/sys/arch/x86/x86/lapic.c
diff -u src/sys/arch/x86/x86/lapic.c:1.50 src/sys/arch/x86/x86/lapic.c:1.51
--- src/sys/arch/x86/x86/lapic.c:1.50	Fri Jul 17 06:41:18 2015
+++ src/sys/arch/x86/x86/lapic.c	Mon Jul 27 15:45:20 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: lapic.c,v 1.50 2015/07/17 06:41:18 msaitoh Exp $	*/
+/*	$NetBSD: lapic.c,v 1.51 2015/07/27 15:45:20 msaitoh Exp $	*/
 
 /*-
  * Copyright (c) 2000, 2008 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lapic.c,v 1.50 2015/07/17 06:41:18 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lapic.c,v 1.51 2015/07/27 15:45:20 msaitoh Exp $");
 
 #include "opt_ddb.h"
 #include "opt_mpbios.h"		/* for MPDEBUG */
@@ -411,7 +411,7 @@ lapic_calibrate_timer(struct cpu_info *c
 		/*
 		 * Compute delay in cycles for likely short delays in usec.
 		 */
-		for (i=0; i<26; i++)
+		for (i = 0; i < 26; i++)
 			lapic_delaytab[i] = (lapic_frac_cycle_per_usec * i) >>
 			    32;
 

Reply via email to