sparc: Fix typos
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 3 Jan 2024 23:16:05 +0000 (17:16 -0600)
committerAndreas Larsson <andreas@gaisler.com>
Fri, 16 Feb 2024 15:50:25 +0000 (16:50 +0100)
Fix typos, most reported by "codespell arch/sparc".  Only touches
comments, no code changes.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: sparclinux@vger.kernel.org
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Link: https://lore.kernel.org/r/20240103231605.1801364-9-helgaas@kernel.org
20 files changed:
arch/sparc/include/asm/hypervisor.h
arch/sparc/include/asm/ldc.h
arch/sparc/include/asm/mmu_context_64.h
arch/sparc/include/asm/switch_to_64.h
arch/sparc/kernel/irq_64.c
arch/sparc/kernel/kprobes.c
arch/sparc/kernel/ldc.c
arch/sparc/kernel/leon_pci_grpci2.c
arch/sparc/kernel/of_device_64.c
arch/sparc/kernel/pci.c
arch/sparc/kernel/pci_impl.h
arch/sparc/kernel/pci_schizo.c
arch/sparc/kernel/perf_event.c
arch/sparc/kernel/prom_irqtrans.c
arch/sparc/kernel/psycho_common.c
arch/sparc/kernel/signal_32.c
arch/sparc/kernel/signal_64.c
arch/sparc/mm/srmmu.c
arch/sparc/mm/tsb.c
arch/sparc/net/bpf_jit_comp_32.c

index 08650d503cc2b6c8964ef5bc5cdc0eb4a67fe9ae..f220edcf17c7c2b12f0b1a0a639195e659cc33c4 100644 (file)
@@ -430,7 +430,7 @@ unsigned long sun4v_cpu_mondo_send(unsigned long cpu_count,
  * ERRORS:     No errors defined.
  *
  * Return the hypervisor ID handle for the current CPU.  Use by a
- * virtual CPU to discover it's own identity.
+ * virtual CPU to discover its own identity.
  */
 #define HV_FAST_CPU_MYID               0x16
 
@@ -1221,7 +1221,7 @@ unsigned long sun4v_con_write(unsigned long buffer,
  *             EBADALIGNED     software state description is not correctly
  *                             aligned
  *
- * This allows the guest to report it's soft state to the hypervisor.  There
+ * This allows the guest to report its soft state to the hypervisor.  There
  * are two primary components to this state.  The first part states whether
  * the guest software is running or not.  The second containts optional
  * details specific to the software.
@@ -1502,7 +1502,7 @@ struct hv_trap_trace_entry {
  * configuration error of some sort.
  *
  * The dump services provide an opaque buffer into which the
- * hypervisor can place it's internal state in order to assist in
+ * hypervisor can place its internal state in order to assist in
  * debugging such situations.  The contents are opaque and extremely
  * platform and hypervisor implementation specific.  The guest, during
  * a core dump, requests that the hypervisor update any information in
index ca973955ca8611d7c581e355d934d756bc66c8d4..4294738d40be75d51097f9c2d3ac1b54a826a7ac 100644 (file)
@@ -13,7 +13,7 @@ void ldom_power_off(void);
  * or data becomes available on the receive side.
  *
  * For non-RAW links, if the LDC_EVENT_RESET event arrives the
- * driver should reset all of it's internal state and reinvoke
+ * driver should reset all of its internal state and reinvoke
  * ldc_connect() to try and bring the link up again.
  *
  * For RAW links, ldc_connect() is not used.  Instead the driver
index 799e797c5cddc10e5793480a1349ba8786e65da2..08160bf9a0f4181c7e9af61e34de13b368564ca9 100644 (file)
@@ -93,7 +93,7 @@ static inline void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, str
 
        /* We have to be extremely careful here or else we will miss
         * a TSB grow if we switch back and forth between a kernel
-        * thread and an address space which has it's TSB size increased
+        * thread and an address space which has its TSB size increased
         * on another processor.
         *
         * It is possible to play some games in order to optimize the
@@ -118,7 +118,7 @@ static inline void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, str
         *
         * At that point cpu0 continues to use a stale TSB, the one from
         * before the TSB grow performed on cpu1.  cpu1 did not cross-call
-        * cpu0 to update it's TSB because at that point the cpu_vm_mask
+        * cpu0 to update its TSB because at that point the cpu_vm_mask
         * only had cpu1 set in it.
         */
        tsb_context_switch_ctx(mm, CTX_HWBITS(mm->context));
index 14f3c49bfdbc863bc56d4207fd604403c4fa09d8..d93963ff7caa0e21a7624c34ea0a3695a516e6ba 100644 (file)
@@ -15,7 +15,7 @@ do {                                          \
         * for l0/l1.  It will use one for 'next' and the other to hold
         * the output value of 'last'.  'next' is not referenced again
         * past the invocation of switch_to in the scheduler, so we need
-        * not preserve it's value.  Hairy, but it lets us remove 2 loads
+        * not preserve its value.  Hairy, but it lets us remove 2 loads
         * and 2 stores in this critical code path.  -DaveM
         */
 #define switch_to(prev, next, last)                                    \
index 72da2e10e2559ab8ea1dc19c63af917b6ca2a492..5280e325d4d6f1081dc6f5f7748fcaeaf71cb11c 100644 (file)
@@ -980,7 +980,7 @@ void notrace init_irqwork_curcpu(void)
  *
  * On SMP this gets invoked from the CPU trampoline before
  * the cpu has fully taken over the trap table from OBP,
- * and it's kernel stack + %g6 thread register state is
+ * and its kernel stack + %g6 thread register state is
  * not fully cooked yet.
  *
  * Therefore you cannot make any OBP calls, not even prom_printf,
index 535c7b35cb59902e3341989afac750eb497cdd2d..191bbaca9921249d70479d32ee25ef168b11a25a 100644 (file)
@@ -230,7 +230,7 @@ static unsigned long __kprobes relbranch_fixup(u32 insn, struct kprobe *p,
        return regs->tnpc;
 }
 
-/* If INSN is an instruction which writes it's PC location
+/* If INSN is an instruction which writes its PC location
  * into a destination register, fix that up.
  */
 static void __kprobes retpc_fixup(struct pt_regs *regs, u32 insn,
index c0fa3ef6cf016bf155539b71d6e69d0726fb4d1c..7f3cdb6f644d25f479c007a8449e482883c25e7d 100644 (file)
@@ -1854,7 +1854,7 @@ static int read_nonraw(struct ldc_channel *lp, void *buf, unsigned int size)
                         * This seems the best behavior because this allows
                         * a user of the LDC layer to start with a small
                         * RX buffer for ldc_read() calls and use -EMSGSIZE
-                        * as a cue to enlarge it's read buffer.
+                        * as a cue to enlarge its read buffer.
                         */
                        err = -EMSGSIZE;
                        break;
index 60b6bdf7761fb3e9707d0c21fdd5e4347fbed577..282b49d496ea389c6c6733cc953d61ed70fbc7ec 100644 (file)
@@ -586,7 +586,7 @@ static void grpci2_hw_init(struct grpci2_priv *priv)
        REGSTORE(regs->io_map, REGLOAD(regs->io_map) & 0x0000ffff);
 
        /* set 1:1 mapping between AHB -> PCI memory space, for all Masters
-        * Each AHB master has it's own mapping registers. Max 16 AHB masters.
+        * Each AHB master has its own mapping registers. Max 16 AHB masters.
         */
        for (i = 0; i < 16; i++)
                REGSTORE(regs->ahbmst_map[i], priv->pci_area);
index d3842821a5a050290fe02314e04158616af0d3ee..c350c58c7f699972d1d33ee4c14e06e99f64ad05 100644 (file)
@@ -560,7 +560,7 @@ static unsigned int __init build_one_device_irq(struct platform_device *op,
         *
         * If we hit a bus type or situation we cannot handle, we
         * stop and assume that the original IRQ number was in a
-        * format which has special meaning to it's immediate parent.
+        * format which has special meaning to its immediate parent.
         */
        pp = dp->parent;
        ip = NULL;
index f66005ce4cb56a60408d9229d1967cbe39dda8aa..50a0927a84a6fdbdf91b6c997341c7574a6bd175 100644 (file)
@@ -311,7 +311,7 @@ static struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm,
        /* We can't actually use the firmware value, we have
         * to read what is in the register right now.  One
         * reason is that in the case of IDE interfaces the
-        * firmware can sample the value before the the IDE
+        * firmware can sample the value before the IDE
         * interface is programmed into native mode.
         */
        pci_read_config_dword(dev, PCI_CLASS_REVISION, &class);
index f31761f517575d7efa69d344cef61b0a816a4e02..83718876f1d49bc9dd4123789a9671f0d254d00e 100644 (file)
@@ -19,9 +19,9 @@
  * each with one (Sabre) or two (PSYCHO/SCHIZO) PCI bus modules
  * underneath.  Each PCI bus module uses an IOMMU (shared by both
  * PBMs of a controller, or per-PBM), and if a streaming buffer
- * is present, each PCI bus module has it's own. (ie. the IOMMU
+ * is present, each PCI bus module has its own. (ie. the IOMMU
  * might be shared between PBMs, the STC is never shared)
- * Furthermore, each PCI bus module controls it's own autonomous
+ * Furthermore, each PCI bus module controls its own autonomous
  * PCI bus.
  */
 
index 5d8dd49495863dc64d03809373e32887102f7baa..93cd9e5a80997619ed23df7a2d8f2f1844b6f968 100644 (file)
@@ -145,7 +145,7 @@ static void __schizo_check_stc_error_pbm(struct pci_pbm_info *pbm,
 
        /* This is __REALLY__ dangerous.  When we put the
         * streaming buffer into diagnostic mode to probe
-        * it's tags and error status, we _must_ clear all
+        * its tags and error status, we _must_ clear all
         * of the line tag valid bits before re-enabling
         * the streaming buffer.  If any dirty data lives
         * in the STC when we do this, we will end up
@@ -275,7 +275,7 @@ static void schizo_check_iommu_error_pbm(struct pci_pbm_info *pbm,
                       pbm->name, type_string);
 
                /* Put the IOMMU into diagnostic mode and probe
-                * it's TLB for entries with error status.
+                * its TLB for entries with error status.
                 *
                 * It is very possible for another DVMA to occur
                 * while we do this probe, and corrupt the system
index a58ae9c428032be203f5f74de8c8729447f52e2a..f02a283a8e8f052ed6400291db0d085a2c0071f3 100644 (file)
@@ -979,7 +979,7 @@ out:
 
 static void sparc_pmu_start(struct perf_event *event, int flags);
 
-/* On this PMU each PIC has it's own PCR control register.  */
+/* On this PMU each PIC has its own PCR control register.  */
 static void calculate_multiple_pcrs(struct cpu_hw_events *cpuc)
 {
        int i;
index 426bd08cb2ab1053111a4ef33ca24b092311285a..5752bfd73ac0c4a825bbc4fe016ce4276c143717 100644 (file)
@@ -394,7 +394,7 @@ static unsigned int schizo_irq_build(struct device_node *dp,
        iclr = schizo_ino_to_iclr(pbm_regs, ino);
 
        /* On Schizo, no inofixup occurs.  This is because each
-        * INO has it's own IMAP register.  On Psycho and Sabre
+        * INO has its own IMAP register.  On Psycho and Sabre
         * there is only one IMAP register for each PCI slot even
         * though four different INOs can be generated by each
         * PCI slot.
index 5ee74b4c0cf40e3e920ddcb0834b2ca100592bbe..4557ef18f3712261b74204f74a20a7738670a706 100644 (file)
@@ -50,7 +50,7 @@ static void psycho_check_stc_error(struct pci_pbm_info *pbm)
        spin_lock(&stc_buf_lock);
 
        /* This is __REALLY__ dangerous.  When we put the streaming
-        * buffer into diagnostic mode to probe it's tags and error
+        * buffer into diagnostic mode to probe its tags and error
         * status, we _must_ clear all of the line tag valid bits
         * before re-enabling the streaming buffer.  If any dirty data
         * lives in the STC when we do this, we will end up
index 89b93c7136e708581a916cf96063faafb9349e3e..478014d2e59ba95d2a392a105bcfc91a46b5f4ab 100644 (file)
@@ -473,7 +473,7 @@ static void do_signal(struct pt_regs *regs, unsigned long orig_i0)
         *
         * %g7 is used as the "thread register".   %g6 is not used in
         * any fixed manner.  %g6 is used as a scratch register and
-        * a compiler temporary, but it's value is never used across
+        * a compiler temporary, but its value is never used across
         * a system call.  Therefore %g6 is usable for orig_i0 storage.
         */
        if (pt_regs_is_syscall(regs) && (regs->psr & PSR_C))
index b4e410976e0d5c1c8414ff3334a7ec84cc745f22..2d64566a1f88a8ec652ba6e4c3fe12986324cf6a 100644 (file)
@@ -494,7 +494,7 @@ static void do_signal(struct pt_regs *regs, unsigned long orig_i0)
         *
         * %g7 is used as the "thread register".   %g6 is not used in
         * any fixed manner.  %g6 is used as a scratch register and
-        * a compiler temporary, but it's value is never used across
+        * a compiler temporary, but its value is never used across
         * a system call.  Therefore %g6 is usable for orig_i0 storage.
         */
        if (pt_regs_is_syscall(regs) &&
index 8393faa3e596e4d29a3a0aaee4d435fd5c1ab755..852085ada3689d9e09f948c01f6d4e3d76d6340c 100644 (file)
@@ -1513,7 +1513,7 @@ static void __init init_viking(void)
 
                /*
                 * We need this to make sure old viking takes no hits
-                * on it's cache for dma snoops to workaround the
+                * on its cache for dma snoops to workaround the
                 * "load from non-cacheable memory" interrupt bug.
                 * This is only necessary because of the new way in
                 * which we use the IOMMU.
index 6acd8a4c1e2aff00417a5ad97b847b89be2cfd2b..5fe52a64c7e70dff770a5b7046d4b2f9e61d101e 100644 (file)
@@ -385,7 +385,7 @@ static unsigned long tsb_size_to_rss_limit(unsigned long new_size)
  * will not trigger any longer.
  *
  * The TSB can be anywhere from 8K to 1MB in size, in increasing powers
- * of two.  The TSB must be aligned to it's size, so f.e. a 512K TSB
+ * of two.  The TSB must be aligned to its size, so f.e. a 512K TSB
  * must be 512K aligned.  It also must be physically contiguous, so we
  * cannot use vmalloc().
  *
index a74e5004c6c89c8267b0014cf78a72ae66ee4f89..da2df1e84ed413e7cf92172aafca92d2bfed6229 100644 (file)
@@ -300,7 +300,7 @@ do {        *prog++ = BR_OPC | WDISP22(OFF);                \
  *
  * The most common case is to emit a branch at the end of such
  * a code sequence.  So this would be two instructions, the
- * branch and it's delay slot.
+ * branch and its delay slot.
  *
  * Therefore by default the branch emitters calculate the branch
  * offset field as:
@@ -309,13 +309,13 @@ do {      *prog++ = BR_OPC | WDISP22(OFF);                \
  *
  * This "addrs[i] - 8" is the address of the branch itself or
  * what "." would be in assembler notation.  The "8" part is
- * how we take into consideration the branch and it's delay
+ * how we take into consideration the branch and its delay
  * slot mentioned above.
  *
  * Sometimes we need to emit a branch earlier in the code
  * sequence.  And in these situations we adjust "destination"
  * to accommodate this difference.  For example, if we needed
- * to emit a branch (and it's delay slot) right before the
+ * to emit a branch (and its delay slot) right before the
  * final instruction emitted for a BPF opcode, we'd use
  * "destination + 4" instead of just plain "destination" above.
  *