Skip to content

Commit 3cc208f

Browse files
bjorn-helgaasandreas-gaisler
authored andcommitted
sparc: Fix typos
Fix typos, most reported by "codespell arch/sparc". Only touches comments, no code changes. Signed-off-by: Bjorn Helgaas <[email protected]> Cc: [email protected] Reviewed-by: Randy Dunlap <[email protected]> Signed-off-by: Andreas Larsson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 0f19919 commit 3cc208f

20 files changed

+27
-27
lines changed

arch/sparc/include/asm/hypervisor.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ unsigned long sun4v_cpu_mondo_send(unsigned long cpu_count,
430430
* ERRORS: No errors defined.
431431
*
432432
* Return the hypervisor ID handle for the current CPU. Use by a
433-
* virtual CPU to discover it's own identity.
433+
* virtual CPU to discover its own identity.
434434
*/
435435
#define HV_FAST_CPU_MYID 0x16
436436

@@ -1221,7 +1221,7 @@ unsigned long sun4v_con_write(unsigned long buffer,
12211221
* EBADALIGNED software state description is not correctly
12221222
* aligned
12231223
*
1224-
* This allows the guest to report it's soft state to the hypervisor. There
1224+
* This allows the guest to report its soft state to the hypervisor. There
12251225
* are two primary components to this state. The first part states whether
12261226
* the guest software is running or not. The second containts optional
12271227
* details specific to the software.
@@ -1502,7 +1502,7 @@ struct hv_trap_trace_entry {
15021502
* configuration error of some sort.
15031503
*
15041504
* The dump services provide an opaque buffer into which the
1505-
* hypervisor can place it's internal state in order to assist in
1505+
* hypervisor can place its internal state in order to assist in
15061506
* debugging such situations. The contents are opaque and extremely
15071507
* platform and hypervisor implementation specific. The guest, during
15081508
* a core dump, requests that the hypervisor update any information in

arch/sparc/include/asm/ldc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ void ldom_power_off(void);
1313
* or data becomes available on the receive side.
1414
*
1515
* For non-RAW links, if the LDC_EVENT_RESET event arrives the
16-
* driver should reset all of it's internal state and reinvoke
16+
* driver should reset all of its internal state and reinvoke
1717
* ldc_connect() to try and bring the link up again.
1818
*
1919
* For RAW links, ldc_connect() is not used. Instead the driver

arch/sparc/include/asm/mmu_context_64.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static inline void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, str
9393

9494
/* We have to be extremely careful here or else we will miss
9595
* a TSB grow if we switch back and forth between a kernel
96-
* thread and an address space which has it's TSB size increased
96+
* thread and an address space which has its TSB size increased
9797
* on another processor.
9898
*
9999
* 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
118118
*
119119
* At that point cpu0 continues to use a stale TSB, the one from
120120
* before the TSB grow performed on cpu1. cpu1 did not cross-call
121-
* cpu0 to update it's TSB because at that point the cpu_vm_mask
121+
* cpu0 to update its TSB because at that point the cpu_vm_mask
122122
* only had cpu1 set in it.
123123
*/
124124
tsb_context_switch_ctx(mm, CTX_HWBITS(mm->context));

arch/sparc/include/asm/switch_to_64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ do { \
1515
* for l0/l1. It will use one for 'next' and the other to hold
1616
* the output value of 'last'. 'next' is not referenced again
1717
* past the invocation of switch_to in the scheduler, so we need
18-
* not preserve it's value. Hairy, but it lets us remove 2 loads
18+
* not preserve its value. Hairy, but it lets us remove 2 loads
1919
* and 2 stores in this critical code path. -DaveM
2020
*/
2121
#define switch_to(prev, next, last) \

arch/sparc/kernel/irq_64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ void notrace init_irqwork_curcpu(void)
980980
*
981981
* On SMP this gets invoked from the CPU trampoline before
982982
* the cpu has fully taken over the trap table from OBP,
983-
* and it's kernel stack + %g6 thread register state is
983+
* and its kernel stack + %g6 thread register state is
984984
* not fully cooked yet.
985985
*
986986
* Therefore you cannot make any OBP calls, not even prom_printf,

arch/sparc/kernel/kprobes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ static unsigned long __kprobes relbranch_fixup(u32 insn, struct kprobe *p,
230230
return regs->tnpc;
231231
}
232232

233-
/* If INSN is an instruction which writes it's PC location
233+
/* If INSN is an instruction which writes its PC location
234234
* into a destination register, fix that up.
235235
*/
236236
static void __kprobes retpc_fixup(struct pt_regs *regs, u32 insn,

arch/sparc/kernel/ldc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1854,7 +1854,7 @@ static int read_nonraw(struct ldc_channel *lp, void *buf, unsigned int size)
18541854
* This seems the best behavior because this allows
18551855
* a user of the LDC layer to start with a small
18561856
* RX buffer for ldc_read() calls and use -EMSGSIZE
1857-
* as a cue to enlarge it's read buffer.
1857+
* as a cue to enlarge its read buffer.
18581858
*/
18591859
err = -EMSGSIZE;
18601860
break;

arch/sparc/kernel/leon_pci_grpci2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ static void grpci2_hw_init(struct grpci2_priv *priv)
586586
REGSTORE(regs->io_map, REGLOAD(regs->io_map) & 0x0000ffff);
587587

588588
/* set 1:1 mapping between AHB -> PCI memory space, for all Masters
589-
* Each AHB master has it's own mapping registers. Max 16 AHB masters.
589+
* Each AHB master has its own mapping registers. Max 16 AHB masters.
590590
*/
591591
for (i = 0; i < 16; i++)
592592
REGSTORE(regs->ahbmst_map[i], priv->pci_area);

arch/sparc/kernel/of_device_64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ static unsigned int __init build_one_device_irq(struct platform_device *op,
560560
*
561561
* If we hit a bus type or situation we cannot handle, we
562562
* stop and assume that the original IRQ number was in a
563-
* format which has special meaning to it's immediate parent.
563+
* format which has special meaning to its immediate parent.
564564
*/
565565
pp = dp->parent;
566566
ip = NULL;

arch/sparc/kernel/pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ static struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm,
311311
/* We can't actually use the firmware value, we have
312312
* to read what is in the register right now. One
313313
* reason is that in the case of IDE interfaces the
314-
* firmware can sample the value before the the IDE
314+
* firmware can sample the value before the IDE
315315
* interface is programmed into native mode.
316316
*/
317317
pci_read_config_dword(dev, PCI_CLASS_REVISION, &class);

0 commit comments

Comments
 (0)