History log of /linux/tools/lib/python/ (Results 1 – 25 of 33)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
b211a30606-Feb-2026 Randy Dunlap <rdunlap@infradead.org>

docs: kdoc_parser: allow __exit in function prototypes

Handle functions that are marked with __exit to prevent warnings:

Documentation/networking/iucv:35: ../net/iucv/iucv.c:1918: WARNING: Error in

docs: kdoc_parser: allow __exit in function prototypes

Handle functions that are marked with __exit to prevent warnings:

Documentation/networking/iucv:35: ../net/iucv/iucv.c:1918: WARNING: Error in declarator or parameters
Invalid C declaration: Expecting "(" in parameters. [error at 12]
void __exit iucv_exit (void)
------------^

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260206065440.2412185-1-rdunlap@infradead.org>

show more ...

98f51c4627-Jan-2026 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: kdoc: Fix pdfdocs build for tools

the "\1" inside a docstring requires proper scaping to not be
considered a hex character and break the build.

Reported-by: Akira Yokosawa <akiyks@gmail.com>

docs: kdoc: Fix pdfdocs build for tools

the "\1" inside a docstring requires proper scaping to not be
considered a hex character and break the build.

Reported-by: Akira Yokosawa <akiyks@gmail.com>
Closes: https://lore.kernel.org/linux-doc/63e99049-cc72-4156-83af-414fdde34312@gmail.com/
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <2fff8ef1d0d64e8b68f15f5c07613f302d773855.1769500383.git.mchehab+huawei@kernel.org>

show more ...


/linux/Documentation/ABI/testing/pstore
/linux/Documentation/RCU/index.rst
/linux/Documentation/accel/index.rst
/linux/Documentation/admin-guide/aoe/index.rst
/linux/Documentation/admin-guide/auxdisplay/index.rst
/linux/Documentation/admin-guide/cgroup-v1/index.rst
/linux/Documentation/admin-guide/cifs/index.rst
/linux/Documentation/admin-guide/device-mapper/index.rst
/linux/Documentation/admin-guide/gpio/index.rst
/linux/Documentation/admin-guide/index.rst
/linux/Documentation/admin-guide/initrd.rst
/linux/Documentation/admin-guide/kdump/index.rst
/linux/Documentation/admin-guide/kdump/kdump.rst
/linux/Documentation/admin-guide/mm/nommu-mmap.rst
/linux/Documentation/arch/arc/index.rst
/linux/Documentation/arch/arm/index.rst
/linux/Documentation/arch/arm64/arm-acpi.rst
/linux/Documentation/arch/arm64/index.rst
/linux/Documentation/arch/loongarch/index.rst
/linux/Documentation/arch/m68k/index.rst
/linux/Documentation/arch/mips/index.rst
/linux/Documentation/arch/openrisc/index.rst
/linux/Documentation/arch/parisc/index.rst
/linux/Documentation/arch/powerpc/index.rst
/linux/Documentation/arch/riscv/index.rst
/linux/Documentation/arch/s390/driver-model.rst
/linux/Documentation/arch/s390/index.rst
/linux/Documentation/arch/x86/shstk.rst
/linux/Documentation/bpf/index.rst
/linux/Documentation/cdrom/index.rst
/linux/Documentation/conf.py
/linux/Documentation/core-api/index.rst
/linux/Documentation/core-api/kho/index.rst
/linux/Documentation/dev-tools/index.rst
/linux/Documentation/doc-guide/index.rst
/linux/Documentation/driver-api/80211/index.rst
/linux/Documentation/driver-api/coco/index.rst
/linux/Documentation/driver-api/crypto/iaa/index.rst
/linux/Documentation/driver-api/crypto/index.rst
/linux/Documentation/driver-api/cxl/index.rst
/linux/Documentation/driver-api/dmaengine/index.rst
/linux/Documentation/driver-api/driver-model/index.rst
/linux/Documentation/driver-api/early-userspace/index.rst
/linux/Documentation/driver-api/firmware/index.rst
/linux/Documentation/driver-api/index.rst
/linux/Documentation/driver-api/memory-devices/index.rst
/linux/Documentation/driver-api/pci/index.rst
/linux/Documentation/driver-api/phy/index.rst
/linux/Documentation/driver-api/phy/phy.rst
/linux/Documentation/driver-api/pm/index.rst
/linux/Documentation/driver-api/serial/index.rst
/linux/Documentation/driver-api/soundwire/index.rst
/linux/Documentation/driver-api/surface_aggregator/clients/index.rst
/linux/Documentation/driver-api/surface_aggregator/index.rst
/linux/Documentation/driver-api/tty/tty_ldisc.rst
/linux/Documentation/driver-api/usb/gadget.rst
/linux/Documentation/driver-api/usb/index.rst
/linux/Documentation/driver-api/xilinx/index.rst
/linux/Documentation/fault-injection/index.rst
/linux/Documentation/fb/index.rst
/linux/Documentation/filesystems/proc.rst
/linux/Documentation/filesystems/relay.rst
/linux/Documentation/filesystems/resctrl.rst
/linux/Documentation/firmware-guide/acpi/DSD-properties-rules.rst
/linux/Documentation/firmware-guide/acpi/enumeration.rst
/linux/Documentation/fpga/index.rst
/linux/Documentation/gpu/drivers.rst
/linux/Documentation/gpu/index.rst
/linux/Documentation/hwmon/index.rst
/linux/Documentation/i2c/index.rst
/linux/Documentation/infiniband/index.rst
/linux/Documentation/input/devices/index.rst
/linux/Documentation/input/gamepad.rst
/linux/Documentation/input/index.rst
/linux/Documentation/isdn/index.rst
/linux/Documentation/kbuild/index.rst
/linux/Documentation/livepatch/index.rst
/linux/Documentation/locking/index.rst
/linux/Documentation/mhi/index.rst
/linux/Documentation/netlabel/index.rst
/linux/Documentation/networking/device_drivers/atm/index.rst
/linux/Documentation/networking/device_drivers/can/index.rst
/linux/Documentation/networking/device_drivers/cellular/index.rst
/linux/Documentation/networking/device_drivers/ethernet/index.rst
/linux/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/index.rst
/linux/Documentation/networking/device_drivers/fddi/index.rst
/linux/Documentation/networking/device_drivers/hamradio/index.rst
/linux/Documentation/networking/device_drivers/index.rst
/linux/Documentation/networking/device_drivers/wifi/index.rst
/linux/Documentation/networking/device_drivers/wwan/index.rst
/linux/Documentation/networking/diagnostic/index.rst
/linux/Documentation/networking/index.rst
/linux/Documentation/pcmcia/index.rst
/linux/Documentation/peci/index.rst
/linux/Documentation/power/index.rst
/linux/Documentation/process/adding-syscalls.rst
/linux/Documentation/process/debugging/index.rst
/linux/Documentation/process/index.rst
/linux/Documentation/rust/index.rst
/linux/Documentation/scheduler/index.rst
/linux/Documentation/sound/hd-audio/notes.rst
/linux/Documentation/sound/index.rst
/linux/Documentation/sphinx-includes/subproject-index.rst
/linux/Documentation/sphinx/automarkup.py
/linux/Documentation/spi/index.rst
/linux/Documentation/target/index.rst
/linux/Documentation/tee/index.rst
/linux/Documentation/timers/index.rst
/linux/Documentation/tools/index.rst
/linux/Documentation/tools/rtla/index.rst
/linux/Documentation/tools/rv/index.rst
/linux/Documentation/trace/index.rst
/linux/Documentation/translations/ja_JP/process/submitting-patches.rst
/linux/Documentation/usb/index.rst
/linux/Documentation/userspace-api/gpio/index.rst
/linux/Documentation/userspace-api/index.rst
/linux/Documentation/userspace-api/ioctl/ioctl-number.rst
/linux/Documentation/virt/index.rst
/linux/Documentation/w1/index.rst
/linux/Documentation/watchdog/index.rst
/linux/Documentation/wmi/devices/index.rst
/linux/Documentation/wmi/index.rst
kdoc/kdoc_re.py
330367bd23-Jan-2026 Jonathan Corbet <corbet@lwn.net>

Merge branch 'mauro' into docs-mw

Mauro's work to include documentation from our Python modules. His cover
letter follows:

This is an extended version of:
https://lore.kernel.org/linux-doc/cov

Merge branch 'mauro' into docs-mw

Mauro's work to include documentation from our Python modules. His cover
letter follows:

This is an extended version of:
https://lore.kernel.org/linux-doc/cover.1768488832.git.mchehab+huawei@kernel.org/

It basically adds everything we currently have inside libs/tool/python
to "tools" book inside documentation.

This version should be independent of the other series yet to be merged,
(including the jobserver one).

The vast amount of changes here are docstring cleanups and additions.
They mainly consists on:

- ensuring that every phrase will end with a period, making it uniform
along all files;
- cleaning ups to better uniform docstrings;
- variable descriptions now use "#:" markup, as it allows autodoc to
add them inside the documentation;
- added some missing docstrings;
- some new blank lines at comments to make ReST syntax parser happy;
- add a couple of sphinx markups (mainly, code blocks).

Most of those are minor changes, affecting only comments.

It also has one patch per libarary type, adding them to docs.

For kernel-doc, I did the cleanups first, as there is one code block
inside tools/lib/python/kdoc/latex_fonts.py that would cause a Sphinx
crash without such markups.

The series actually starts with 3 fixes:

- avoid "*" markups on indexes with deep> 3 to override text
- a variable rename to stop abusing doctree name
- don't rely on cwd to get Documentation/ location

patch 4 adds support to document scripts either at:
- tools/
- scripts/

patch 5 contains a CSS to better display autodoc html output.

For those who want to play with documentation, documenting a python
file is very simple. All it takes is to use:

.. automodule:: lib.python.<dir+name>

Usually, we add a couple of control members to it to adjust
the desired documentation scope (add/remove members, showing class
inheritance, showing members that currently don't have
docstrings, etc). That's why we're using:

.. automodule:: lib.python.kdoc.enrich_formatter
:members:
:show-inheritance:
:undoc-members:

(and similar) inside tools/kdoc*.rst.

autodoc allows filtering in/out members, file docstrings, etc.

It also allows documenting just some members or functions with
directives like:

..autofunction:
..automember:

Sphinx also has a helper script to generate .rst files with
documentation:

$ sphinx-apidoc -o foobar tools/lib/python/

which can be helpful to discover what should be documented,
although changes are needed to use what it produces.

show more ...

ef6aa11019-Jan-2026 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: parse_features: make documentation more consistent

Do some changes to:
- add missing documentation strings to vars;
- add a missing docstring;
- ensure that phases will end with a period.

Sig

docs: parse_features: make documentation more consistent

Do some changes to:
- add missing documentation strings to vars;
- add a missing docstring;
- ensure that phases will end with a period.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <3722f10361638561a5ced18cf4f409930c88270b.1768838938.git.mchehab+huawei@kernel.org>

show more ...

8b85f61419-Jan-2026 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: jobserver: do some documentation improvements

Make Sphinx handle better jobserver class documentation

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan

docs: jobserver: do some documentation improvements

Make Sphinx handle better jobserver class documentation

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <18a9c1406bdead680e3ee5768c97ae8b2138e8ea.1768838938.git.mchehab+huawei@kernel.org>

show more ...

b713adad19-Jan-2026 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: kabi: helpers: add documentation for each "enum" value

Ensure that kABI module documentation will describe each
debug bit.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sig

docs: kabi: helpers: add documentation for each "enum" value

Ensure that kABI module documentation will describe each
debug bit.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <3b118b157e52d757bf82fd74f03b0f4bd9e8b8f1.1768838938.git.mchehab+huawei@kernel.org>

show more ...

5c9ece0b19-Jan-2026 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: kabi: helpers: add helper for debug bits 7 and 8

The kabi logic supports 8 debug bits, but only 6 are currently
documented. Document the remaining ones.

Signed-off-by: Mauro Carvalho Chehab <

docs: kabi: helpers: add helper for debug bits 7 and 8

The kabi logic supports 8 debug bits, but only 6 are currently
documented. Document the remaining ones.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <60e99b9060396eac8621954d6b8a73af45df90fb.1768838938.git.mchehab+huawei@kernel.org>

show more ...

a50c62d319-Jan-2026 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: kabi: system_symbols: end docstring phrases with a dot

Some docstring classes are not ending with a dot. Fix to make it
more uniform.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kern

docs: kabi: system_symbols: end docstring phrases with a dot

Some docstring classes are not ending with a dot. Fix to make it
more uniform.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <efd0e150d8e12d8ea2665f54a96b1997f32897b7.1768838938.git.mchehab+huawei@kernel.org>

show more ...

ff91637d19-Jan-2026 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: python: abi_regex: do some improvements at documentation

Add documentation for two consts and ensure that all sentenses
will end with a dot.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huaw

docs: python: abi_regex: do some improvements at documentation

Add documentation for two consts and ensure that all sentenses
will end with a dot.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <5419ad89a5042c1571198c2f055866674808579b.1768838938.git.mchehab+huawei@kernel.org>

show more ...

66c3bf9719-Jan-2026 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: python: abi_parser: do some improvements at documentation

Add documentation for two consts and ensure that all sentenses
will end with a dot.

Signed-off-by: Mauro Carvalho Chehab <mchehab+hua

docs: python: abi_parser: do some improvements at documentation

Add documentation for two consts and ensure that all sentenses
will end with a dot.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <c5756d7fd70697890130b41b2856c59144d01844.1768838938.git.mchehab+huawei@kernel.org>

show more ...

33220c1f19-Jan-2026 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: kdoc: python_version: Improve docstrings and comments

In preparation to document kernel-doc module, improve its
documentation.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: kdoc: python_version: Improve docstrings and comments

In preparation to document kernel-doc module, improve its
documentation.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <2153afaeb496e1bb8d3cc318fff26c3f99d99486.1768838938.git.mchehab+huawei@kernel.org>

show more ...

7ef684c919-Jan-2026 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: kdoc: enrich_formatter: Improve docstrings and comments

In preparation to document kernel-doc module, improve its
documentation.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.or

docs: kdoc: enrich_formatter: Improve docstrings and comments

In preparation to document kernel-doc module, improve its
documentation.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <55ec8b896fe00529d326859cd094230fb5a2cd30.1768838938.git.mchehab+huawei@kernel.org>

show more ...

e68c84b919-Jan-2026 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: kdoc: parse_data_structs: Improve docstrings and comments

In preparation to document kernel-doc module, improve its
documentation.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.

docs: kdoc: parse_data_structs: Improve docstrings and comments

In preparation to document kernel-doc module, improve its
documentation.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <76ead85b4c13a8038180a792e270c3691d26cd25.1768838938.git.mchehab+huawei@kernel.org>

show more ...

b0b8891519-Jan-2026 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: kdoc_re: Improve docstrings and comments

In preparation to document kernel-doc module, improve its
documentation.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-b

docs: kdoc_re: Improve docstrings and comments

In preparation to document kernel-doc module, improve its
documentation.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <14a12a43144d52345bfd405d0401d246f0885acf.1768838938.git.mchehab+huawei@kernel.org>

show more ...

245f1ab219-Jan-2026 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: kdoc_output: Improve docstrings and comments

In preparation to document kernel-doc module, improve its
documentation.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-o

docs: kdoc_output: Improve docstrings and comments

In preparation to document kernel-doc module, improve its
documentation.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <ac03bf776f0929bbe822cd8269f2a31e275b8d6b.1768838938.git.mchehab+huawei@kernel.org>

show more ...

5020675019-Jan-2026 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: kdoc_parser: Improve docstrings and comments

In preparation to document kernel-doc module, improve its
documentation.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-o

docs: kdoc_parser: Improve docstrings and comments

In preparation to document kernel-doc module, improve its
documentation.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <b6aabe25b45e9751885becd544a4db82dbe11ff2.1768838938.git.mchehab+huawei@kernel.org>

show more ...

f40bba9419-Jan-2026 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: kdoc_item: Improve docstrings and comments

In preparation to document kernel-doc module, improve its
documentation.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off

docs: kdoc_item: Improve docstrings and comments

In preparation to document kernel-doc module, improve its
documentation.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <65a7c6bb318e7a8cbf5c115903d507568099151a.1768838938.git.mchehab+huawei@kernel.org>

show more ...

8d08c7c619-Jan-2026 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: kdoc_files: Improve docstrings and comments

In preparation to document kernel-doc module, improve its
documentation.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-of

docs: kdoc_files: Improve docstrings and comments

In preparation to document kernel-doc module, improve its
documentation.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <75d58878ad6f83f24f1c0ce9e04301a000ecbaa3.1768838938.git.mchehab+huawei@kernel.org>

show more ...

4d7f631919-Jan-2026 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: kdoc: latex_fonts: Improve docstrings and comments

In preparation to document kernel-doc module, improve its
documentation.

Among the changes, it had to place the xml template inside
a code b

docs: kdoc: latex_fonts: Improve docstrings and comments

In preparation to document kernel-doc module, improve its
documentation.

Among the changes, it had to place the xml template inside
a code block, as otherwise doc build would break.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <6e0eb2e245eae9b4f39cf231dee32df00b9e8b7b.1768838938.git.mchehab+huawei@kernel.org>

show more ...

11ba421521-Jan-2026 Jonathan Corbet <corbet@lwn.net>

Merge branch 'mauro' into docs-mw

A combination of Mauro's -Werror work and my long-belated kernel-doc move.

b2664a9012-Jan-2026 Jonathan Corbet <corbet@lwn.net>

jobserver: Split up the big try: block

The parsing of jobserver options is done in a massive try: block that hides
problems and (perhaps) bugs. Split up that block and make the logic
explicit by mo

jobserver: Split up the big try: block

The parsing of jobserver options is done in a massive try: block that hides
problems and (perhaps) bugs. Split up that block and make the logic
explicit by moving the initial parsing of MAKEFLAGS out of that block. Add
warnings in the places things can go wrong.

Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

show more ...

292eca3119-Jan-2026 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: kdoc: fix logic to handle unissued warnings

Changeset 469c1c9eb6c9 ("kernel-doc: Issue warnings that were silently discarded")
didn't properly addressed the missing messages behavior, as
it wa

docs: kdoc: fix logic to handle unissued warnings

Changeset 469c1c9eb6c9 ("kernel-doc: Issue warnings that were silently discarded")
didn't properly addressed the missing messages behavior, as
it was calling directly python logger low-level function,
instead of using the expected method to emit warnings.

Basically, there are two methods to log messages:

- self.config.log.warning() - This is the raw level to emit a
warning. It just writes the a message at stderr, via python
logging, as it is initialized as:

self.config.log = logging.getLogger("kernel-doc")

- self.config.warning() - This is where we actually consider a
message as a warning, properly incrementing error count.

Due to that, several parsing error messages are internally considered
as success, causing -Werror to not work on such messages.

While here, ensure that the last ignored entry will also be handled
by adding an extra check at the end of the parse handler.

Fixes: 469c1c9eb6c9 ("kernel-doc: Issue warnings that were silently discarded")
Closes: https://lore.kernel.org/linux-doc/20260112091053.00cee29a@foz.lan/
Cc: stable@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <95109a6585171da4d6900049deaa2634b41ee743.1768823489.git.mchehab+huawei@kernel.org>

show more ...

bbf8c67a08-Jan-2026 Changbin Du <changbin.du@huawei.com>

tools: jobserver: Prevent deadlock caused by incorrect jobserver configuration and enhance error reporting

When using GNU Make's jobserver feature in kernel builds, a bug in MAKEFLAGS
propagation ca

tools: jobserver: Prevent deadlock caused by incorrect jobserver configuration and enhance error reporting

When using GNU Make's jobserver feature in kernel builds, a bug in MAKEFLAGS
propagation caused "--jobserver-auth=r,w" to reference an unintended file
descriptor. This led to infinite loops in jobserver-exec's os.read() calls
due to empty token.

My shell opened /etc/passwd for some reason without closing it, and as a
result, all child processes inherited this fd 3.

$ ls -l /proc/self/fd
total 0
lrwx------ 1 changbin changbin 64 Dec 25 13:03 0 -> /dev/pts/1
lrwx------ 1 changbin changbin 64 Dec 25 13:03 1 -> /dev/pts/1
lrwx------ 1 changbin changbin 64 Dec 25 13:03 2 -> /dev/pts/1
lr-x------ 1 changbin changbin 64 Dec 25 13:03 3 -> /etc/passwd
lr-x------ 1 changbin changbin 64 Dec 25 13:03 4 -> /proc/1421383/fd

In this case, the `make` should open a new file descriptor for jobserver
control, but clearly, it did not do so and instead still passed fd 3 as
"--jobserver-auth=3,4" in MAKEFLAGS. (The version of my gnu make is 4.3)

This update ensures robustness against invalid jobserver configurations,
even when `make` incorrectly pass non-pipe file descriptors.
* Rejecting empty reads to prevent infinite loops on EOF.
* Clearing `self.jobs` to avoid writing to incorrect files if invalid tokens
are detected.
* Printing detailed error messages to stderr to inform the user.

Cc: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Changbin Du <changbin.du@huawei.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260108113836.2976527-1-changbin.du@huawei.com>

show more ...

9dbbd32e11-Dec-2025 Steven Price <steven.price@arm.com>

kdoc: allow dots in inline @param names

Inline kernel-doc blocks failed to parse tags containing dots (e.g.
creator.process_name in panfrost_gem.h) because the @name regex only
matched word characte

kdoc: allow dots in inline @param names

Inline kernel-doc blocks failed to parse tags containing dots (e.g.
creator.process_name in panfrost_gem.h) because the @name regex only
matched word characters. Modify the single-line pattern to match
doc_inline_sect so it includes \. and parses the same as a multi-line
comment.

Signed-off-by: Steven Price <steven.price@arm.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20251211104851.45330-1-steven.price@arm.com>

show more ...

aaacd70f16-Dec-2025 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

docs: kernel-doc.rst: Parse DEFINE_ macros without prefixes

Currently, the logic for vars require a
type DEFINE_foo();

where type is usually "static".

Make the logic more generic.

Reported-by: R

docs: kernel-doc.rst: Parse DEFINE_ macros without prefixes

Currently, the logic for vars require a
type DEFINE_foo();

where type is usually "static".

Make the logic more generic.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Closes: https://lore.kernel.org/linux-doc/e1dad7e4-a0ca-4be6-a33c-97b75175c12f@infradead.org/
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <be16e087cbc065fbd041fb6d6f8fa5cf0426cca5.1765894964.git.mchehab+huawei@kernel.org>

show more ...

12