2022-12-20 22:29:01

by Ricardo Ribalda

[permalink] [raw]
Subject: [PATCH 0/3] spelling: Fix some trivial typos

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

Cc: Joel Fernandes <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Ricardo Ribalda <[email protected]>

---
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,
--
Ricardo Ribalda <[email protected]>


2022-12-20 22:36:26

by Ricardo Ribalda

[permalink] [raw]
Subject: [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.

Signed-off-by: Ricardo Ribalda <[email protected]>
---
scripts/spelling.txt | 1 +
1 file changed, 1 insertion(+)

diff --git a/scripts/spelling.txt b/scripts/spelling.txt
index ded8bcfc0247..bb788a733722 100644
--- a/scripts/spelling.txt
+++ b/scripts/spelling.txt
@@ -1121,6 +1121,7 @@ perfomring||performing
periperal||peripheral
peripherial||peripheral
permissons||permissions
+permited||permitted
peroid||period
persistance||persistence
persistant||persistent

--
2.39.0.314.g84b9a713c41-goog-b4-0.11.0-dev-696ae

2022-12-20 22:46:16

by Ricardo Ribalda

[permalink] [raw]
Subject: [PATCH 2/3] KVM: x86: Fix trivial typo

Permitted is spelled with two t.

Signed-off-by: Ricardo Ribalda <[email protected]>
---
arch/x86/kvm/emulate.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index 5cc3efa0e21c..56e1cf7c339e 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -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;

--
2.39.0.314.g84b9a713c41-goog-b4-0.11.0-dev-696ae

2022-12-21 12:46:24

by Philippe Mathieu-Daudé

[permalink] [raw]
Subject: Re: [PATCH 2/3] KVM: x86: Fix trivial typo

On 20/12/22 23:20, Ricardo Ribalda wrote:
> Permitted is spelled with two t.
>
> Signed-off-by: Ricardo Ribalda <[email protected]>
> ---
> arch/x86/kvm/emulate.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>