Re: [PATCH 2/2] Move kernel-doc to tools/docs
From: Mauro Carvalho Chehab
Date: Mon Jan 19 2026 - 05:27:30 EST
Em Wed, 14 Jan 2026 09:41:44 -0700
Jonathan Corbet <corbet@xxxxxxx> escreveu:
> kernel-doc is the last documentation-related tool still living outside of
> the tools/docs directory; the time has come to move it over.
>
> Signed-off-by: Jonathan Corbet <corbet@xxxxxxx>
...
> diff --git a/scripts/kernel-doc.py b/tools/docs/kernel-doc
> similarity index 100%
> rename from scripts/kernel-doc.py
> rename to tools/docs/kernel-doc
As reported by kernel test robot:
https://lore.kernel.org/linux-doc/202601191546.Bvd74asP-lkp@xxxxxxxxx/
Here, you also need to change the relative location of the modules:
# Import Python modules
-LIB_DIR = "../tools/lib/python"
+LIB_DIR = "../lib/python"
SRC_DIR = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, os.path.join(SRC_DIR, LIB_DIR))
Thanks,
Mauro