Skip to contentSkip to conversation

Documentation: PCI: Point the pci_device_id kernel-doc at device-id/pci.h

PATCH In review Karl Mehltretter 3 participants 4 messages Sep 5

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: PCI: Point the pci_device_id kernel-doc at device-id/pci.h

pci.rst pulls the description of struct pci_device_id from include/linux/mod_devicetable.h. Commit ad428f5811bd ("mod_devicetable.h: Split into per subsystem headers") moved the structure and its kernel-doc comment to include/linux/device-id/pci.h. Since then the directive finds nothing and the rendered page no longer shows the structure.

Point the directive at the new header.

Fixes ad428f5811bd ("mod_devicetable.h: Split into per subsystem headers")
Assisted-by LLM
---
 Documentation/PCI/pci.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/PCI/pci.rst +1 -1
index be35e9a1ee75..71c42b0bfa8b 100644
@@ -84,7 +84,7 @@ initialization with a pointer to a structure describing the driver
 The ID table is an array of ``struct pci_device_id`` entries ending with an
 all-zero entry.  Definitions with static const are generally preferred.
 
-.. kernel-doc:: include/linux/mod_devicetable.h
+.. kernel-doc:: include/linux/device-id/pci.h
    :functions: pci_device_id
 
 Most drivers only need ``PCI_DEVICE()`` or ``PCI_DEVICE_CLASS()`` to set up
Signature · 1 line
2.53.0
#1 lore raw
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 7 lines

pci.rst pulls the description of struct pci_device_id from include/linux/mod_devicetable.h. Commit ad428f5811bd ("mod_devicetable.h: Split into per subsystem headers") moved the structure and its kernel-doc comment to include/linux/device-id/pci.h. Since then the directive finds nothing and the rendered page no longer shows the structure.

Quoted 5 lines

Point the directive at the new header.

Fixes ad428f5811bd ("mod_devicetable.h: Split into per subsystem headers")
Assisted-by LLM

Sashiko has reviewed this patch and found no issues. It looks great!

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
#2 lore raw
In reply to Karl Mehltretter

Hello Karl,

Quoted 21 lines · Karl Mehltretter

pci.rst pulls the description of struct pci_device_id from include/linux/mod_devicetable.h. Commit ad428f5811bd ("mod_devicetable.h: Split into per subsystem headers") moved the structure and its kernel-doc comment to include/linux/device-id/pci.h. Since then the directive finds nothing and the rendered page no longer shows the structure.

Point the directive at the new header.

Fixes ad428f5811bd ("mod_devicetable.h: Split into per subsystem headers")
Assisted-by LLM
---
 Documentation/PCI/pci.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/PCI/pci.rst +0 -0
index be35e9a1ee75..71c42b0bfa8b 100644

Documentation/PCI/pci.rst initialization with a pointer to a structure describing the driver · line 90

Quoted 8 lines
Documentation/PCI/pci.rst +1 -1
@@ -84,7 +84,7 @@ initialization with a pointer to a structure describing the driver
 The ID table is an array of ``struct pci_device_id`` entries ending with an
 all-zero entry.  Definitions with static const are generally preferred.
 
-.. kernel-doc:: include/linux/mod_devicetable.h
+.. kernel-doc:: include/linux/device-id/pci.h
    :functions: pci_device_id
 
 Most drivers only need ``PCI_DEVICE()`` or ``PCI_DEVICE_CLASS()`` to set up

there is prior art that can be found at
https://lore.kernel.org/all/ede7ce64f20e10660ebf6bc1b41836dad750ae3b.1783349758.git.ukleinek@kernel.org/.
My patch is more complete, but I didn't respin yet to address Randy's feedback and so it wasn't picked up yet.

If you want to take over caring for this patch that would be very welcome, there are too many open threads in my mailbox and I'm happy to be able to close that one.

Best regards
Uwe

#3 lore raw
Quoted 9 lines · Uwe Kleine-König

there is prior art that can be found at
https://lore.kernel.org/all/ede7ce64f20e10660ebf6bc1b41836dad750ae3b.1783349758.git.ukleinek@kernel.org/.
My patch is more complete, but I didn't respin yet to address Randy's feedback and so it wasn't picked up yet.

If you want to take over caring for this patch that would be very welcome, there are too many open threads in my mailbox and I'm happy to be able to close that one.

Thanks, I did not find yours when I looked. I will take it over and send it as v3 with Randy's file nit applied and your authorship kept.

This patch is then superseded, please consider it withdrawn.

Karl