Re: [PATCH 1/2] docs: kernel-doc: avoid script crash on ancient Python

From: Akira Yokosawa
Date: Tue Jul 29 2025 - 06:08:30 EST


Hi,

On Mon, 28 Jul 2025 16:54:28 +0200, Mauro Carvalho Chehab wrote:
> While we do need at least 3.6 for kernel-doc to work, and at least
> 3.7 for it to output functions and structs with parameters at the
> right order, let the python binary be compatible with legacy
code?

> versions.
>
[...]
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>
> ---
> scripts/kernel-doc.py | 37 ++++++++++++++++++++++++++-----------
> 1 file changed, 26 insertions(+), 11 deletions(-)
>
> diff --git a/scripts/kernel-doc.py b/scripts/kernel-doc.py
> index fc3d46ef519f..d4f9188d6a19 100755
> --- a/scripts/kernel-doc.py
> +++ b/scripts/kernel-doc.py
> @@ -1,9 +1,19 @@
> -#!/usr/bin/env python3
> +#!/usr/bin/env python

This would conflict with my existing setup which has
/usr/bin/python3 only.

Please don't do this!

Thanks, Akira