From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757815AbYB1DMS (ORCPT ); Wed, 27 Feb 2008 22:12:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752308AbYB1DMH (ORCPT ); Wed, 27 Feb 2008 22:12:07 -0500 Received: from smtp1.linux-foundation.org ([207.189.120.13]:58739 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752185AbYB1DMG (ORCPT ); Wed, 27 Feb 2008 22:12:06 -0500 Date: Wed, 27 Feb 2008 19:11:04 -0800 From: Andrew Morton To: Randy Dunlap Cc: lkml , Sam Ravnborg Subject: Re: [PATCH] kernel-doc: set verbose mode via environment Message-Id: <20080227191104.6f166972.akpm@linux-foundation.org> In-Reply-To: <20080224175358.3202f0d0.randy.dunlap@oracle.com> References: <20080224175358.3202f0d0.randy.dunlap@oracle.com> X-Mailer: Sylpheed 2.4.1 (GTK+ 2.8.17; x86_64-unknown-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 On Sun, 24 Feb 2008 17:53:58 -0800 Randy Dunlap wrote: > From: Randy Dunlap > > Allow setting environment variable "KERNEL_DOC_VERBOSE=1" to enable > verbose mode in scripts/kernel-doc. Useful for getting more > info and warnings from kernel-doc. > > Signed-off-by: Randy Dunlap > --- > scripts/kernel-doc | 4 ++++ > 1 file changed, 4 insertions(+) > > --- linux-2.6.25-rc3.orig/scripts/kernel-doc > +++ linux-2.6.25-rc3/scripts/kernel-doc > @@ -247,6 +247,10 @@ my ($function, %function_table,%paramete > my ($type,$declaration_name,$return_type); > my ($newsection,$newcontents,$prototype,$filelist, $brcount, %source_map); > > +if (defined($ENV{'KERNEL_DOC_VERBOSE'})) { > + $verbose = "$ENV{'KERNEL_DOC_VERBOSE'}"; > +} > + > # Generated docbook code is inserted in a template at a point where > # docbook v3.1 requires a non-zero sequence of RefEntry's; see: > # http://www.oasis-open.org/docbook/documentation/reference/html/refentry.html Shouldn't this be, err, documented somewhere? I'd have expected to obtain this functionality by running `make V=1 foodocs'?