From 766e6e09f107a4c90150c60bbc96705aa48f236c Mon Sep 17 00:00:00 2001 From: msaitoh Date: Mon, 27 Jul 2015 15:45:20 +0000 Subject: [PATCH] KNF. --- sys/arch/x86/pci/pci_ranges.c | 14 ++++++++------ sys/arch/x86/pci/pciide_machdep.c | 7 ++++--- sys/arch/x86/x86/errata.c | 12 ++++++------ sys/arch/x86/x86/ioapic.c | 5 ++--- sys/arch/x86/x86/lapic.c | 6 +++--- 5 files changed, 23 insertions(+), 21 deletions(-) diff --git a/sys/arch/x86/pci/pci_ranges.c b/sys/arch/x86/pci/pci_ranges.c index 03dcd452f716..1a77b37afaff 100644 --- a/sys/arch/x86/pci/pci_ranges.c +++ b/sys/arch/x86/pci/pci_ranges.c @@ -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 -__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 #include @@ -243,8 +243,10 @@ io_range_extend_by_win(struct range_infer_ctx *ric, 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 *ric, const pci_alloc_t *pal) } 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; diff --git a/sys/arch/x86/pci/pciide_machdep.c b/sys/arch/x86/pci/pciide_machdep.c index d3ee294e7b1b..c6a101d2920f 100644 --- a/sys/arch/x86/pci/pciide_machdep.c +++ b/sys/arch/x86/pci/pciide_machdep.c @@ -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 -__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 #include @@ -93,7 +93,8 @@ pciide_machdep_compat_intr_establish(device_t 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; diff --git a/sys/arch/x86/x86/errata.c b/sys/arch/x86/x86/errata.c index 6d3d114a23a8..8d9fabd2bd97 100644 --- a/sys/arch/x86/x86/errata.c +++ b/sys/arch/x86/x86/errata.c @@ -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 -__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 #include @@ -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"); } } diff --git a/sys/arch/x86/x86/ioapic.c b/sys/arch/x86/x86/ioapic.c index 8fcfb699c747..35e3db0f1830 100644 --- a/sys/arch/x86/x86/ioapic.c +++ b/sys/arch/x86/x86/ioapic.c @@ -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 -__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,int regid) val = *sc->sc_data; return val; - } static inline void diff --git a/sys/arch/x86/x86/lapic.c b/sys/arch/x86/x86/lapic.c index 9414a98e8632..593832946aab 100644 --- a/sys/arch/x86/x86/lapic.c +++ b/sys/arch/x86/x86/lapic.c @@ -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 -__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 *ci) /* * 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;