From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cong Wang Subject: Re: [PATCH] fs/binfmt_elf.c: fix a do-while statement. Date: Thu, 21 Jan 2010 14:22:52 +0800 Message-ID: <4B57F2BC.5090403@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, Alexander Viro , Andrew Morton , Roland McGrath , Hugh Dickins , linux-fsdevel@vger.kernel.org To: Thiago Farina Return-path: Received: from mx1.redhat.com ([209.132.183.28]:22155 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751776Ab0AUGUW (ORCPT ); Thu, 21 Jan 2010 01:20:22 -0500 In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Thiago Farina wrote: > warning: do-while statement is not a compound statement > > Signed-off-by: Thiago Farina Acked-by: WANG Cong > --- > fs/binfmt_elf.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c > index edd90c4..75d6468 100644 > --- a/fs/binfmt_elf.c > +++ b/fs/binfmt_elf.c > @@ -1404,9 +1404,9 @@ static void fill_auxv_note(struct memelfnote *note, struct mm_struct *mm) > { > elf_addr_t *auxv = (elf_addr_t *) mm->saved_auxv; > int i = 0; > - do > + do { > i += 2; > - while (auxv[i - 2] != AT_NULL); > + } while (auxv[i - 2] != AT_NULL); > fill_note(note, "CORE", NT_AUXV, i * sizeof(elf_addr_t), auxv); > } >