Skip to contentSkip to conversation

spelling: Fix some trivial typos

PATCH Applied Ricardo Ribalda 3 participants 7 messages Dec 20, 2022 – Dec 22, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

cover spelling: Fix some trivial typos

Seems like permitted has two t :), Lets add that to spellings to help others.

---
Ricardo Ribalda (3):
scripts/spelling.txt: Add permitted
KVM: x86: Fix trivial typo
of: overlay: Fix trivial typo

 arch/x86/kvm/emulate.c | 8 ++++----
 drivers/of/overlay.c   | 2 +-
 scripts/spelling.txt   | 1 +
 3 files changed, 6 insertions(+), 5 deletions(-)

---
base-commit: b6bb9676f2165d518b35ba3bea5f1fcfc0d969bf
change-id: 20221220-permited-7336f4537e8f

Best regards,

Signature · 1 line
Ricardo Ribalda <[email protected]>
#1 lore raw

PATCH 1/3 scripts/spelling.txt: Add permitted

Add another common typo. Noticed when I sent a patch with the typo and in kvm and of.

---
 scripts/spelling.txt | 1 +
 1 file changed, 1 insertion(+)
scripts/spelling.txt +1 -0
index ded8bcfc0247..bb788a733722 100644
@@ -1121,6 +1121,7 @@ perfomring||performing
 periperal||peripheral
 peripherial||peripheral
 permissons||permissions
+permited||permitted
 peroid||period
 persistance||persistence
 persistant||persistent
Signature · 1 line
2.39.0.314.g84b9a713c41-goog-b4-0.11.0-dev-696ae
#2 lore raw

PATCH 2/3 KVM: x86: Fix trivial typo

In reply to Ricardo Ribalda

Permitted is spelled with two t.

---
 arch/x86/kvm/emulate.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/x86/kvm/emulate.c +4 -4
index 5cc3efa0e21c..56e1cf7c339e 100644
@@ -2615,8 +2615,8 @@ static bool emulator_io_port_access_allowed(struct x86_emulate_ctxt *ctxt,
 	return true;
 }
 
-static bool emulator_io_permited(struct x86_emulate_ctxt *ctxt,
-				 u16 port, u16 len)
+static bool emulator_io_permitted(struct x86_emulate_ctxt *ctxt,
+				  u16 port, u16 len)
 {
 	if (ctxt->perm_ok)
 		return true;
@@ -3961,7 +3961,7 @@ static int check_rdpmc(struct x86_emulate_ctxt *ctxt)
 static int check_perm_in(struct x86_emulate_ctxt *ctxt)
 {
 	ctxt->dst.bytes = min(ctxt->dst.bytes, 4u);
-	if (!emulator_io_permited(ctxt, ctxt->src.val, ctxt->dst.bytes))
+	if (!emulator_io_permitted(ctxt, ctxt->src.val, ctxt->dst.bytes))
 		return emulate_gp(ctxt, 0);
 
 	return X86EMUL_CONTINUE;
@@ -3970,7 +3970,7 @@ static int check_perm_in(struct x86_emulate_ctxt *ctxt)
 static int check_perm_out(struct x86_emulate_ctxt *ctxt)
 {
 	ctxt->src.bytes = min(ctxt->src.bytes, 4u);
-	if (!emulator_io_permited(ctxt, ctxt->dst.val, ctxt->src.bytes))
+	if (!emulator_io_permitted(ctxt, ctxt->dst.val, ctxt->src.bytes))
 		return emulate_gp(ctxt, 0);
 
 	return X86EMUL_CONTINUE;
Signature · 1 line
2.39.0.314.g84b9a713c41-goog-b4-0.11.0-dev-696ae
#4 lore raw

PATCH 3/3 of: overlay: Fix trivial typo

In reply to Ricardo Ribalda

Permitted is spelled with two t.

---
 drivers/of/overlay.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/of/overlay.c +1 -1
index ed4e6c144a68..2e01960f1aeb 100644
@@ -1121,7 +1121,7 @@ static int node_overlaps_later_cs(struct overlay_changeset *remove_ovcs,
  * The topmost check is done by exploiting this property. For each
  * affected device node in the log list we check if this overlay is
  * the one closest to the tail. If another overlay has affected this
- * device node and is closest to the tail, then removal is not permited.
+ * device node and is closest to the tail, then removal is not permitted.
  */
 static int overlay_removal_is_ok(struct overlay_changeset *remove_ovcs)
 {
Signature · 1 line
2.39.0.314.g84b9a713c41-goog-b4-0.11.0-dev-696ae