scripts: kernel-doc: make it more compatible with Sphinx 3.x
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 24 Sep 2020 13:30:37 +0000 (15:30 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 15 Oct 2020 05:49:35 +0000 (07:49 +0200)
commitefa44475b8f5c692be4c5822a659e1a96f16dacb
treed0394424abd912a2991b3576b2a58dda7bcbdb29
parentd38c8cfb057183f619dc8534030bb64b63f78043
scripts: kernel-doc: make it more compatible with Sphinx 3.x

With Sphinx 3.x, the ".. c:type:" tag was changed to accept either:

.. c:type:: typedef-like declaration
.. c:type:: name

Using it for other types (including functions) don't work anymore.

So, there are newer tags for macro, enum, struct, union, and others,
which doesn't exist on older versions.

Add a check for the Sphinx version and change the produced tags
accordingly.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
scripts/kernel-doc