Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261677AbVDZQyo (ORCPT ); Tue, 26 Apr 2005 12:54:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261670AbVDZQyc (ORCPT ); Tue, 26 Apr 2005 12:54:32 -0400 Received: from mail.dif.dk ([193.138.115.101]:13499 "EHLO saerimmer.dif.dk") by vger.kernel.org with ESMTP id S261657AbVDZQyR (ORCPT ); Tue, 26 Apr 2005 12:54:17 -0400 Date: Tue, 26 Apr 2005 18:57:32 +0200 (CEST) From: Jesper Juhl To: David Addison Cc: 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: <426E62ED.5090803@quadrics.com> Message-ID: References: <426E62ED.5090803@quadrics.com> 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: 1402 Lines: 55 On Tue, 26 Apr 2005, David Addison wrote: > Hi, > here is a patch we use to integrate the Quadrics NICs into the Linux kernel. A few small comments below. > > +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) { body of function } > +/* ! CONFIG_IOPROC so make all hooks empty */ > + > +#define ioproc_release(mm) do { } while (0) > + > +#define ioproc_sync_range(vma, start, end) do { } while (0) > + > +#define ioproc_invalidate_range(vma, start,end) do { } while (0) > + > +#define ioproc_update_range(vma, start, end) do { } while (0) > + > +#define ioproc_change_protection(vma, start, end, prot) do { } while (0) > + > +#define ioproc_sync_page(vma, addr) do { } while (0) > + > +#define ioproc_invalidate_page(vma, addr) do { } while (0) > + > +#define ioproc_update_page(vma, addr) do { } while (0) > + Why all these blank lines between each define? Seems like just a waste of screen space to me. -- Jesper Juhl - 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/