MIPS: fix typos in comments
Subsystems (7)
PATCH 1/1 MIPS: fix typos in comments
Various spelling mistakes in comments.
Detected with the help of Coccinelle.
Signed-off-by Julia Lawall <[email protected]>
--- arch/mips/alchemy/common/dbdma.c | 2 +- arch/mips/cavium-octeon/executive/cvmx-bootmem.c | 2 +- arch/mips/cavium-octeon/executive/cvmx-pko.c | 2 +- arch/mips/cavium-octeon/octeon-irq.c | 2 +- arch/mips/cavium-octeon/octeon-usb.c | 2 +- arch/mips/dec/ioasic-irq.c | 4 ++-- arch/mips/dec/setup.c | 2 +- arch/mips/fw/arc/memory.c | 2 +- arch/mips/jazz/irq.c | 2 +- arch/mips/kernel/cmpxchg.c | 2 +- arch/mips/kernel/cpu-probe.c | 2 +- arch/mips/kernel/idle.c | 2 +- arch/mips/kernel/perf_event_mipsxx.c | 2 +- arch/mips/kvm/tlb.c | 2 +- arch/mips/net/bpf_jit_comp32.c | 2 +- arch/mips/pci/pcie-octeon.c | 2 +- arch/mips/pic32/pic32mzda/config.c | 2 +- arch/mips/tools/loongson3-llsc-check.c | 2 +- arch/mips/txx9/generic/pci.c | 2 +- 19 files changed, 20 insertions(+), 20 deletions(-)
arch/mips/kernel/perf_event_mipsxx.c +1 -1
@@ -329,7 +329,7 @@ static int mipsxx_pmu_alloc_counter(struct cpu_hw_events *cpuc,for (i = mipspmu.num_counters -1 ; i >=0 ; i--) {/* * Note that some MIPS perf events can be counted by both -* even and odd counters, wheresas many other are only by +* even and odd counters, whereas many other are only by * even _or_ odd counters. This introduces an issue that * when the former kind of event takes the counter the * latter kind of event wants to use, then the "counter
arch/mips/kvm/tlb.c +1 -1
@@ -153,7 +153,7 @@ EXPORT_SYMBOL_GPL(kvm_vz_host_tlb_inv);* kvm_vz_guest_tlb_lookup() - Lookup a guest VZ TLB mapping. * @vcpu: KVM VCPU pointer. * @gpa: Guest virtual address in a TLB mapped guest segment. -* @gpa: Ponter to output guest physical address it maps to. +* @gpa: Pointer to output guest physical address it maps to. * * Converts a guest virtual address in a guest TLB mapped segment to a guest * physical address, by probing the guest TLB.
arch/mips/alchemy/common/dbdma.c +1 -1
@@ -574,7 +574,7 @@ u32 au1xxx_dbdma_ring_alloc(u32 chanid, int entries) dp++; } -/* Make last descrptor point to the first. */ +/* Make last descriptor point to the first. */ dp--; dp->dscr_nxtptr =DSCR_NXTPTR (virt_to_phys (ctp->chan_desc_base)); ctp->get_ptr = ctp->put_ptr = ctp->cur_ptr = ctp->chan_desc_base;
arch/mips/cavium-octeon/executive/cvmx-bootmem.c +1 -1
@@ -318,7 +318,7 @@ int64_t cvmx_bootmem_phy_alloc(uint64_t req_size, uint64_t address_min, }/* -* Determine if this is an entry that can satisify the +* Determine if this is an entry that can satisfy the * request Check to make sure entry is large enough to * satisfy request. */
arch/mips/cavium-octeon/executive/cvmx-pko.c +1 -1
@@ -377,7 +377,7 @@ cvmx_pko_status_t cvmx_pko_config_port(uint64_t port, uint64_t base_queue,/* * Check to make sure all static priority * queues are contiguous. Also catches some -* cases of static priorites not starting at +* cases of static priorities not starting at * queue 0. */ if (static_priority_end != -1
arch/mips/cavium-octeon/octeon-irq.c +1 -1
@@ -1405,7 +1405,7 @@ static void octeon_irq_init_ciu2_percpu(void)* completed. * * There are 9 registers and 3 IPX levels with strides 0x1000 -* and 0x200 respectivly. Use loops to clear them. +* and 0x200 respectively. Use loops to clear them. */ for (regx =0 ; regx <=0x8000 ; regx +=0x1000 ) {for (ipx =0 ; ipx <=0x400 ; ipx +=0x200 )
arch/mips/cavium-octeon/octeon-usb.c +1 -1
@@ -419,7 +419,7 @@ static int dwc3_octeon_clocks_start(struct device *dev, u64 base)/* Step 5c: Enable SuperSpeed. */ uctl_ctl.s.ref_ssp_en =1 ; -/* Step 5d: Cofngiure PHYs. SKIP */ +/* Step 5d: Configure PHYs. SKIP */ /* Step 6a & 6b: Power up PHYs. */ uctl_ctl.s.hs_power_en =1 ;
arch/mips/fw/arc/memory.c +1 -1
@@ -32,7 +32,7 @@ static phys_addr_t prom_mem_size[MAX_PROM_MEM] __initdata;static unsigned int nr_prom_mem__initdata ;/* -* For ARC firmware memory functions the unit of meassuring memory is always +* For ARC firmware memory functions the unit of measuring memory is always * a 4k page of memory */ #define ARC_PAGE_SHIFT 12
arch/mips/jazz/irq.c +1 -1
@@ -141,7 +141,7 @@ void __init plat_time_init(void)/* * Set clock to 100Hz. * -* The R4030 timer receives an input clock of 1kHz which is divieded by +* The R4030 timer receives an input clock of 1kHz which is divided by * a programmable 4-bit divider. This makes it fairly inflexible. */ r4030_write_reg32 (JAZZ_TIMER_INTERVAL ,9 );
arch/mips/kernel/cmpxchg.c +1 -1
@@ -22,7 +22,7 @@ unsigned long __xchg_small(volatile void *ptr, unsigned long val, unsigned int s/* * Calculate a shift & mask that correspond to the value we wish to -* exchange within the naturally aligned 4 byte integerthat includes +* exchange within the naturally aligned 4 byte integer that includes * it. */ shift = (unsigned long )ptr &0x3 ;
arch/mips/kernel/cpu-probe.c +1 -1
@@ -156,7 +156,7 @@ static inline void check_errata(void)/* * Erratum "RPS May Cause Incorrect Instruction Execution" * This code only handles VPE0, any SMP/RTOS code -* making use of VPE1 will be responsable for that VPE. +* making use of VPE1 will be responsible for that VPE. */ if ((c->processor_id &PRID_REV_MASK ) <=PRID_REV_34K_V1_0_2 )write_c0_config7 (read_c0_config7 () |MIPS_CONF7_RPS );
arch/mips/kernel/idle.c +1 -1
@@ -228,7 +228,7 @@ void __init check_wait(void)break ;/* -* Another rev is incremeting c0_count at a reduced clock +* Another rev is incrementing c0_count at a reduced clock * rate while in WAIT mode. So we basically have the choice * between using the cp0 timer as clocksource or avoiding * the WAIT instruction. Until more details are known,
arch/mips/pci/pcie-octeon.c +1 -1
@@ -1345,7 +1345,7 @@ static int __cvmx_pcie_rc_initialize_gen2(int pcie_port) mem_access_subid.s.esw =1 ;/* Endian-swap for Writes. */ mem_access_subid.s.wtype =0 ;/* "No snoop" and "Relaxed ordering" are not set */ mem_access_subid.s.rtype =0 ;/* "No snoop" and "Relaxed ordering" are not set */ -/* PCIe Adddress Bits <63:34>. */ +/* PCIe Address Bits <63:34>. */ if (OCTEON_IS_MODEL (OCTEON_CN68XX )) mem_access_subid.cn68xx.ba =0 ;else
arch/mips/pic32/pic32mzda/config.c +1 -1
@@ -111,7 +111,7 @@ void __init pic32_config_init(void) pic32_reset_status =readl (pic32_conf_base +PIC32_RCON );writel (-1 ,PIC32_CLR (pic32_conf_base +PIC32_RCON )); -/* Device Inforation */ +/* Device Information */ pr_info ("Device Id: 0x%08x, Device Ver: 0x%04x\n" ,pic32_get_device_id (),pic32_get_device_version ());
arch/mips/tools/loongson3-llsc-check.c +1 -1
@@ -217,7 +217,7 @@ static int check_code(uint64_t pc, uint32_t *code, size_t sz) )/* -* Skip the first instructionm allowing check_ll to look backwards +* Skip the first instruction, allowing check_ll to look backwards * unconditionally. */ advance ();
arch/mips/txx9/generic/pci.c +1 -1
@@ -225,7 +225,7 @@ txx9_alloc_pci_controller(struct pci_controller *pcic,static int __init txx9_arch_pci_init (void ) { -PCIBIOS_MIN_IO =0x8000 ;/* reseve legacy I/O space */ +PCIBIOS_MIN_IO =0x8000 ;/* reserve legacy I/O space */ return 0 ; }arch_initcall (txx9_arch_pci_init);
arch/mips/net/bpf_jit_comp32.c +1 -1
@@ -722,7 +722,7 @@ static void emit_atomic_r32(struct jit_context *ctx, 0, JIT_RESERVED_STACK);/* * Argument 1: dst+off if xchg, otherwise src, passed in register a0 -* Argument 2: src if xchg, othersize dst+off, passed in register a1 +* Argument 2: src if xchg, otherwise dst+off, passed in register a1 */ emit (ctx, move,MIPS_R_T9 , dst);if (code ==BPF_XCHG ) {
arch/mips/dec/ioasic-irq.c +2 -2
@@ -68,13 +68,13 @@ static struct irq_chip ioasic_dma_irq_type = {* I/O ASIC implements two kinds of DMA interrupts, informational and * error interrupts. * -* The formers do not stop DMA and should be cleared as soon as possible +* The former do not stop DMA and should be cleared as soon as possible * so that if they retrigger before the handler has completed, usually as * a side effect of actions taken by the handler, then they are reissued. * These use the `handle_edge_irq' handler that clears the request right * away. * -* The latters stop DMA and do not resume it until the interrupt has been +* The latter stop DMA and do not resume it until the interrupt has been * cleared. This cannot be done until after a corrective action has been * taken and this also means they will not retrigger. Therefore they use * the `handle_fasteoi_irq' handler that only clears the request on the
arch/mips/dec/setup.c +1 -1
@@ -71,7 +71,7 @@ volatile u32 *ioasic_base;EXPORT_SYMBOL (ioasic_base);/* -* IRQ routing and priority tables. Priorites are set as follows: +* IRQ routing and priority tables. Priorities are set as follows: * * KN01 KN230 KN02 KN02-BA KN02-CA KN03 *
Quoted 18 lines · Julia Lawall
Various spelling mistakes in comments.
Detected with the help of Coccinelle.Signed-off-by Julia Lawall <[email protected]>--- arch/mips/alchemy/common/dbdma.c | 2 +- arch/mips/cavium-octeon/executive/cvmx-bootmem.c | 2 +- arch/mips/cavium-octeon/executive/cvmx-pko.c | 2 +- arch/mips/cavium-octeon/octeon-irq.c | 2 +- arch/mips/cavium-octeon/octeon-usb.c | 2 +- arch/mips/dec/ioasic-irq.c | 4 ++-- arch/mips/dec/setup.c | 2 +- arch/mips/fw/arc/memory.c | 2 +- arch/mips/jazz/irq.c | 2 +- arch/mips/kernel/cmpxchg.c | 2 +- arch/mips/kernel/cpu-probe.c | 2 +- arch/mips/kernel/idle.c | 2 +-
Quoted 8 lines
arch/mips/kernel/perf_event_mipsxx.c | 2 +- arch/mips/kvm/tlb.c | 2 +- arch/mips/net/bpf_jit_comp32.c | 2 +- arch/mips/pci/pcie-octeon.c | 2 +- arch/mips/pic32/pic32mzda/config.c | 2 +- arch/mips/tools/loongson3-llsc-check.c | 2 +- arch/mips/txx9/generic/pci.c | 2 +- 19 files changed, 20 insertions(+), 20 deletions(-)
applied to mips-next.
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]