* [PATCH] mm: book3s32: add require space around that '?' and ':' [not found] <tencent_78C62F88E268136A2FCE91042CAB212A7709@qq.com> @ 2023-07-20 7:34 ` hanyu001 2023-08-04 16:02 ` Christophe Leroy 0 siblings, 1 reply; 2+ messages in thread From: hanyu001 @ 2023-07-20 7:34 UTC (permalink / raw) To: mpe, npiggin, christophe.leroy, Liam.Howlett, vbabka, akpm, dave, willy Cc: linuxppc-dev, linux-kernel Fix below checkpatch errors: ./arch/powerpc/mm/book3s32/tlb.c:102: ERROR: spaces required around that '?' (ctx:VxW) ./arch/powerpc/mm/book3s32/tlb.c:102: ERROR: spaces required around that ':' (ctx:VxW) Signed-off-by: Yu Han <hanyu001@208suo.com> --- arch/powerpc/mm/book3s32/tlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/mm/book3s32/tlb.c b/arch/powerpc/mm/book3s32/tlb.c index 9ad6b56bfec9..de4abfe3d06b 100644 --- a/arch/powerpc/mm/book3s32/tlb.c +++ b/arch/powerpc/mm/book3s32/tlb.c @@ -99,7 +99,7 @@ void hash__flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr) struct mm_struct *mm; pmd_t *pmd; - mm = (vmaddr < TASK_SIZE)? vma->vm_mm: &init_mm; + mm = (vmaddr < TASK_SIZE) ? vma->vm_mm : &init_mm; pmd = pmd_off(mm, vmaddr); if (!pmd_none(*pmd)) flush_hash_pages(mm->context.id, vmaddr, pmd_val(*pmd), 1); ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mm: book3s32: add require space around that '?' and ':' 2023-07-20 7:34 ` [PATCH] mm: book3s32: add require space around that '?' and ':' hanyu001 @ 2023-08-04 16:02 ` Christophe Leroy 0 siblings, 0 replies; 2+ messages in thread From: Christophe Leroy @ 2023-08-04 16:02 UTC (permalink / raw) To: hanyu001, mpe, npiggin, Liam.Howlett, vbabka, akpm, dave, willy Cc: linuxppc-dev, linux-kernel Hello, Le 20/07/2023 à 09:34, hanyu001@208suo.com a écrit : > Fix below checkpatch errors: > > ./arch/powerpc/mm/book3s32/tlb.c:102: ERROR: spaces required around that > '?' (ctx:VxW) > ./arch/powerpc/mm/book3s32/tlb.c:102: ERROR: spaces required around that > ':' (ctx:VxW) Can you please explain the purpose of those changes ? Do you use some tools that get disturbed by such cosmetic errors ? Otherwise what is your reason ? We don't accept such standelone minor cosmetic changes at the first place because it looks like a waste of time. If you have major reasons to want those changes, please re-submit with a details explanation in the commit message. Thanks Christophe > > Signed-off-by: Yu Han <hanyu001@208suo.com> > --- > arch/powerpc/mm/book3s32/tlb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/powerpc/mm/book3s32/tlb.c > b/arch/powerpc/mm/book3s32/tlb.c > index 9ad6b56bfec9..de4abfe3d06b 100644 > --- a/arch/powerpc/mm/book3s32/tlb.c > +++ b/arch/powerpc/mm/book3s32/tlb.c > @@ -99,7 +99,7 @@ void hash__flush_tlb_page(struct vm_area_struct *vma, > unsigned long vmaddr) > struct mm_struct *mm; > pmd_t *pmd; > > - mm = (vmaddr < TASK_SIZE)? vma->vm_mm: &init_mm; > + mm = (vmaddr < TASK_SIZE) ? vma->vm_mm : &init_mm; > pmd = pmd_off(mm, vmaddr); > if (!pmd_none(*pmd)) > flush_hash_pages(mm->context.id, vmaddr, pmd_val(*pmd), 1); ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-04 16:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <tencent_78C62F88E268136A2FCE91042CAB212A7709@qq.com>
2023-07-20 7:34 ` [PATCH] mm: book3s32: add require space around that '?' and ':' hanyu001
2023-08-04 16:02 ` Christophe Leroy
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®