Re: linux-next: build warning after merge of the xfs tree
From: Mauro Carvalho Chehab
Date: Fri Feb 23 2024 - 03:55:24 EST
Em Fri, 23 Feb 2024 07:35:54 +0100
Christoph Hellwig <hch@xxxxxx> escreveu:
> On Fri, Feb 23, 2024 at 03:36:36PM +1100, Stephen Rothwell wrote:
> > Hi all,
> >
> > After merging the xfs tree, today's linux-next build (htmldocs) produced
> > this warning:
> >
> > Documentation/core-api/mm-api:130: mm/shmem.c:2155: WARNING: Inline emphasis start-string without end-string.
> > Documentation/core-api/mm-api:130: mm/shmem.c:2156: WARNING: Inline emphasis start-string without end-string.
>
> Thanks for the headsup. Looks like kernel-doc doesn't like the
> pointer dereferene * operator. Any good idea how to write this instead?
Asterisks there are used to do *italic* or **bold**. To have an
asterisk as-is, it needs to be escaped. This would work:
\*foo
but it is very weird for the ones reading the text file. So, what
we do instead for pointers is to escape the entire declaration, like:
``*inode``
``struct inode *inode``
I hope that helps.
Thanks,
Mauro