Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932612AbVLMK2L (ORCPT ); Tue, 13 Dec 2005 05:28:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932611AbVLMK2L (ORCPT ); Tue, 13 Dec 2005 05:28:11 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:55986 "EHLO mx3.mail.elte.hu") by vger.kernel.org with ESMTP id S932608AbVLMK2J (ORCPT ); Tue, 13 Dec 2005 05:28:09 -0500 Date: Tue, 13 Dec 2005 11:27:25 +0100 From: Ingo Molnar To: Christoph Hellwig , Jakub Jelinek , Andi Kleen , Andrew Morton , dhowells@redhat.com, torvalds@osdl.org, arjan@infradead.org, matthew@wil.cx, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH 1/19] MUTEX: Introduce simple mutex implementation Message-ID: <20051213102725.GA4900@elte.hu> References: <20051212161944.3185a3f9.akpm@osdl.org> <20051213075441.GB6765@elte.hu> <20051213075835.GZ15804@wotan.suse.de> <20051213004257.0f87d814.akpm@osdl.org> <20051213084926.GN23384@wotan.suse.de> <20051213090429.GC27857@infradead.org> <20051213101141.GI31785@devserv.devel.redhat.com> <20051213101938.GA30118@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051213101938.GA30118@infradead.org> User-Agent: Mutt/1.4.2.1i X-ELTE-SpamScore: 0.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=0.0 required=5.9 tests=AWL autolearn=no SpamAssassin version=3.0.3 0.0 AWL AWL: From: address is in the auto white-list X-ELTE-VirusStatus: clean Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1375 Lines: 33 * Christoph Hellwig wrote: > On Tue, Dec 13, 2005 at 05:11:41AM -0500, Jakub Jelinek wrote: > > On Tue, Dec 13, 2005 at 09:04:29AM +0000, Christoph Hellwig wrote: > > > > > > > > Remove -Wdeclaration-after-statement > > > > > > > > Now that gcc 2.95 is not supported anymore it's ok to use C99 > > > > style mixed declarations everywhere. > > > > > > Nack. This code style is pure obsfucation and we should disallow it forever. > > > > Why? It greatly increases readability when variable declarations can be > > moved close to their actual uses. glibc changed a lot of its codebase > > this way and from my experience it really helps. > > mentioning glibc and readability in the same sentence disqualies your > here, sorry ;-) it's a different coding style, but otherwise i find glibc highly readable and well-maintained. It is also a more mature piece of code than say the kernel, e.g. API-wise, so we could indeed learn a few things. Just consider the fact that glibc has 10 times more APIs than the kernel, and still it is breaking apps less often than the kernel. But i digress :-) Ingo - 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/