[PATCH] powerpc/mm: Fix typo in set_pte_at()

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE3465d

5 messages, 3 authors, 2017-02-08 · open the first message on its own page

[PATCH] powerpc/mm: Fix typo in set_pte_at()

From: Gavin Shan <hidden>
Date: 2017-02-06 00:21:25

This fixes the typo about the _PAGE_PTE in set_pte_at() by changing
"tryint" to "trying to".

Fixes: 6a119eae942 ("powerpc/mm: Add a _PAGE_PTE bit")
Signed-off-by: Gavin Shan <redacted>
---
 arch/powerpc/mm/pgtable.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/powerpc/mm/pgtable.c b/arch/powerpc/mm/pgtable.c
index cb39c8b..a03ff3d 100644
--- a/arch/powerpc/mm/pgtable.c
+++ b/arch/powerpc/mm/pgtable.c
@@ -193,9 +193,7 @@ void set_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep,
 	 */
 	VM_WARN_ON(pte_present(*ptep) && !pte_protnone(*ptep));
 
-	/*
-	 * Add the pte bit when tryint set a pte
-	 */
+	/* Add the pte bit when trying to set a pte */
 	pte = __pte(pte_val(pte) | _PAGE_PTE);
 
 	/* Note: mm->context.id might not yet have been assigned as
-- 
2.7.4

Re: [PATCH] powerpc/mm: Fix typo in set_pte_at()

From: Aneesh Kumar K.V <hidden>
Date: 2017-02-06 02:34:13

Gavin Shan [off-list ref] writes:
This fixes the typo about the _PAGE_PTE in set_pte_at() by changing
"tryint" to "trying to".

Fixes: 6a119eae942 ("powerpc/mm: Add a _PAGE_PTE bit")
I guess this is not needed. We add that when we want to hint whether the
patch needs backporting. 

quoted hunk
Signed-off-by: Gavin Shan <redacted>
---
 arch/powerpc/mm/pgtable.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/powerpc/mm/pgtable.c b/arch/powerpc/mm/pgtable.c
index cb39c8b..a03ff3d 100644
--- a/arch/powerpc/mm/pgtable.c
+++ b/arch/powerpc/mm/pgtable.c
@@ -193,9 +193,7 @@ void set_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep,
 	 */
 	VM_WARN_ON(pte_present(*ptep) && !pte_protnone(*ptep));

-	/*
-	 * Add the pte bit when tryint set a pte
-	 */
+	/* Add the pte bit when trying to set a pte */
 	pte = __pte(pte_val(pte) | _PAGE_PTE);

 	/* Note: mm->context.id might not yet have been assigned as
-- 
2.7.4

Re: [PATCH] powerpc/mm: Fix typo in set_pte_at()

From: Gavin Shan <hidden>
Date: 2017-02-06 04:52:37

On Mon, Feb 06, 2017 at 08:03:57AM +0530, Aneesh Kumar K.V wrote:
Gavin Shan [off-list ref] writes:
quoted
This fixes the typo about the _PAGE_PTE in set_pte_at() by changing
"tryint" to "trying to".

Fixes: 6a119eae942 ("powerpc/mm: Add a _PAGE_PTE bit")
I guess this is not needed. We add that when we want to hint whether the
patch needs backporting. 
Thanks for review. I used the tag to indicate the commit introducing
the typo. For this trivial patch, we won't backport it to table or
distro. If you want, I can drop the tag or Michael helps to drop it
when merging it.

Thanks,
Gavin
quoted
Signed-off-by: Gavin Shan <redacted>
---
 arch/powerpc/mm/pgtable.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/powerpc/mm/pgtable.c b/arch/powerpc/mm/pgtable.c
index cb39c8b..a03ff3d 100644
--- a/arch/powerpc/mm/pgtable.c
+++ b/arch/powerpc/mm/pgtable.c
@@ -193,9 +193,7 @@ void set_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep,
 	 */
 	VM_WARN_ON(pte_present(*ptep) && !pte_protnone(*ptep));

-	/*
-	 * Add the pte bit when tryint set a pte
-	 */
+	/* Add the pte bit when trying to set a pte */
 	pte = __pte(pte_val(pte) | _PAGE_PTE);

 	/* Note: mm->context.id might not yet have been assigned as
-- 
2.7.4

Re: [PATCH] powerpc/mm: Fix typo in set_pte_at()

From: Gavin Shan <hidden>
Date: 2017-02-08 03:18:32

On Mon, Feb 06, 2017 at 08:03:57AM +0530, Aneesh Kumar K.V wrote:
Gavin Shan [off-list ref] writes:
quoted
This fixes the typo about the _PAGE_PTE in set_pte_at() by changing
"tryint" to "trying to".

Fixes: 6a119eae942 ("powerpc/mm: Add a _PAGE_PTE bit")
I guess this is not needed. We add that when we want to hint whether the
patch needs backporting. 
I just sent v2 to remove the "Fixes" tag.

Thanks,
Gavin
quoted
Signed-off-by: Gavin Shan <redacted>
---
 arch/powerpc/mm/pgtable.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/powerpc/mm/pgtable.c b/arch/powerpc/mm/pgtable.c
index cb39c8b..a03ff3d 100644
--- a/arch/powerpc/mm/pgtable.c
+++ b/arch/powerpc/mm/pgtable.c
@@ -193,9 +193,7 @@ void set_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep,
 	 */
 	VM_WARN_ON(pte_present(*ptep) && !pte_protnone(*ptep));

-	/*
-	 * Add the pte bit when tryint set a pte
-	 */
+	/* Add the pte bit when trying to set a pte */
 	pte = __pte(pte_val(pte) | _PAGE_PTE);

 	/* Note: mm->context.id might not yet have been assigned as
-- 
2.7.4

Re: [PATCH] powerpc/mm: Fix typo in set_pte_at()

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2017-02-08 09:22:16

Gavin Shan [off-list ref] writes:
On Mon, Feb 06, 2017 at 08:03:57AM +0530, Aneesh Kumar K.V wrote:
quoted
Gavin Shan [off-list ref] writes:
quoted
This fixes the typo about the _PAGE_PTE in set_pte_at() by changing
"tryint" to "trying to".

Fixes: 6a119eae942 ("powerpc/mm: Add a _PAGE_PTE bit")
I guess this is not needed. We add that when we want to hint whether the
patch needs backporting. 
I just sent v2 to remove the "Fixes" tag.
OK.

I don't mind if you send a Fixes tag even for a trivial fix like this.

It's not incorrect, this commit does fix that other commit.

It's probably true that we wouldn't backport a trivial fix like that,
but having the Fixes tag means we could if we wanted to. And if we don't
want to backport it then it's harmless extra information.

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help