* [git patch] fix DocBook build
@ 2005-09-07 5:17 Jeff Garzik
2005-09-07 10:00 ` Takashi Iwai
0 siblings, 1 reply; 5+ messages in thread
From: Jeff Garzik @ 2005-09-07 5:17 UTC (permalink / raw)
To: Andrew Morton, Linus Torvalds; +Cc: linux-kernel
Please pull from 'upstream' branch of
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/jgarzik/misc-2.6.git
to obtain the following DocBook change:
Documentation/DocBook/mcabook.tmpl | 2 +-
drivers/net/wan/syncppp.c | 1 +
drivers/scsi/libata-core.c | 4 ++--
include/sound/pcm.h | 2 +-
kernel/sched.c | 1 +
5 files changed, 6 insertions(+), 4 deletions(-)
commit 344babaa9d39b10b85cadec4e5335d43b52b4ec0
Author: Jeff Garzik <jgarzik@pobox.com>
Date: Wed Sep 7 01:15:17 2005 -0400
[kernel-doc] fix various DocBook build problems/warnings
Most serious is fixing include/sound/pcm.h, which breaks the DocBook
build.
The other stuff is just filling in things that cause warnings.
diff --git a/Documentation/DocBook/mcabook.tmpl b/Documentation/DocBook/mcabook.tmpl
--- a/Documentation/DocBook/mcabook.tmpl
+++ b/Documentation/DocBook/mcabook.tmpl
@@ -96,7 +96,7 @@
<chapter id="pubfunctions">
<title>Public Functions Provided</title>
-!Earch/i386/kernel/mca.c
+!Edrivers/mca/mca-legacy.c
</chapter>
<chapter id="dmafunctions">
diff --git a/drivers/net/wan/syncppp.c b/drivers/net/wan/syncppp.c
--- a/drivers/net/wan/syncppp.c
+++ b/drivers/net/wan/syncppp.c
@@ -1440,6 +1440,7 @@ static void sppp_print_bytes (u_char *p,
* @skb: The buffer to process
* @dev: The device it arrived on
* @p: Unused
+ * @orig_dev: Unused
*
* Protocol glue. This drives the deferred processing mode the poorer
* cards use. This can be called directly by cards that do not have
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -2531,7 +2531,7 @@ void swap_buf_le16(u16 *buf, unsigned in
* @ap: port to read/write
* @buf: data buffer
* @buflen: buffer length
- * @do_write: read/write
+ * @write_data: read/write
*
* Transfer data from/to the device data register by MMIO.
*
@@ -2577,7 +2577,7 @@ static void ata_mmio_data_xfer(struct at
* @ap: port to read/write
* @buf: data buffer
* @buflen: buffer length
- * @do_write: read/write
+ * @write_data: read/write
*
* Transfer data from/to the device data register by PIO.
*
diff --git a/include/sound/pcm.h b/include/sound/pcm.h
--- a/include/sound/pcm.h
+++ b/include/sound/pcm.h
@@ -903,7 +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);
-/**
+/*
* snd_pcm_format_cpu_endian - Check the PCM format is CPU-endian
* @format: the format to check
*
diff --git a/kernel/sched.c b/kernel/sched.c
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -1478,6 +1478,7 @@ static inline void prepare_task_switch(r
/**
* finish_task_switch - clean up after a task-switch
+ * @rq: runqueue associated with task-switch
* @prev: the thread we just switched away from.
*
* finish_task_switch must be called after the context switch, paired
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [git patch] fix DocBook build
2005-09-07 5:17 [git patch] fix DocBook build Jeff Garzik
@ 2005-09-07 10:00 ` Takashi Iwai
2005-09-07 10:12 ` Takashi Iwai
0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2005-09-07 10:00 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Andrew Morton, Linus Torvalds, linux-kernel
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...
Takashi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [git patch] fix DocBook build
2005-09-07 10:00 ` Takashi Iwai
@ 2005-09-07 10:12 ` Takashi Iwai
2005-09-07 11:27 ` Jeff Garzik
0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2005-09-07 10:12 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Andrew Morton, Linus Torvalds, linux-kernel
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 <tiwai@suse.de>
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [git patch] fix DocBook build
2005-09-07 10:12 ` Takashi Iwai
@ 2005-09-07 11:27 ` Jeff Garzik
2005-09-07 12:17 ` Takashi Iwai
0 siblings, 1 reply; 5+ messages in thread
From: Jeff Garzik @ 2005-09-07 11:27 UTC (permalink / raw)
To: Takashi Iwai; +Cc: Andrew Morton, Linus Torvalds, linux-kernel
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 <tiwai@suse.de>
>
>
> 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.
Jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [git patch] fix DocBook build
2005-09-07 11:27 ` Jeff Garzik
@ 2005-09-07 12:17 ` Takashi Iwai
0 siblings, 0 replies; 5+ messages in thread
From: Takashi Iwai @ 2005-09-07 12:17 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Andrew Morton, Linus Torvalds, linux-kernel
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 <tiwai@suse.de>
> >
> >
> > 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-09-07 12:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-07 5:17 [git patch] fix DocBook build Jeff Garzik
2005-09-07 10:00 ` Takashi Iwai
2005-09-07 10:12 ` Takashi Iwai
2005-09-07 11:27 ` Jeff Garzik
2005-09-07 12:17 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.