Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261682AbVDZRWa (ORCPT ); Tue, 26 Apr 2005 13:22:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261696AbVDZRWa (ORCPT ); Tue, 26 Apr 2005 13:22:30 -0400 Received: from mail.dif.dk ([193.138.115.101]:31676 "EHLO saerimmer.dif.dk") by vger.kernel.org with ESMTP id S261682AbVDZRQz (ORCPT ); Tue, 26 Apr 2005 13:16:55 -0400 Date: Tue, 26 Apr 2005 19:20:13 +0200 (CEST) From: Jesper Juhl To: Lee Revell Cc: David Addison , linux-kernel@vger.kernel.org, Andrew Morton , Andrea Arcangeli , David Addison Subject: Re: [PATCH][RFC] Linux VM hooks for advanced RDMA NICs In-Reply-To: <1114535584.5410.2.camel@mindpipe> Message-ID: References: <426E62ED.5090803@quadrics.com> <1114535584.5410.2.camel@mindpipe> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1130 Lines: 33 On Tue, 26 Apr 2005, Lee Revell wrote: > On Tue, 2005-04-26 at 18:57 +0200, Jesper Juhl wrote: > > > > > > +static inline void > > > +ioproc_release(struct mm_struct *mm) > > > +{ > > > > Return types on same line as function name makes grep'ing a lot > > easier/nicer. > > > > Here's the example from Documentation/CodingStyle : > > > > int function(int x) > > { > > How so? I never understood the reasons. This makes it easier to grep > for everything that returns int. But you make the common case (what > file is function() defined in?) harder. > I don't know what you do, but when I'm grep'ing the tree for some function I'm often looking for its return type, having that on the same line as the function name lets me grep for the function name and the grep output will contain the return type and function name nicely on the same line. -- Jesper - 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/