Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752259AbYBJOAr (ORCPT ); Sun, 10 Feb 2008 09:00:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750902AbYBJOAh (ORCPT ); Sun, 10 Feb 2008 09:00:37 -0500 Received: from fk-out-0910.google.com ([209.85.128.191]:49089 "EHLO fk-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750968AbYBJOAg (ORCPT ); Sun, 10 Feb 2008 09:00:36 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=TvkhDdzL0C9guoHkSuNa/Sx4LSFq+mOaoSnihZLQEajZ/clP+fhUVgIbg9ORdBUDyGBoQ5+jNO4D0Z8VHM6mLpu2IOsiDdx7z1oY8aY9s9Mfdz1eiKsMkElS6Oc9mlrRdYReDQdIIyOLFx4u3i5RfnyejUwwyIszWOmFlv843eU= Date: Sun, 10 Feb 2008 15:00:00 +0100 From: Marcin Slusarz To: Jesper Juhl Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Linus Torvalds , Andrew Morton , Thomas Gleixner , Jason Wessel Subject: Re: [3/6] kgdb: core Message-ID: <20080210135955.GA12881@joi> References: <20080210071331.GC3851@elte.hu> <20080210124629.GA12200@joi> <9a8748490802100519h5921ce61pd90d6bec604b5c87@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9a8748490802100519h5921ce61pd90d6bec604b5c87@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1516 Lines: 42 On Sun, Feb 10, 2008 at 02:19:06PM +0100, Jesper Juhl wrote: > On 10/02/2008, Marcin Slusarz wrote: > > On Sun, Feb 10, 2008 at 08:13:31AM +0100, Ingo Molnar wrote: > ... > > > + > > > + if (CACHE_FLUSH_IS_SAFE) { > > > + if (current->mm && addr < TASK_SIZE) { > > > + flush_cache_range(current->mm->mmap_cache, > > > + addr, addr + BREAK_INSTR_SIZE); > > > + } else { > > > + flush_icache_range(addr, addr + > > > + BREAK_INSTR_SIZE); > > > + } > > > + } > > unneeded braces (here and in many other places) > > > > While they are not strictly needed, I for one would argue they should > probably stay. > > if (foo) > bar(); > > is not always safe in case bar() is a macro. then fix this broken macro and leave calling code alone > is always safe and is more robust when the code gets changed later > since you don't accidentally end up with someone mistakenly turning it > into > > if (foo) > bar(); > baz(); following coding style and reading code before submission will catch this kind of bugs Marcin -- 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/