Skip to content

PCI/sysfs: Follow-up to the static attribute conversion

Krzysztof Wilczyński linux-pci 1 version Applied

Status from this message: Applied to the sysfs branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3PCI/sysfs: Add pci_ prefix to static PCI resource attribute namesdrivers/pci/pci-sysfs.c+30 -300 replies
2/3alpha/PCI: Make the suffix the first __pci_dev_resource_attr() parameterarch/alpha/kernel/pci-sysfs.c+13 -130 replies
3/3PCI/sysfs: Add legacy I/O and memory attribute macrosdrivers/pci/pci-sysfs.c+25 -340 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] PCI/sysfs: Follow-up to the static attribute conversion

Hello,

This series is a follow-up to the PCI sysfs static attribute conversion [1], carrying the clean-up changes from its v8 revision.

The v7 revision of the series was applied and went out with the PCI pull request for 7.2 [2], so the changes from v8 did not land in time to make the 7.2 release.

The series consists of three clean-ups:

- Add the pci_ prefix to the generated PCI resource attribute names dev_resourceN_{io,uc,wc}_attr, for consistency with the macros that generate them and the arrays that collect them.

- Make the attribute name suffix the first parameter of Alpha's __pci_dev_resource_attr() macro, resolving a checkpatch.pl complaint about two consecutive commas.

- Add the pci_legacy_resource_{io,mem}_attr() macros, and use them for the legacy I/O and memory attribute definitions instead of open-coding each struct bin_attribute.

These correspond to the items listed under "Changes in v8" in the v8 cover letter [1].

No functional changes intended.

1. https://lore.kernel.org/linux-pci/[email protected]/
2. https://lore.kernel.org/linux-pci/20260624110021.GA996382@bhelgaas/

Krzysztof Wilczyński (3):
PCI/sysfs: Add pci_ prefix to static PCI resource attribute names alpha/PCI: Make the suffix the first __pci_dev_resource_attr()
parameter
PCI/sysfs: Add legacy I/O and memory attribute macros

 arch/alpha/kernel/pci-sysfs.c |  26 ++++----
 drivers/pci/pci-sysfs.c       | 119 ++++++++++++++++------------------
 2 files changed, 68 insertions(+), 77 deletions(-)
Signature · 1 line
2.55.0