Re: [PATCH 2/3] docs: split up the driver book

From: Jonathan Corbet
Date: Wed Aug 24 2016 - 18:48:57 EST


On Tue, 23 Aug 2016 11:30:16 -0300
Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxxx> wrote:

> On the output text, you'll see two places with "@:c:func:threadfn()".
>
> The problem here is that threadfn() is a function argument. While this
> used to work with DocBooks, now with Sphinx this is not handled well.
>
> I got some other similar cases on media. There, I opted to just remove
> the () on some places, or to replace it by \(\) to avoid kernel-doc
> to do the wrong thing.

I have a different idea: why not just add another regexp to the
kernel-doc house of cards? :) The following seems to make these issues
go away pretty nicely, and didn't cause any change at all to the
media/gpu output...

Stacking up ordering-dependent regexps is not a path to long-term joy; at
some point, we will likely want a smarter parser for kerneldoc comments.
But this seems to improve things for the moment.

jon