Re: [PATCH v1 1/1] kernel-doc: Issue warnings that were silently discarded

From: Jonathan Corbet

Date: Wed Nov 05 2025 - 13:12:25 EST


[Heads up to Stephen: this change will add a bunch of warnings that had
been dropped before.]

Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> writes:

> When kernel-doc parses the sections for the documentation some errors
> may occur. In many cases the warning is simply stored to the current
> "entry" object. However, in the most of such cases this object gets
> discarded and there is no way for the output engine to even know about
> that. To avoid that, check if the "entry" is going to be discarded and
> if there warnings have been collected, issue them to the current logger
> as is and then flush the "entry". This fixes the problem that original
> Perl implementation doesn't have.

I would really like to redo how some of that logging is done, but that
is an exercise for another day. For now, I have applied this one,
thanks.

jon