RE: [PATCH 0/4] drivers: hv: mark some sysfs attribute as const
From: Michael Kelley
Date: Thu Apr 02 2026 - 22:52:18 EST
From: Thomas Weißschuh <linux@xxxxxxxxxxxxxx> Sent: Thursday, April 2, 2026 8:18 AM
>
> 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>
> ---
> 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 | 43 ++++++++++++++++++++-----------------------
> 1 file changed, 20 insertions(+), 23 deletions(-)
> ---
> base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
> change-id: 20260331-sysfs-const-hv-cad05718c68a
>
> Best regards,
> --
> Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
>
I built and tested a linux-next20260330 kernel with this patch set.
The testing was on a x86/x64 VM running on Hyper-V locally on my
laptop. I also applied a follow-on update to mark as const the remaining
4 channel attributes that were presumably missed in Patch 4 of this
series (see my comments there).
Everything worked fine with no issues.
For the series,
Tested-by: Michael Kelley <mhklinux@xxxxxxxxxxx>