[PATCH v2 0/4] drivers: hv: mark some sysfs attribute as const

From: Thomas Weißschuh

Date: Fri Apr 03 2026 - 04:36:37 EST


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@xxxxxxxxxxxxxx>
---
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@xxxxxxxxxxxxxx

---
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@xxxxxxxxxxxxxx>