Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756523AbYGMVXv (ORCPT ); Sun, 13 Jul 2008 17:23:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754976AbYGMVXn (ORCPT ); Sun, 13 Jul 2008 17:23:43 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:46988 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752909AbYGMVXm (ORCPT ); Sun, 13 Jul 2008 17:23:42 -0400 Date: Sun, 13 Jul 2008 14:23:17 -0700 From: Andrew Morton To: David Brownell Cc: Dmitry Baryshkov , linux-kernel@vger.kernel.org, Haavard Skinnemoen , Russell King , Paul Mundt , pHilipp Zabel , Pavel Machek , tony@atomide.com, paul@pwsan.com, Mark Brown , ian Subject: Re: [PATCH 1/3] genclk: add generic framework for managing clocks. Message-Id: <20080713142317.97111c81.akpm@linux-foundation.org> In-Reply-To: <200807131412.32961.david-b@pacbell.net> References: <20080708134242.GA6176@doriath.ww600.siemens.net> <20080708134336.GA6240@doriath.ww600.siemens.net> <20080712234823.e632c7f9.akpm@linux-foundation.org> <200807131412.32961.david-b@pacbell.net> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.5; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1171 Lines: 26 On Sun, 13 Jul 2008 14:12:32 -0700 David Brownell wrote: > On Saturday 12 July 2008, Andrew Morton wrote: > > > +EXPORT_SYMBOL(clk_get_parent); > > > > As this is a new kernel-wide utility library, it is appropriate that > > all of its public interfaces (at least) be documented. __An appropriate > > way of doing that is via kerneldoc annotation. __Please don't forget to > > document return values and call environment prerequisites (eg: requires > > foo_lock, may be called from interrupt context, etc, etc). > > That is, the stuff that's not already documented in ; > that's where clk_get_parent() is documented, for example. argh. That's why I missed it - please don't document stuff in header files. The usual approach is to document interfaces at the implementation site. Except for structs where of course there is no choice. But then, the .h file _is_ the definition site. -- 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/