Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752819Ab0AUGUY (ORCPT ); Thu, 21 Jan 2010 01:20:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752506Ab0AUGUX (ORCPT ); Thu, 21 Jan 2010 01:20:23 -0500 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 Message-ID: <4B57F2BC.5090403@redhat.com> Date: Thu, 21 Jan 2010 14:22:52 +0800 From: Cong Wang User-Agent: Thunderbird 2.0.0.23 (X11/20091001) MIME-Version: 1.0 To: Thiago Farina CC: linux-kernel@vger.kernel.org, Alexander Viro , Andrew Morton , Roland McGrath , Hugh Dickins , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] fs/binfmt_elf.c: fix a do-while statement. References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 997 Lines: 34 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); > } > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/