mirror of
https://github.com/xemu-project/xemu.git
synced 2026-07-11 01:24:41 +02:00
scripts/kernel-doc: strip QEMU_ from function definitions
This commit is the Python version of our older commit
b30df2751e ("scripts/kernel-doc: strip QEMU_ from function definitions").
Some versions of Sphinx get confused if function attributes are
left on the C code from kernel-doc; strip out any QEMU_* prefixes
from function prototypes.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Message-id: 20250814171324.1614516-5-peter.maydell@linaro.org
This commit is contained in:
@@ -907,6 +907,7 @@ class KernelDoc:
|
||||
(r"^__always_inline +", "", 0),
|
||||
(r"^noinline +", "", 0),
|
||||
(r"^__FORTIFY_INLINE +", "", 0),
|
||||
(r"QEMU_[A-Z_]+ +", "", 0),
|
||||
(r"__init +", "", 0),
|
||||
(r"__init_or_module +", "", 0),
|
||||
(r"__deprecated +", "", 0),
|
||||
|
||||
Reference in New Issue
Block a user