Thread (28 messages) 28 messages, 1 author, 5d ago

Re: [PATCH v8 00/25] PCI: Convert all dynamic sysfs attributes to static

From: Krzysztof Wilczyński <kwilczynski@kernel.org>
Date: 2026-06-19 18:39:05
Also in: linux-alpha, linux-pci

Hello,
This series converts every dynamically allocated PCI sysfs attribute to
a static const definition.  After the full series, pci_sysfs_init() and
sysfs_initialized are gone, and every sysfs file is created by the
driver model at device_add() time.
[...]
Changes in v8:
  https://lore.kernel.org/linux-pci/20260508043543.217179-1-kwilczynski@kernel.org/ (local)

  - Renamed the generic resource attributes from dev_resourceN_{io,uc,wc}_attr
    to pci_dev_resourceN_{io,uc,wc}_attr, for consistency, and cleaned up
    resource macros definitions.
  - Changed resource macros argument order to fix checkpatch.pl
    complaint.
  - Added two new macros, pci_legacy_resource_io_attr() and
    pci_legacy_resource_mem_attr(), used for the legacy I/O and memory
    conversion instead of open-coding each struct bin_attribute.  No
    functional changes intended.
Updated the sysfs branch with this revision to get some testing coverage.

Changes here are mainly to clean some things up before the code potentially
lands in the mainline.  No functional changes whatsoever.

Thank you!

	Krzysztof
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help