Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sphinx: conf.py: properly handle Sphinx 4.0

One of the checks for Sphinx 3+ is broken, causing some
C warnings to return back with Sphinx 4.0.x.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/d5abc30056dafeec0778a46263a45401bdc7f11e.1603791716.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Mauro Carvalho Chehab and committed by
Jonathan Corbet
d29f34c0 72b97d0b

+1 -1
+1 -1
Documentation/conf.py
··· 50 50 support for Sphinx v3.0 and above is brand new. Be prepared for 51 51 possible issues in the generated output. 52 52 ''') 53 - if minor > 0 or patch >= 2: 53 + if (major > 3) or (minor > 0 or patch >= 2): 54 54 # Sphinx c function parser is more pedantic with regards to type 55 55 # checking. Due to that, having macros at c:function cause problems. 56 56 # Those needed to be scaped by using c_id_attributes[] array