* [PATCH] powerpc/mm/hash: Fix off-by-one in comment about kernel contexts ids
@ 2017-04-28 12:05 Michael Ellerman
2017-05-01 2:58 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Michael Ellerman @ 2017-04-28 12:05 UTC (permalink / raw)
To: linuxppc-dev; +Cc: aneesh.kumar, msuchanek
Michal Suchánek noticed a comment in book3s/64/mmu-hash.h about the context ids
we use for the kernel was inconsistent with the code and other comments in the
same file.
It should read 1-4 not 1-5.
While we're touching it, update "address" to "addresses" which makes more sense
as it's referring to more than one address below.
Reported-by: Michal Suchánek <msuchanek@suse.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
arch/powerpc/include/asm/book3s/64/mmu-hash.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/include/asm/book3s/64/mmu-hash.h b/arch/powerpc/include/asm/book3s/64/mmu-hash.h
index 6d56974adf28..6981a52b3887 100644
--- a/arch/powerpc/include/asm/book3s/64/mmu-hash.h
+++ b/arch/powerpc/include/asm/book3s/64/mmu-hash.h
@@ -494,7 +494,7 @@ extern void slb_set_size(u16 size);
*
* For user processes max context id is limited to MAX_USER_CONTEXT.
- * For kernel space, we use context ids 1-5 to map address as below:
+ * For kernel space, we use context ids 1-4 to map addresses as below:
* NOTE: each context only support 64TB now.
* 0x00001 - [ 0xc000000000000000 - 0xc0003fffffffffff ]
* 0x00002 - [ 0xd000000000000000 - 0xd0003fffffffffff ]
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: powerpc/mm/hash: Fix off-by-one in comment about kernel contexts ids
2017-04-28 12:05 [PATCH] powerpc/mm/hash: Fix off-by-one in comment about kernel contexts ids Michael Ellerman
@ 2017-05-01 2:58 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2017-05-01 2:58 UTC (permalink / raw)
To: Michael Ellerman, linuxppc-dev; +Cc: msuchanek, aneesh.kumar
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 616 bytes --]
On Fri, 2017-04-28 at 12:05:23 UTC, Michael Ellerman wrote:
> Michal Suchánek noticed a comment in book3s/64/mmu-hash.h about the context ids
> we use for the kernel was inconsistent with the code and other comments in the
> same file.
>
> It should read 1-4 not 1-5.
>
> While we're touching it, update "address" to "addresses" which makes more sense
> as it's referring to more than one address below.
>
> Reported-by: Michal Suchánek <msuchanek@suse.de>
> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Applied to powerpc next.
https://git.kernel.org/powerpc/c/add2e1e585875b42ac745c05bf0e7f
cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-01 2:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-28 12:05 [PATCH] powerpc/mm/hash: Fix off-by-one in comment about kernel contexts ids Michael Ellerman
2017-05-01 2:58 ` 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).