Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932117AbVIGMRX (ORCPT ); Wed, 7 Sep 2005 08:17:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751208AbVIGMRX (ORCPT ); Wed, 7 Sep 2005 08:17:23 -0400 Received: from mail.suse.de ([195.135.220.2]:27777 "EHLO mx1.suse.de") by vger.kernel.org with ESMTP id S1751206AbVIGMRX (ORCPT ); Wed, 7 Sep 2005 08:17:23 -0400 Date: Wed, 07 Sep 2005 14:17:21 +0200 Message-ID: From: Takashi Iwai To: Jeff Garzik Cc: Andrew Morton , Linus Torvalds , linux-kernel@vger.kernel.org Subject: Re: [git patch] fix DocBook build In-Reply-To: <431ECEBA.7040802@pobox.com> References: <20050907051720.GA10211@havoc.gtf.org> <431ECEBA.7040802@pobox.com> User-Agent: Wanderlust/2.12.0 (Your Wildest Dreams) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 MULE XEmacs/21.5 (beta18) (chestnut) (+CVS-20041021) (i386-suse-linux) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org At Wed, 07 Sep 2005 07:27:54 -0400, Jeff Garzik wrote: > > Takashi Iwai wrote: > > At Wed, 07 Sep 2005 12:00:31 +0200, > > I wrote: > > > >>At Wed, 7 Sep 2005 01:17:20 -0400, > >>Jeff Garzik wrote: > >> > >>> > >>> [kernel-doc] fix various DocBook build problems/warnings > >>> > >>> Most serious is fixing include/sound/pcm.h, which breaks the DocBook > >>> build. > >> > >>What is the error exactly? IIRC, it did work in the early version. > >>Well, I need to test it by myself... > > > > > > OK, I see it, too. How about the fix below, instead? > > > > > > [PATCH] Fix DocBook build in sound/pcm.h > > > > Signed-off-by: Takashi Iwai > > > > > > diff --git a/include/sound/pcm.h b/include/sound/pcm.h > > --- a/include/sound/pcm.h > > +++ b/include/sound/pcm.h > > @@ -910,7 +910,7 @@ int snd_pcm_format_big_endian(snd_pcm_fo > > * Returns 1 if the given PCM format is CPU-endian, 0 if > > * opposite, or a negative error code if endian not specified. > > */ > > -/* int snd_pcm_format_cpu_endian(snd_pcm_format_t format); */ > > +int snd_pcm_format_cpu_endian(snd_pcm_format_t format); > > #ifdef SNDRV_LITTLE_ENDIAN > > #define snd_pcm_format_cpu_endian snd_pcm_format_little_endian > > #else > > I considered that, but decided not to, given the C pre-processor games > that are occurring with that symbol shortly after the commented-out block. The function doesn't exist but is declared just for docbook. Since it's replaced with the macro anyway, it shouldn't hurt. To be safer, we can put #if 0 around the comment block and the pseudo function definition. Takashi diff --git a/include/sound/pcm.h b/include/sound/pcm.h --- a/include/sound/pcm.h +++ b/include/sound/pcm.h @@ -903,6 +903,7 @@ int snd_pcm_format_unsigned(snd_pcm_form int snd_pcm_format_linear(snd_pcm_format_t format); int snd_pcm_format_little_endian(snd_pcm_format_t format); int snd_pcm_format_big_endian(snd_pcm_format_t format); +#if 0 /* just for DocBook */ /** * snd_pcm_format_cpu_endian - Check the PCM format is CPU-endian * @format: the format to check @@ -910,7 +911,8 @@ int snd_pcm_format_big_endian(snd_pcm_fo * Returns 1 if the given PCM format is CPU-endian, 0 if * opposite, or a negative error code if endian not specified. */ -/* int snd_pcm_format_cpu_endian(snd_pcm_format_t format); */ +int snd_pcm_format_cpu_endian(snd_pcm_format_t format); +#endif /* DocBook */ #ifdef SNDRV_LITTLE_ENDIAN #define snd_pcm_format_cpu_endian snd_pcm_format_little_endian #else