]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
docs: kdoc_re: make NestedMatch use KernRe
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 2 Mar 2026 16:41:00 +0000 (17:41 +0100)
committerJonathan Corbet <corbet@lwn.net>
Tue, 3 Mar 2026 17:47:25 +0000 (10:47 -0700)
commitfc44c0a0b2a72f2e9331063a311a548634ae18af
tree7567b3403ea42f8406c022bac1c3c0b416051668
parent34503b5fd10d8c7f1b1f4fecb6aae826fcf79424
docs: kdoc_re: make NestedMatch use KernRe

Instead of using re_compile, let's create the class with the
regex and use KernRe to keep it cached.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <cdf900faf0ed8a08f8c6ac1db5a43342968c0739.1772469446.git.mchehab+huawei@kernel.org>
tools/lib/python/kdoc/kdoc_parser.py
tools/lib/python/kdoc/kdoc_re.py