RE: [PATCH 3/4] drivers: hv: mark bus attributes as const

From: Michael Kelley

Date: Thu Apr 02 2026 - 23:04:43 EST


From: Thomas Weißschuh <linux@xxxxxxxxxxxxxx> Sent: Thursday, April 2, 2026 8:18 AM
>
> This attribute is never modified, mark it as const.
>
> Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
> ---
> drivers/hv/vmbus_drv.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c
> index d41b39ab628d..ecce6b72a2a2 100644
> --- a/drivers/hv/vmbus_drv.c
> +++ b/drivers/hv/vmbus_drv.c
> @@ -639,9 +639,9 @@ static ssize_t hibernation_show(const struct bus_type *bus, char *buf)
> return sprintf(buf, "%d\n", !!hv_is_hibernation_supported());
> }
>
> -static BUS_ATTR_RO(hibernation);
> +static const BUS_ATTR_RO(hibernation);
>
> -static struct attribute *vmbus_bus_attrs[] = {
> +static const struct attribute *const vmbus_bus_attrs[] = {
> &bus_attr_hibernation.attr,
> NULL,
> };
>
> --
> 2.53.0
>

Reviewed-by: Michael Kelley <mhklinux@xxxxxxxxxxx>