Messages in this thread |  | | From | Michael Kelley <> | | Subject | RE: [PATCH 3/4] drivers: hv: mark bus attributes as const | | Date | Fri, 3 Apr 2026 02:58:29 +0000 |
| |
From: Thomas Weißschuh <linux@weissschuh.net> Sent: Thursday, April 2, 2026 8:18 AM > > This attribute is never modified, mark it as const. > > Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> > --- > 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@outlook.com>
|  |