linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] linux/pipe_fs_i.h: fix kernel-doc warnings after @wait was split
@ 2020-02-10  3:36 Randy Dunlap
  2020-02-12 19:57 ` Linus Torvalds
  0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2020-02-10  3:36 UTC (permalink / raw)
  To: LKML, Linus Torvalds, Al Viro, Andrew Morton

From: Randy Dunlap <rdunlap@infradead.org>

Fix kernel-doc warnings in struct pipe_inode_info after @wait was
split into @rd_wait and @wr_wait.

../include/linux/pipe_fs_i.h:66: warning: Function parameter or member 'rd_wait' not described in 'pipe_inode_info'
../include/linux/pipe_fs_i.h:66: warning: Function parameter or member 'wr_wait' not described in 'pipe_inode_info'

Fixes: 0ddad21d3e99 ("pipe: use exclusive waits when reading or writing")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
 include/linux/pipe_fs_i.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- lnx-56-rc1.orig/include/linux/pipe_fs_i.h
+++ lnx-56-rc1/include/linux/pipe_fs_i.h
@@ -29,7 +29,8 @@ struct pipe_buffer {
 /**
  *	struct pipe_inode_info - a linux kernel pipe
  *	@mutex: mutex protecting the whole thing
- *	@wait: reader/writer wait point in case of empty/full pipe
+ *	@rd_wait: reader wait point in case of empty pipe
+ *	@wr_wait: writer wait point in case of full pipe
  *	@head: The point of buffer production
  *	@tail: The point of buffer consumption
  *	@max_usage: The maximum number of slots that may be used in the ring


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] linux/pipe_fs_i.h: fix kernel-doc warnings after @wait was split
  2020-02-10  3:36 [PATCH] linux/pipe_fs_i.h: fix kernel-doc warnings after @wait was split Randy Dunlap
@ 2020-02-12 19:57 ` Linus Torvalds
  2020-02-12 21:36   ` Randy Dunlap
  2020-02-13 14:59   ` Jonathan Corbet
  0 siblings, 2 replies; 4+ messages in thread
From: Linus Torvalds @ 2020-02-12 19:57 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: LKML, Al Viro, Andrew Morton

On Sun, Feb 9, 2020 at 7:36 PM Randy Dunlap <rdunlap@infradead.org> wrote:
>
> Fix kernel-doc warnings in struct pipe_inode_info after @wait was
> split into @rd_wait and @wr_wait.

Thanks, applied.

I've considered adding some doc building to my basic tests, but it is
(a) somewhat slow and (b) has always been very noisy.

And that (b) is why I really don't do it. The reason I require the
basic build to be warning-free is that because that way any new
warnings stand out. But that's just not the case for docs.

What do you use to notice new errors? Or is there some trick to make
it less noisy?

               Linus

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] linux/pipe_fs_i.h: fix kernel-doc warnings after @wait was split
  2020-02-12 19:57 ` Linus Torvalds
@ 2020-02-12 21:36   ` Randy Dunlap
  2020-02-13 14:59   ` Jonathan Corbet
  1 sibling, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2020-02-12 21:36 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, Al Viro, Andrew Morton

On 2/12/20 11:57 AM, Linus Torvalds wrote:
> On Sun, Feb 9, 2020 at 7:36 PM Randy Dunlap <rdunlap@infradead.org> wrote:
>>
>> Fix kernel-doc warnings in struct pipe_inode_info after @wait was
>> split into @rd_wait and @wr_wait.
> 
> Thanks, applied.
> 
> I've considered adding some doc building to my basic tests, but it is
> (a) somewhat slow and (b) has always been very noisy.
> 
> And that (b) is why I really don't do it. The reason I require the
> basic build to be warning-free is that because that way any new
> warnings stand out. But that's just not the case for docs.
> 
> What do you use to notice new errors? Or is there some trick to make
> it less noisy?

It's awfully noisy.  I just do lots of "grep -v" to ignore some messages
that are always there and then I manually ignore lots of others that are
not new.  Very little automation.  No magic tricks.

-- 
~Randy


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] linux/pipe_fs_i.h: fix kernel-doc warnings after @wait was split
  2020-02-12 19:57 ` Linus Torvalds
  2020-02-12 21:36   ` Randy Dunlap
@ 2020-02-13 14:59   ` Jonathan Corbet
  1 sibling, 0 replies; 4+ messages in thread
From: Jonathan Corbet @ 2020-02-13 14:59 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Randy Dunlap, LKML, Al Viro, Andrew Morton

On Wed, 12 Feb 2020 11:57:39 -0800
Linus Torvalds <torvalds@linux-foundation.org> wrote:

> I've considered adding some doc building to my basic tests, but it is
> (a) somewhat slow and (b) has always been very noisy.
> 
> And that (b) is why I really don't do it. The reason I require the
> basic build to be warning-free is that because that way any new
> warnings stand out. But that's just not the case for docs.
> 
> What do you use to notice new errors? Or is there some trick to make
> it less noisy?

I save the output and do a diff ... not the greatest workflow.

The docs-build warnings are a huge problem, which is why getting rid of
them is at the top of my priority list.  It's a fairly lonely game of
whack-a-mole at the moment, though.

Once we're there, it should be pretty easy to add a quick check that
doesn't actually build the docs and, thus, isn't so painfully slow.  But
that won't really be useful until we can get the build clean.

jon

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-02-13 14:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-10  3:36 [PATCH] linux/pipe_fs_i.h: fix kernel-doc warnings after @wait was split Randy Dunlap
2020-02-12 19:57 ` Linus Torvalds
2020-02-12 21:36   ` Randy Dunlap
2020-02-13 14:59   ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).