[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YP6qWSAy3HN0DwYt@alley>
Date: Mon, 26 Jul 2021 14:28:09 +0200
From: Petr Mladek <pmladek@...e.com>
To: Jonathan Corbet <corbet@....net>
Cc: Chris Down <chris@...isdown.name>,
Stephen Rothwell <sfr@...b.auug.org.au>,
linux-doc@...r.kernel.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux Next Mailing List <linux-next@...r.kernel.org>
Subject: Re: linux-next: build warning after merge of the printk tree
On Sun 2021-07-25 15:16:00, Jonathan Corbet wrote:
> Chris Down <chris@...isdown.name> writes:
>
> > Chris Down writes:
> >>+Cc: Jonathan Corbet <corbet@....net>, linux-doc@...r.kernel.org
> >
> > Well, let's actually Cc them this time...
> >
> >>Stephen Rothwell writes:
> >>>After merging the printk tree, today's linux-next build (htmldocs)
> >>>produced this warning:
> >>>
> >>>kernel/printk/printk.c:1: warning: 'printk' not found
> >>>
> >>>Introduced by commit
> >>>
> >>> 337015573718 ("printk: Userspace format indexing support")
> >>>
> >>>I presume that "printk" is referred to elsewhere in the documentation
> >>>as being in this file.
> >>
> >>Hmm, this is an interesting one, because I think we still generally
> >>just want to refer to the API as being `printk()`. Changing it all
> >>over the place seems wrong. As you'd imagine, there are quite a few
> >>references to this name, so it requires a lot of noise all over the
> >>docs and inline comments.
> >>
> >>Jonathan and other docs folks, how can one tell Sphinx that when it
> >>sees printk() it's referring to a function-like macro, or otherwise
> >>squelch this reasonably? :-)
>
> The problem is that you moved printk(), but left the associated
> kerneldoc comment tied to _printk(), which isn't what you really want to
> document. The fix should look something like the attached.
>
> Thanks,
>
> jon
>
> --------snip here----------------------
> printk: Move the printk() kerneldoc comment to its new home
>
> Commit 337015573718 ("printk: Userspace format indexing support") turned
> printk() into a macro, but left the kerneldoc comment for it with the (now)
> _printk() function, resulting in this docs-build warning:
>
> kernel/printk/printk.c:1: warning: 'printk' not found
>
> Move the kerneldoc comment back next to the (now) macro it's meant to
> describe and have the docs build find it there.
>
> Signed-off-by: Jonathan Corbet <corbet@....net>
This looks better than my variant. I have pushed it into
printk/linux.git, branch for-5.15-printk-index.
Best Regards,
Petr
Powered by blists - more mailing lists