From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: [PATCH] mm: fix comment formatting in asm-generic/pgtable.h:__ptep_modify_prot_ Date: Tue, 03 Jun 2008 00:53:43 +0100 Message-ID: <48448807.7020601@goop.org> References: <20080602111339.GB18586@elte.hu> <4843EF6A.20305@goop.org> <200806030946.00434.rusty@rustcorp.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200806030946.00434.rusty@rustcorp.com.au> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Rusty Russell Cc: Zachary Amsden , xen-devel , Peter Zijlstra , kvm-devel , x86@kernel.org, LKML , Virtualization Mailing List , Hugh Dickins , Ingo Molnar , Linus Torvalds , Thomas Gleixner List-Id: virtualization@lists.linuxfoundation.org Rusty Russell wrote: > On Monday 02 June 2008 23:02:34 Jeremy Fitzhardinge wrote: > >> Signed-off-by: Jeremy Fitzhardinge >> --- >> include/asm-generic/pgtable.h | 14 +++++++++----- >> 1 file changed, 9 insertions(+), 5 deletions(-) >> >> =================================================================== >> --- a/include/asm-generic/pgtable.h >> +++ b/include/asm-generic/pgtable.h >> @@ -201,9 +201,11 @@ >> unsigned long addr, >> pte_t *ptep) >> { >> - /* Get the current pte state, but zero it out to make it >> - non-present, preventing the hardware from asynchronously >> - updating it. */ >> + /* >> + * Get the current pte state, but zero it out to make it >> + * non-present, preventing the hardware from asynchronously >> + * updating it. >> + */ >> > > Since there is debate over whether winged comments are a feature, I'm not sure > this can be termed a "fix". > I don't feel all that strongly about it in this case. I'm not a huge fan of winged style for inline comments like this, but it is consistent with the rest of the file, and the comment is (just) long enough to make it not look completely stupid. >> { >> - /* The pte is non-present, so there's no hardware state to >> - preserve. */ >> + /* >> + * The pte is non-present, so there's no hardware state to >> + * preserve. >> + */ >> set_pte_at(mm, addr, ptep, pte); >> } >> > > This will fit in one line, no? > Yes, but changing it would mean going to the effort of regenerating the patch. J