Skip to content

Commit ec18d5c

Browse files
committed
drivers: hv: fix up const issue with vmbus_chan_bin_attrs
In commit 9bec944 ("sysfs: constify attribute_group::bin_attrs"), the bin_attributes are now required to be const. Due to merge issues, the original commit could not modify this structure (it came in through a different branch.) Fix this up now by setting the variable properly. Cc: Thomas Weißschuh <linux@weissschuh.net> Cc: Naman Jain <namjain@linux.microsoft.com> Fixes: 9bec944 ("sysfs: constify attribute_group::bin_attrs") Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f27ae3a commit ec18d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hv/vmbus_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1841,7 +1841,7 @@ static struct attribute *vmbus_chan_attrs[] = {
18411841
NULL
18421842
};
18431843

1844-
static struct bin_attribute *vmbus_chan_bin_attrs[] = {
1844+
static const struct bin_attribute *vmbus_chan_bin_attrs[] = {
18451845
&chan_attr_ring_buffer,
18461846
NULL
18471847
};

0 commit comments

Comments
 (0)