Linux-HyperV List
 help / color / mirror / Atom feed
* [PATCH v2 0/4] drivers: hv: mark some sysfs attribute as const
@ 2026-04-03  8:29 Thomas Weißschuh
  2026-04-03  8:29 ` [PATCH v2 1/4] drivers: hv: mark chan_attr_ring_buffer " Thomas Weißschuh
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Thomas Weißschuh @ 2026-04-03  8:29 UTC (permalink / raw)
  To: K. Y. Srinivasan, Haiyang Zhang, Wei Liu, Dexuan Cui, Long Li
  Cc: Michael Kelley, linux-hyperv, linux-kernel, Thomas Weißschuh

The sysfs attribute structures are never modified.
Mark them as const where possible.

This excludes the device attributes for now, as these will have their
own migration.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Changes in v2:
- Mark missed four channels attributes as const (Michael Kelley)
- Link to v1: https://patch.msgid.link/20260402-sysfs-const-hv-v1-0-a467d6f7726e@weissschuh.net

---
Thomas Weißschuh (4):
      drivers: hv: mark chan_attr_ring_buffer as const
      drivers: hv: use ATTRIBUTE_GROUPS helper
      drivers: hv: mark bus attributes as const
      drivers: hv: mark channel attributes as const

 drivers/hv/vmbus_drv.c | 51 ++++++++++++++++++++++++--------------------------
 1 file changed, 24 insertions(+), 27 deletions(-)
---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260331-sysfs-const-hv-cad05718c68a

Best regards,
--  
Thomas Weißschuh <linux@weissschuh.net>


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-04-03 17:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-03  8:29 [PATCH v2 0/4] drivers: hv: mark some sysfs attribute as const Thomas Weißschuh
2026-04-03  8:29 ` [PATCH v2 1/4] drivers: hv: mark chan_attr_ring_buffer " Thomas Weißschuh
2026-04-03  8:29 ` [PATCH v2 2/4] drivers: hv: use ATTRIBUTE_GROUPS helper Thomas Weißschuh
2026-04-03  8:29 ` [PATCH v2 3/4] drivers: hv: mark bus attributes as const Thomas Weißschuh
2026-04-03  8:29 ` [PATCH v2 4/4] drivers: hv: mark channel " Thomas Weißschuh
2026-04-03 15:56   ` Michael Kelley
2026-04-03 16:15     ` Thomas Weißschuh
2026-04-03 17:46       ` Michael Kelley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox