linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/mm: Fix typo in set_pte_at()
@ 2017-02-06  0:19 Gavin Shan
  2017-02-06  2:33 ` Aneesh Kumar K.V
  0 siblings, 1 reply; 5+ messages in thread
From: Gavin Shan @ 2017-02-06  0:19 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: mpe, aneesh.kumar, Gavin Shan

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 <gwshan@linux.vnet.ibm.com>
---
 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] powerpc/mm: Fix typo in set_pte_at()
  2017-02-06  0:19 [PATCH] powerpc/mm: Fix typo in set_pte_at() Gavin Shan
@ 2017-02-06  2:33 ` Aneesh Kumar K.V
  2017-02-06  4:51   ` Gavin Shan
  2017-02-08  3:17   ` Gavin Shan
  0 siblings, 2 replies; 5+ messages in thread
From: Aneesh Kumar K.V @ 2017-02-06  2:33 UTC (permalink / raw)
  To: Gavin Shan, linuxppc-dev; +Cc: mpe, Gavin Shan

Gavin Shan <gwshan@linux.vnet.ibm.com> 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. 


> Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
> ---
>  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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] powerpc/mm: Fix typo in set_pte_at()
  2017-02-06  2:33 ` Aneesh Kumar K.V
@ 2017-02-06  4:51   ` Gavin Shan
  2017-02-08  3:17   ` Gavin Shan
  1 sibling, 0 replies; 5+ messages in thread
From: Gavin Shan @ 2017-02-06  4:51 UTC (permalink / raw)
  To: Aneesh Kumar K.V; +Cc: Gavin Shan, linuxppc-dev, mpe

On Mon, Feb 06, 2017 at 08:03:57AM +0530, Aneesh Kumar K.V wrote:
>Gavin Shan <gwshan@linux.vnet.ibm.com> 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. 
>

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

>
>> Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
>> ---
>>  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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] powerpc/mm: Fix typo in set_pte_at()
  2017-02-06  2:33 ` Aneesh Kumar K.V
  2017-02-06  4:51   ` Gavin Shan
@ 2017-02-08  3:17   ` Gavin Shan
  2017-02-08  9:22     ` Michael Ellerman
  1 sibling, 1 reply; 5+ messages in thread
From: Gavin Shan @ 2017-02-08  3:17 UTC (permalink / raw)
  To: Aneesh Kumar K.V; +Cc: Gavin Shan, linuxppc-dev, mpe

On Mon, Feb 06, 2017 at 08:03:57AM +0530, Aneesh Kumar K.V wrote:
>Gavin Shan <gwshan@linux.vnet.ibm.com> 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. 
>

I just sent v2 to remove the "Fixes" tag.

Thanks,
Gavin

>
>> Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
>> ---
>>  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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] powerpc/mm: Fix typo in set_pte_at()
  2017-02-08  3:17   ` Gavin Shan
@ 2017-02-08  9:22     ` Michael Ellerman
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Ellerman @ 2017-02-08  9:22 UTC (permalink / raw)
  To: Gavin Shan, Aneesh Kumar K.V; +Cc: Gavin Shan, linuxppc-dev

Gavin Shan <gwshan@linux.vnet.ibm.com> writes:

> On Mon, Feb 06, 2017 at 08:03:57AM +0530, Aneesh Kumar K.V wrote:
>>Gavin Shan <gwshan@linux.vnet.ibm.com> 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. 
>>
>
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-02-08  9:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-06  0:19 [PATCH] powerpc/mm: Fix typo in set_pte_at() Gavin Shan
2017-02-06  2:33 ` Aneesh Kumar K.V
2017-02-06  4:51   ` Gavin Shan
2017-02-08  3:17   ` Gavin Shan
2017-02-08  9:22     ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).